# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="EMU Speech Database System" HOMEPAGE="http://emu.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz doc? mirror://sourceforge/${PN}/emudoc1.7.zip" # !R? mirror://sourceforge/emu-splus... LICENSE="as-is" # or EMU? SLOT="0" KEYWORDS="~x86" IUSE="R doc esps estools nist-sphere nas X" DEPEND=">=dev-lang/tcl-8.4 X? ( virtual/x11 ) sys-apps/sed" RDEPEND=">=dev-lang/tcl-8.3 >=dev-lang/tk-8.3 dev-tcltk/bwidget dev-tcltk/tcllib R? ( dev-lang/R ) X? ( virtual/x11 ) estools? ( app-accessibility/speech-tools )" # !R? ( splus ) # esps? ( esps ) # nist-sphere? ( nist-sphere ) src_unpack() { unpack ${A} # This tcl install script is partially braindamaged, epatch "${FILESDIR}/${P}-Makefile-braindead-prefix.patch" \ || die "epatch failed" } src_compile() { myconf="--with-tcl=${ROOT}/usr/lib/ --with-tk=${ROOT}/usr/lib/" # --without selectors do not work here: # $(use_with esps) $(use_with estools) $(use_with nist-sphere nist) \ # $(use_with nas)" if use esps ; then myconf="${myconf} --with-esps" fi if use estools ; then myconf="${myconf} --with-estools" fi if use nist-sphere ; then myconf="${myconf} --with-nist" fi if use nas ; then myconf="${myconf} --with-nas" fi econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" for f in ${D}/usr/bin/* ; do sed -i "s|${D}||g" $f chmod go-w $f done dodoc README TODO rm "${D}/usr/README" "${D}/usr/COPYING" "${D}/usr/setup.tcl" }