# 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? ( || ( x11-libs/libX11 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? ( || ( x11-libs/libX11 virtual/x11 ) ) estools? ( app-accessibility/speech-tools )" # !R? ( splus ) # esps? ( esps ) # nist-sphere? ( nist-sphere ) src_unpack() { unpack ${A} cd "${S}" # This tcl install script is partially braindamaged, epatch "${FILESDIR}/${P}-Makefile-braindead-prefix.patch" \ || die "epatch failed" epatch "${FILESDIR}/${P}-configure-understand-without.patch" \ || die "epatch failed" einfo "Regenerating autotools files..." WANT_AUTOCONF=2.5 autoconf || die "autoconf failed" } src_compile() { econf --with-tcl="${ROOT}/usr/lib/" --with-tk="${ROOT}/usr/lib/" \ $(use_with esps) \ $(use_with estools) \ $(use_with nist-sphere nist) \ $(use_with nas) || 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" }