ports/114324: [patch] audio/festival - cleanup
Gabor Kovesdan
gabor at FreeBSD.org
Thu Jul 5 07:40:03 UTC 2007
>Number: 114324
>Category: ports
>Synopsis: [patch] audio/festival - cleanup
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 05 07:40:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Gabor Kovesdan
>Release: FreeBSD 6.2-RELEASE amd64
>Organization:
n/a
>Environment:
>Description:
I'm working on a cleanup of USE/WITH variables to be used properly.
Please see: http://www.freebsd.org/projects/ideas/#p-ports-cleanup-use
This patch
- Removes a USE variable, which is a noop, does not do anything
- Uses DATADIR to make the port simpler
>How-To-Repeat:
>Fix:
--- audio-festival.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/audio/festival/Makefile,v
retrieving revision 1.40
diff -u -r1.40 Makefile
--- Makefile 22 May 2007 22:16:01 -0000 1.40
+++ Makefile 4 Jul 2007 09:06:32 -0000
@@ -25,11 +25,9 @@
DIST_SUBDIR= festival
CONFIGURE_WRKSRC= ${WRKDIR}/festival
-USE_AUTOCONF= yes
USE_GMAKE= yes
SPEECHTOOLS= ${WRKSRC}/speech_tools
FESTIVAL= ${WRKSRC}/festival
-FHOME= ${PREFIX}/share/festival
MAKE_ENV+= GCC="${CC}" \
GXX="${CXX}" \
EST_HOME=${SPEECHTOOLS} \
@@ -90,25 +88,25 @@
${LN} -s gcc_defaults.mak ${WRKDIR}/speech_tools/config/compilers/${CC}.mak
do-install:
- ${MKDIR} ${FHOME}/lib/voices/english/
- ${MKDIR} ${FHOME}/lib/voices/spanish/
- ${MKDIR} ${FHOME}/lib/dicts
+ ${MKDIR} ${DATADIR}/lib/voices/english/
+ ${MKDIR} ${DATADIR}/lib/voices/spanish/
+ ${MKDIR} ${DATADIR}/lib/dicts
${CHMOD} -R u+w,a+r,og-w ${FESTIVAL}/lib
${FIND} ${FESTIVAL}/lib -type d -print0 | ${XARGS} -0 ${CHMOD} 755
- cd ${FESTIVAL} && ${CP} -pPR lib examples ${FHOME}
- ${RM} -rf ${FHOME}/lib/etc/Makefile ${FHOME}/lib/etc/*FreeBSD* \
- ${FHOME}/lib/etc/*unknown
+ cd ${FESTIVAL} && ${CP} -pPR lib examples ${DATADIR}
+ ${RM} -rf ${DATADIR}/lib/etc/Makefile ${DATADIR}/lib/etc/*FreeBSD* \
+ ${DATADIR}/lib/etc/*unknown
${INSTALL_PROGRAM} ${FESTIVAL}/lib/etc/*/audsp ${PREFIX}/libexec
${INSTALL_PROGRAM} ${FESTIVAL}/src/main/festival ${PREFIX}/libexec/festival.naked
${INSTALL_PROGRAM} ${FESTIVAL}/src/main/festival_client ${PREFIX}/libexec/festival_client.naked
for n in festival.sh festival_client.sh sitevars.scm; \
do {\
- ${SED} "s%@PKG_FESTIVAL_LOCATION@%${FHOME}%; \
+ ${SED} "s%@PKG_FESTIVAL_LOCATION@%${DATADIR}%; \
s%@PKG_PREFIX@%${PREFIX}%" <${FILESDIR}/$$n > ${WRKDIR}/$$n ;} \
done
${INSTALL_SCRIPT} ${WRKDIR}/festival.sh ${PREFIX}/bin/festival
${INSTALL_SCRIPT} ${WRKDIR}/festival_client.sh ${PREFIX}/bin/festival_client
- ${INSTALL_DATA} ${WRKDIR}/sitevars.scm ${FHOME}/lib/sitevars.scm
+ ${INSTALL_DATA} ${WRKDIR}/sitevars.scm ${DATADIR}/lib/sitevars.scm
${INSTALL_MAN} ${FESTIVAL}/doc/festival.1 ${PREFIX}/man/man1/festival.1
${INSTALL_MAN} ${FESTIVAL}/doc/festival_client.1 ${PREFIX}/man/man1/festival_client.1
${CAT} ${PKGMESSAGE}
Index: pkg-plist
===================================================================
RCS file: /usr/cvs/ports/audio/festival/pkg-plist,v
retrieving revision 1.6
diff -u -r1.6 pkg-plist
--- pkg-plist 28 Mar 2007 11:25:37 -0000 1.6
+++ pkg-plist 4 Jul 2007 09:07:52 -0000
@@ -4,143 +4,143 @@
libexec/audsp
libexec/festival.naked
libexec/festival_client.naked
-share/festival/examples/Makefile
-share/festival/examples/addr-mode.scm
-share/festival/examples/apml.dtd
-share/festival/examples/benchmark
-share/festival/examples/benchmark.text
-share/festival/examples/dumpfeats
-share/festival/examples/dumpfeats.sh
-share/festival/examples/durmeanstd
-share/festival/examples/durmeanstd.sh
-share/festival/examples/ex1.email
-share/festival/examples/ex1.ogi
-share/festival/examples/example.apml
-share/festival/examples/example.sable
-share/festival/examples/example.th
-share/festival/examples/example2.sable
-share/festival/examples/festival_client.c
-share/festival/examples/festival_client.h
-share/festival/examples/festival_client.pl
-share/festival/examples/intro.text
-share/festival/examples/latest
-share/festival/examples/latest.sh
-share/festival/examples/make_utts
-share/festival/examples/make_utts.sh
-share/festival/examples/powmeanstd
-share/festival/examples/powmeanstd.sh
-share/festival/examples/saytime
-share/festival/examples/saytime.sh
-share/festival/examples/scfg_parse_text
-share/festival/examples/scfg_parse_text.sh
-share/festival/examples/songs/Makefile
-share/festival/examples/songs/america1.xml
-share/festival/examples/songs/america2.xml
-share/festival/examples/songs/america3.xml
-share/festival/examples/songs/america4.xml
-share/festival/examples/songs/daisy.xml
-share/festival/examples/songs/doremi.xml
-share/festival/examples/songs/lochlomond.xml
-share/festival/examples/songs/spice1.xml
-share/festival/examples/songs/spice2.xml
-share/festival/examples/songs/spice3.xml
-share/festival/examples/songs/spice4.xml
-share/festival/examples/speech_pm_1.0.tar
-share/festival/examples/spintro.text
-share/festival/examples/text2pos
-share/festival/examples/text2pos.sh
-share/festival/examples/text2wave
-share/festival/examples/text2wave.sh
-share/festival/examples/th-mode.scm
-share/festival/examples/tobi.stml
-share/festival/examples/toksearch.scm
-share/festival/examples/webdemo.scm
-share/festival/lib/Makefile
-share/festival/lib/Sable.v0_2.dtd
-share/festival/lib/Singing.v0_1.dtd
-share/festival/lib/VCLocalRules
-share/festival/lib/apml.scm
-share/festival/lib/apml_f2bf0lr.scm
-share/festival/lib/apml_kaldurtreeZ.scm
-share/festival/lib/cart_aux.scm
-share/festival/lib/clunits.scm
-share/festival/lib/clunits_build.scm
-share/festival/lib/cmusphinx2_phones.scm
-share/festival/lib/cslush.scm
-share/festival/lib/cstr.scm
-share/festival/lib/darpa_phones.scm
-share/festival/lib/display.scm
-share/festival/lib/duration.scm
-share/festival/lib/email-mode.scm
-share/festival/lib/engmorph.scm
-share/festival/lib/engmorphsyn.scm
-share/festival/lib/etc/email_filter
-share/festival/lib/f2bdurtreeZ.scm
-share/festival/lib/f2bf0lr.scm
-share/festival/lib/festdoc.scm
-share/festival/lib/festival.el
-share/festival/lib/festival.scm
-share/festival/lib/festtest.scm
-share/festival/lib/fringe.scm
-share/festival/lib/gswdurtreeZ.scm
-share/festival/lib/holmes_phones.scm
-share/festival/lib/hts.scm
-share/festival/lib/init.scm
-share/festival/lib/intonation.scm
-share/festival/lib/java.scm
-share/festival/lib/klatt_durs.scm
-share/festival/lib/languages.scm
-share/festival/lib/lexicons.scm
-share/festival/lib/lts.scm
-share/festival/lib/lts_build.scm
-share/festival/lib/mbrola.scm
-share/festival/lib/mettree.scm
-share/festival/lib/module_description.scm
-share/festival/lib/mrpa_allophones.scm
-share/festival/lib/mrpa_durs.scm
-share/festival/lib/mrpa_phones.scm
-share/festival/lib/multisyn/Makefile
-share/festival/lib/multisyn/multisyn.scm
-share/festival/lib/multisyn/multisyn_pauses.scm
-share/festival/lib/multisyn/radio_phones_multisyn.scm
-share/festival/lib/multisyn/send_xwaves.scm
-share/festival/lib/multisyn/target_cost.scm
-share/festival/lib/ogimarkup-mode.scm
-share/festival/lib/pauses.scm
-share/festival/lib/phoneset.scm
-share/festival/lib/phrase.scm
-share/festival/lib/pos.scm
-share/festival/lib/postlex.scm
-share/festival/lib/radio_phones.scm
-share/festival/lib/sable-latin.ent
-share/festival/lib/sable-mode.scm
-share/festival/lib/scfg.scm
-share/festival/lib/scfg_wsj_wp20.gram
-share/festival/lib/sec.B.hept.ngrambin
-share/festival/lib/sec.ts20.quad.ngrambin
-share/festival/lib/singing-mode.scm
-share/festival/lib/siod.scm
-share/festival/lib/siteinit.scm
-share/festival/lib/sitevars.scm
-share/festival/lib/soleml-mode.scm
-share/festival/lib/speech.properties
-share/festival/lib/synthesis.scm
-share/festival/lib/tilt.scm
-share/festival/lib/tobi.scm
-share/festival/lib/tobi_rules.scm
-share/festival/lib/token.scm
-share/festival/lib/tokenpos.scm
-share/festival/lib/tts.scm
-share/festival/lib/unilex_phones.scm
-share/festival/lib/voices.scm
-share/festival/lib/web.scm
- at dirrmtry share/festival/lib/voices/spanish
- at dirrmtry share/festival/lib/voices/english
- at dirrmtry share/festival/lib/voices
- at dirrm share/festival/lib/multisyn
- at dirrm share/festival/lib/etc
- at dirrmtry share/festival/lib/dicts
- at dirrmtry share/festival/lib
- at dirrm share/festival/examples/songs
- at dirrm share/festival/examples
- at dirrmtry share/festival
+%%DATADIR%%/examples/Makefile
+%%DATADIR%%/examples/addr-mode.scm
+%%DATADIR%%/examples/apml.dtd
+%%DATADIR%%/examples/benchmark
+%%DATADIR%%/examples/benchmark.text
+%%DATADIR%%/examples/dumpfeats
+%%DATADIR%%/examples/dumpfeats.sh
+%%DATADIR%%/examples/durmeanstd
+%%DATADIR%%/examples/durmeanstd.sh
+%%DATADIR%%/examples/ex1.email
+%%DATADIR%%/examples/ex1.ogi
+%%DATADIR%%/examples/example.apml
+%%DATADIR%%/examples/example.sable
+%%DATADIR%%/examples/example.th
+%%DATADIR%%/examples/example2.sable
+%%DATADIR%%/examples/festival_client.c
+%%DATADIR%%/examples/festival_client.h
+%%DATADIR%%/examples/festival_client.pl
+%%DATADIR%%/examples/intro.text
+%%DATADIR%%/examples/latest
+%%DATADIR%%/examples/latest.sh
+%%DATADIR%%/examples/make_utts
+%%DATADIR%%/examples/make_utts.sh
+%%DATADIR%%/examples/powmeanstd
+%%DATADIR%%/examples/powmeanstd.sh
+%%DATADIR%%/examples/saytime
+%%DATADIR%%/examples/saytime.sh
+%%DATADIR%%/examples/scfg_parse_text
+%%DATADIR%%/examples/scfg_parse_text.sh
+%%DATADIR%%/examples/songs/Makefile
+%%DATADIR%%/examples/songs/america1.xml
+%%DATADIR%%/examples/songs/america2.xml
+%%DATADIR%%/examples/songs/america3.xml
+%%DATADIR%%/examples/songs/america4.xml
+%%DATADIR%%/examples/songs/daisy.xml
+%%DATADIR%%/examples/songs/doremi.xml
+%%DATADIR%%/examples/songs/lochlomond.xml
+%%DATADIR%%/examples/songs/spice1.xml
+%%DATADIR%%/examples/songs/spice2.xml
+%%DATADIR%%/examples/songs/spice3.xml
+%%DATADIR%%/examples/songs/spice4.xml
+%%DATADIR%%/examples/speech_pm_1.0.tar
+%%DATADIR%%/examples/spintro.text
+%%DATADIR%%/examples/text2pos
+%%DATADIR%%/examples/text2pos.sh
+%%DATADIR%%/examples/text2wave
+%%DATADIR%%/examples/text2wave.sh
+%%DATADIR%%/examples/th-mode.scm
+%%DATADIR%%/examples/tobi.stml
+%%DATADIR%%/examples/toksearch.scm
+%%DATADIR%%/examples/webdemo.scm
+%%DATADIR%%/lib/Makefile
+%%DATADIR%%/lib/Sable.v0_2.dtd
+%%DATADIR%%/lib/Singing.v0_1.dtd
+%%DATADIR%%/lib/VCLocalRules
+%%DATADIR%%/lib/apml.scm
+%%DATADIR%%/lib/apml_f2bf0lr.scm
+%%DATADIR%%/lib/apml_kaldurtreeZ.scm
+%%DATADIR%%/lib/cart_aux.scm
+%%DATADIR%%/lib/clunits.scm
+%%DATADIR%%/lib/clunits_build.scm
+%%DATADIR%%/lib/cmusphinx2_phones.scm
+%%DATADIR%%/lib/cslush.scm
+%%DATADIR%%/lib/cstr.scm
+%%DATADIR%%/lib/darpa_phones.scm
+%%DATADIR%%/lib/display.scm
+%%DATADIR%%/lib/duration.scm
+%%DATADIR%%/lib/email-mode.scm
+%%DATADIR%%/lib/engmorph.scm
+%%DATADIR%%/lib/engmorphsyn.scm
+%%DATADIR%%/lib/etc/email_filter
+%%DATADIR%%/lib/f2bdurtreeZ.scm
+%%DATADIR%%/lib/f2bf0lr.scm
+%%DATADIR%%/lib/festdoc.scm
+%%DATADIR%%/lib/festival.el
+%%DATADIR%%/lib/festival.scm
+%%DATADIR%%/lib/festtest.scm
+%%DATADIR%%/lib/fringe.scm
+%%DATADIR%%/lib/gswdurtreeZ.scm
+%%DATADIR%%/lib/holmes_phones.scm
+%%DATADIR%%/lib/hts.scm
+%%DATADIR%%/lib/init.scm
+%%DATADIR%%/lib/intonation.scm
+%%DATADIR%%/lib/java.scm
+%%DATADIR%%/lib/klatt_durs.scm
+%%DATADIR%%/lib/languages.scm
+%%DATADIR%%/lib/lexicons.scm
+%%DATADIR%%/lib/lts.scm
+%%DATADIR%%/lib/lts_build.scm
+%%DATADIR%%/lib/mbrola.scm
+%%DATADIR%%/lib/mettree.scm
+%%DATADIR%%/lib/module_description.scm
+%%DATADIR%%/lib/mrpa_allophones.scm
+%%DATADIR%%/lib/mrpa_durs.scm
+%%DATADIR%%/lib/mrpa_phones.scm
+%%DATADIR%%/lib/multisyn/Makefile
+%%DATADIR%%/lib/multisyn/multisyn.scm
+%%DATADIR%%/lib/multisyn/multisyn_pauses.scm
+%%DATADIR%%/lib/multisyn/radio_phones_multisyn.scm
+%%DATADIR%%/lib/multisyn/send_xwaves.scm
+%%DATADIR%%/lib/multisyn/target_cost.scm
+%%DATADIR%%/lib/ogimarkup-mode.scm
+%%DATADIR%%/lib/pauses.scm
+%%DATADIR%%/lib/phoneset.scm
+%%DATADIR%%/lib/phrase.scm
+%%DATADIR%%/lib/pos.scm
+%%DATADIR%%/lib/postlex.scm
+%%DATADIR%%/lib/radio_phones.scm
+%%DATADIR%%/lib/sable-latin.ent
+%%DATADIR%%/lib/sable-mode.scm
+%%DATADIR%%/lib/scfg.scm
+%%DATADIR%%/lib/scfg_wsj_wp20.gram
+%%DATADIR%%/lib/sec.B.hept.ngrambin
+%%DATADIR%%/lib/sec.ts20.quad.ngrambin
+%%DATADIR%%/lib/singing-mode.scm
+%%DATADIR%%/lib/siod.scm
+%%DATADIR%%/lib/siteinit.scm
+%%DATADIR%%/lib/sitevars.scm
+%%DATADIR%%/lib/soleml-mode.scm
+%%DATADIR%%/lib/speech.properties
+%%DATADIR%%/lib/synthesis.scm
+%%DATADIR%%/lib/tilt.scm
+%%DATADIR%%/lib/tobi.scm
+%%DATADIR%%/lib/tobi_rules.scm
+%%DATADIR%%/lib/token.scm
+%%DATADIR%%/lib/tokenpos.scm
+%%DATADIR%%/lib/tts.scm
+%%DATADIR%%/lib/unilex_phones.scm
+%%DATADIR%%/lib/voices.scm
+%%DATADIR%%/lib/web.scm
+ at dirrmtry %%DATADIR%%/lib/voices/spanish
+ at dirrmtry %%DATADIR%%/lib/voices/english
+ at dirrmtry %%DATADIR%%/lib/voices
+ at dirrm %%DATADIR%%/lib/multisyn
+ at dirrm %%DATADIR%%/lib/etc
+ at dirrmtry %%DATADIR%%/lib/dicts
+ at dirrmtry %%DATADIR%%/lib
+ at dirrm %%DATADIR%%/examples/songs
+ at dirrm %%DATADIR%%/examples
+ at dirrmtry %%DATADIR%%
--- audio-festival.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list