diff options
Diffstat (limited to 'sci-misc/emu/emu-1.10.ebuild')
-rw-r--r-- | sci-misc/emu/emu-1.10.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-misc/emu/emu-1.10.ebuild b/sci-misc/emu/emu-1.10.ebuild new file mode 100644 index 000000000..dec703bf1 --- /dev/null +++ b/sci-misc/emu/emu-1.10.ebuild @@ -0,0 +1,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 +} + |