# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/media-sound/festival/festival-1.4.2-r3.ebuild,v 1.2 2003/02/13 13:11:42 vapier Exp $ S=${WORKDIR}/speech_tools DESCRIPTION="Speech tools for Festival Text to Speech engine" IUSE="" HOMEPAGE="http://www.cstr.ed.ac.uk/" SITE="http://www.cstr.ed.ac.uk/download/festival/1.4.3" # speech_tools could be its own ebuild; here it is used ephemerally # someone who understands its usage better than I, should do that job SRC_URI="${SITE}/speech_tools-1.2.3-release.tar.gz" SLOT="0" LICENSE="FESTIVAL BSD as-is" KEYWORDS="x86 ~ppc" RDEPEND="virtual/glibc" PDEPEND="doc? ( >=doc++-3.4.10 )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/speech_tools-gcc3.2.diff } src_compile() { cd ${S} if [ ! -n "`use static`" ] then pushd ${S}/config mv -f config.in config.in.orig sed -e 's/# SHARED=1/SHARED=1/' config.in.orig > config.in popd fi pushd ${S}/config/compilers mv -f gcc_defaults.mak gcc_defaults.mak.orig sed -e 's/-fno-implicit-templates //' gcc_defaults.mak.orig > gcc_defaults.mak popd ./configure make if [ -n "`use doc`" ] then pushd ${S}/config/systems mv -f default.mak default.mak.orig sed -e 's/doc++_sane/doc++/' default.mak.orig > defaule.mak popd cd ${S}/doc make manuals quick_new_doc fi } src_install() { into /usr/lib/speech-tools if [ -n "`use static`" ] then cd ${S}/main dobin align dobin bcat dobin ch_lab dobin ch_track dobin ch_utt dobin ch_wave dobin design_filter dobin dp dobin fringe_client dobin na_play dobin na_record dobin ngram_build dobin ngram_test dobin ols dobin ols_test dobin pda dobin pitchmark dobin scfg_make dobin scfg_parse dobin scfg_test dobin scfg_train dobin sig2fv dobin sigfilter dobin spectgen dobin siod dobin tilt_analysis dobin tilt_synthesis dobin viterbi dobin wagon dobin wagon_test dobin wfst_build dobin wfst_run dobin wfst_train dobin xml_parser cd ${S}/bin dobin build_docbook_index dobin cxx_to_docbook dobin est_examples dobin est_gdb dobin est_program dobin example_to_doc++ dobin make_wagon_desc dobin pm dobin raw_to_xgraph dobin resynth dobin tex_to_images else cd ${S}/bin rm -f Makefile dobin * fi cd ${S}/lib if [ ! -n "`use static`" ] then dolib.so libestbase.so.1.2.3.1 dosym /usr/lib/speech-tools/lib/libestbase.so.1.2.3.1 /usr/lib/speech-tools/lib/libestbase.so dolib.so libeststring.so.1.2 dosym /usr/lib/speech-tools/lib/libeststring.so.1.2 /usr/lib/speech-tools/lib/libeststring.so fi dolib.a libestbase.a dolib.a libestools.a dolib.a libeststring.a insinto /usr/lib/speech-tools/siod cd ${S}/lib/siod doins * insinto /usr/share/doc/${PF}/example_data cd ${S}/lib/example_data doins * cd ${S} dodoc README dodoc INSTALL cd ${S}/lib dodoc cstrutt.dtd if [ -n "`use doc`" ] then cd ${S}/doc/man doman * fi }