blob: dec703bf1ec4894d99b5d52e7655a480bbecf0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="EMU Speech Database System"
HOMEPAGE="http://emu.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
LICENSE="as-is" # or EMU?
SLOT="0"
KEYWORDS="~x86"
IUSE="R esps estools nist-sphere nas X"
DEPEND=">=dev-lang/tcl-8.4
X? ( virtual/x11 )"
RDEPEND=">=dev-lang/tcl-8.3
>=dev-lang/tk-8.3
dev-tcltk/bwidget
dev-tcltk/tcllib
R? ( dev-lang/R )
X? ( virtual/x11 )"
# !R? ( splus )
# esps? ( esps )
# estools? ( estools )
# nist-sphere? ( nist-sphere )
S=${WORKDIR}/${P}-src
src_unpack() {
unpack ${A}
# This tcl install script is partially braindamaged
cd ${S}
sed -i "s:\$(WISH) ./doinstall.tcl$:\0 --prefix=${D}/usr/ \
--tcl_prefix=${D}/usr/ --bin=${D}/usr/bin/ --auto:g" Makefile.in
}
src_compile() {
myconf="--with-tcl=/usr/lib/ --with-tk=/usr/lib/"
# --without selectors do not work here:
# $(use_with esps) $(use_with estools) $(use_with nist-sphere nist) \
# $(use_with nas)"
use esps && myconf="$myconf --with-esps"
use estools && myconf="$myconf --with-estools"
use nist-sphere && myconf="$myconf --with-nist"
use nas && myconf="$myconf --with-nas"
econf $myconf || die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "install failed"
for f in ${D}/usr/bin/* ; do
sed -i "s|${D}||g" $f
done
dodoc README TODO
rm ${D}/usr/COPYING
}
|