Gentoo Archives: gentoo-commits

From: "Jesus Rivero (neurogeek)" <neurogeek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-accessibility/speech-tools: ChangeLog speech-tools-1.2.96_beta-r2.ebuild speech-tools-1.2.96_beta-r1.ebuild
Date: Fri, 23 Apr 2010 07:12:43
Message-Id: 20100423071238.AF5B529541@corvid.gentoo.org
1 neurogeek 10/04/23 07:12:38
2
3 Modified: ChangeLog
4 Added: speech-tools-1.2.96_beta-r2.ebuild
5 Removed: speech-tools-1.2.96_beta-r1.ebuild
6 Log:
7 Removed resynth (bug #253556) and fixed soname bug #224915 by adding a patchset
8 (Portage version: 2.2_rc67/cvs/Linux i686)
9
10 Revision Changes Path
11 1.66 app-accessibility/speech-tools/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/speech-tools/ChangeLog?rev=1.66&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/speech-tools/ChangeLog?rev=1.66&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/speech-tools/ChangeLog?r1=1.65&r2=1.66
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-accessibility/speech-tools/ChangeLog,v
20 retrieving revision 1.65
21 retrieving revision 1.66
22 diff -u -r1.65 -r1.66
23 --- ChangeLog 13 Mar 2010 20:32:58 -0000 1.65
24 +++ ChangeLog 23 Apr 2010 07:12:38 -0000 1.66
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-accessibility/speech-tools
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speech-tools/ChangeLog,v 1.65 2010/03/13 20:32:58 neurogeek Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speech-tools/ChangeLog,v 1.66 2010/04/23 07:12:38 neurogeek Exp $
30 +
31 +*speech-tools-1.2.96_beta-r2 (23 Apr 2010)
32 +
33 + 23 Apr 2010; Jesus Rivero <neurogeek@g.o>
34 + -speech-tools-1.2.96_beta-r1.ebuild, +speech-tools-1.2.96_beta-r2.ebuild:
35 + Removed resynth (bug #253556) and fixed soname bug #224915 by adding a
36 + patchset
37
38 *speech-tools-1.2.96_beta-r1 (13 Mar 2010)
39
40
41
42
43 1.1 app-accessibility/speech-tools/speech-tools-1.2.96_beta-r2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/speech-tools/speech-tools-1.2.96_beta-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/speech-tools/speech-tools-1.2.96_beta-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: speech-tools-1.2.96_beta-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-accessibility/speech-tools/speech-tools-1.2.96_beta-r2.ebuild,v 1.1 2010/04/23 07:12:38 neurogeek Exp $
53
54 EAPI="2"
55
56 inherit eutils flag-o-matic toolchain-funcs
57
58 MY_P=${P/speech-/speech_}
59 MY_P=${MY_P/_beta/-beta}
60
61 DESCRIPTION="Speech tools for Festival Text to Speech engine"
62 HOMEPAGE="http://www.cstr.ed.ac.uk/projects/speech_tools/"
63 SRC_URI="http://www.festvox.org/packed/festival/latest/${MY_P}.tar.gz
64 mirror://gentoo/${MY_P}-patches.tar.gz"
65 LICENSE="FESTIVAL BSD as-is"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
68 IUSE="esd nas X"
69
70 DEPEND="esd? ( media-sound/esound )
71 nas? ( media-libs/nas )
72 X? ( x11-libs/libX11
73 x11-libs/libXt )
74 !<app-accessibility/festival-1.96_beta
75 !sys-power/powerman"
76
77 S="${WORKDIR}/speech_tools"
78
79 src_prepare() {
80 EPATCH_SUFFIX="patch"
81 epatch
82 sed -i -e 's,{{HORRIBLELIBARCHKLUDGE}},"/usr/$(get_libdir)",' main/siod_main.cc
83 }
84
85 src_configure() {
86 local CONFIG=config/config.in
87 sed -i -e 's/@COMPILERTYPE@/gcc42/' ${CONFIG}
88 if use esd; then
89 sed -i -e "s/#.*\(INCLUDE_MODULES += ESD_AUDIO\)/\1/" ${CONFIG}
90 fi
91 if use nas; then
92 sed -i -e "s/#.*\(INCLUDE_MODULES += NAS_AUDIO\)/\1/" ${CONFIG}
93 fi
94 if [ ! use X ]; then
95 sed -i -e "s/-lX11 -lXt//" config/modules/esd_audio.mak
96 fi
97 append-ldflags -Wl,--no-as-needed
98 econf || die
99 }
100
101 src_compile() {
102 emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" CC_OTHER_FLAGS="${CFLAGS}" \
103 OPTIMISE_LINKFLAGS="${LDFLAGS}" || die "Compile failed"
104 }
105
106 src_install() {
107 dolib.so lib/libest*.so*
108
109 dodoc "${S}"/README
110 dodoc "${S}"/lib/cstrutt.dtd
111
112 insinto /usr/share/doc/${PF}
113 doins -r lib/example_data
114
115 insinto /usr/share/speech-tools
116 doins -r config base_class
117
118 insinto /usr/share/speech-tools/lib
119 doins -r lib/siod
120
121 cd include
122 insinto /usr/include/speech-tools
123 doins -r *
124 dosym /usr/include/speech-tools /usr/share/speech-tools/include
125
126 cd ../bin
127 for file in *; do
128 [ "${file}" = "Makefile" ] && continue
129 dobin ${file}
130 dstfile="${D}/usr/bin/${file}"
131 sed -i -e "s:${S}/testsuite/data:/usr/share/speech-tools/testsuite:g" ${dstfile}
132 sed -i -e "s:${S}/bin:/usr/$(get_libdir)/speech-tools:g" ${dstfile}
133 sed -i -e "s:${S}/main:/usr/$(get_libdir)/speech-tools:g" ${dstfile}
134
135 # This just changes LD_LIBRARY_PATH
136 sed -i -e "s:${S}/lib:/usr/$(get_libdir):g" ${dstfile}
137 done
138
139 cd "${S}"
140 exeinto /usr/$(get_libdir)/speech-tools
141 for file in `find main -perm +100 -type f`; do
142 doexe ${file}
143 done
144
145 #Rename to avoid file collisions. See bug #287983
146 mv "${D}/usr/bin/dp" "${D}/usr/bin/speech-dp"
147 #Remove /usr/bin/resynth as it is broken. See bug #253556
148 rm "${D}/usr/bin/resynth"
149 }
150
151 pkg_postinst() {
152 elog "The /usr/bin/dp wrapper script has been renamed to /usr/bin/speech-dp"
153 elog "due to file collision with other programs."
154 elog "See bug #287983 for more details"
155
156 elog "The /usr/bin/resynth program has been removed since it is broken"
157 elog "See bug #253556 for more details"
158 }