diff options
author | Jeroen Roovers <jer@gentoo.org> | 2011-03-22 03:48:43 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2011-03-22 03:48:43 +0000 |
commit | 2e15b8b414917480812377099f4891e4e6cec926 (patch) | |
tree | e5e356002884cf92ca148dffe11182a9aabb73c9 /app-accessibility/speech-tools/speech-tools-2.1-r1.ebuild | |
parent | Proper CMake optional use bug #359437 thanks Rafal Lalik (diff) | |
download | historical-2e15b8b414917480812377099f4891e4e6cec926.tar.gz historical-2e15b8b414917480812377099f4891e4e6cec926.tar.bz2 historical-2e15b8b414917480812377099f4891e4e6cec926.zip |
Fix "[: use: unary operator expected". Bump revision because this can affect installed files.
Package-Manager: portage-2.2.0_alpha28/cvs/Linux i686
Diffstat (limited to 'app-accessibility/speech-tools/speech-tools-2.1-r1.ebuild')
-rw-r--r-- | app-accessibility/speech-tools/speech-tools-2.1-r1.ebuild | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/app-accessibility/speech-tools/speech-tools-2.1-r1.ebuild b/app-accessibility/speech-tools/speech-tools-2.1-r1.ebuild new file mode 100644 index 000000000000..f3dd4929be52 --- /dev/null +++ b/app-accessibility/speech-tools/speech-tools-2.1-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speech-tools/speech-tools-2.1-r1.ebuild,v 1.1 2011/03/22 03:48:43 jer Exp $ + +EAPI="2" + +inherit eutils flag-o-matic toolchain-funcs + +MY_P=${P/speech-/speech_} + +DESCRIPTION="Speech tools for Festival Text to Speech engine" +HOMEPAGE="http://www.cstr.ed.ac.uk/projects/speech_tools/" +SRC_URI="http://www.festvox.org/packed/festival/${PV}/${MY_P}-release.tar.gz + mirror://gentoo/${MY_P}-patches.tar.gz" + +LICENSE="FESTIVAL BSD as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="esd nas X" + +DEPEND="esd? ( media-sound/esound ) + nas? ( media-libs/nas ) + X? ( x11-libs/libX11 + x11-libs/libXt ) + >=media-libs/alsa-lib-1.0.20-r1 + !<app-accessibility/festival-1.96_beta + !sys-power/powerman" + +RDEPEND=${DEPEND} + +S="${WORKDIR}/speech_tools" + +src_prepare() { + EPATCH_SUFFIX="patch" + epatch + sed -i -e 's,{{HORRIBLELIBARCHKLUDGE}},"/usr/$(get_libdir)",' main/siod_main.cc +} + +src_configure() { + local CONFIG=config/config.in + sed -i -e 's/@COMPILERTYPE@/gcc42/' ${CONFIG} + if use esd; then + sed -i -e "s/#.*\(INCLUDE_MODULES += ESD_AUDIO\)/\1/" ${CONFIG} + fi + if use nas; then + sed -i -e "s/#.*\(INCLUDE_MODULES += NAS_AUDIO\)/\1/" ${CONFIG} + fi + if ! use X; then + sed -i -e "s/-lX11 -lXt//" config/modules/esd_audio.mak + fi + econf || die +} + +src_compile() { + emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" CC_OTHER_FLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" || die "Compile failed" +} + +src_install() { + dolib.so lib/libest*.so* + + dodoc "${S}"/README + dodoc "${S}"/lib/cstrutt.dtd + + insinto /usr/share/doc/${PF} + doins -r lib/example_data + + insinto /usr/share/speech-tools + doins -r config base_class + + insinto /usr/share/speech-tools/lib + doins -r lib/siod + + cd include + insinto /usr/include/speech-tools + doins -r * + dosym /usr/include/speech-tools /usr/share/speech-tools/include + + cd ../bin + for file in *; do + [ "${file}" = "Makefile" ] && continue + dobin ${file} + dstfile="${D}/usr/bin/${file}" + sed -i -e "s:${S}/testsuite/data:/usr/share/speech-tools/testsuite:g" ${dstfile} + sed -i -e "s:${S}/bin:/usr/$(get_libdir)/speech-tools:g" ${dstfile} + sed -i -e "s:${S}/main:/usr/$(get_libdir)/speech-tools:g" ${dstfile} + + # This just changes LD_LIBRARY_PATH + sed -i -e "s:${S}/lib:/usr/$(get_libdir):g" ${dstfile} + done + + cd "${S}" + exeinto /usr/$(get_libdir)/speech-tools + for file in `find main -perm +100 -type f`; do + doexe ${file} + done + + #Remove /usr/bin/resynth as it is broken. See bug #253556 + rm "${D}/usr/bin/resynth" +} |