Ticket #29388: Portfile.diff
File Portfile.diff, 3.6 KB (added by humem (humem), 14 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name open_jtalk 7 version 1.0 27 version 1.03 8 8 categories audio japanese 9 9 platforms darwin 10 10 maintainers nomaintainer … … 18 18 master_sites sourceforge:open-jtalk 19 19 20 20 checksums ${distname}${extract.suffix} \ 21 sha1 cc3e4b1b04600ad2d526f07a33e2b2978f47ee2b \22 rmd160 875463e70dea02b702719546905a3b86df78bcb221 sha1 b4b93567c5c83e81cf337bdb89cde0e97ef7f30b \ 22 rmd160 1feac317fb675a2927bca2dd00d641ee8d74abf7 23 23 24 24 depends_lib port:hts_engine_API \ 25 25 port:libiconv … … 33 33 34 34 default_variants +voice 35 35 36 set voice_name hts_voice_nitech_jp_atr503_m001 37 set voice_model ${voice_name}-${version} 38 39 variant voice description {Add HTS voice and a demo script} { 40 distfiles-append ${voice_model}${extract.suffix} 41 checksums-append ${voice_model}${extract.suffix} \ 42 sha1 aea8118b703a3dc5681fdffbafa42e5ad8e007d0 \ 43 rmd160 2856c060f983c63fc9632ab56fa4e2443abf585d 36 set voice_nitech hts_voice_nitech_jp_atr503_m001-${version} 37 set voice_mei MMDAgent_Example-1.0 38 set voice_nitech_dist ${voice_nitech}${extract.suffix} 39 set voice_mei_dist ${voice_mei}.zip 40 41 variant voice description {Add HTS voices and a demo script} { 42 distfiles-append ${voice_nitech_dist} \ 43 ${voice_mei_dist}:mei 44 master_sites-append http://sourceforge.net/projects/mmdagent/files/MMDAgent_Example/${voice_mei}/:mei 45 checksums-append ${voice_nitech_dist} \ 46 sha1 b59a1055b2790564f57e509579b8222e813bdc19 \ 47 rmd160 00e8eba6b460210fe7b353b1d437ea788ac8c366 \ 48 ${voice_mei_dist} \ 49 sha1 9b77823487821ab51d0a85acc341ef88003175c5 \ 50 rmd160 c41df37857b8f1839c3f7f3c89e36101f45189d8 51 extract.only-delete ${voice_mei_dist} 52 53 post-extract { 54 ui_debug "Extracting ${voice_mei_dist}" 55 system "unzip -q ${distpath}/${voice_mei_dist} -d ${workpath}" 56 } 44 57 45 58 post-destroot { 46 # copy the voice model data. 47 set voice_dir ${prefix}/lib/${name}/${voice_model} 48 copy ${workpath}/${voice_model} ${destroot}${voice_dir} 59 # copy voice data. 60 set voice_dir ${prefix}/lib/${name}/voice 61 xinstall -d ${destroot}${voice_dir} 62 copy ${workpath}/${voice_nitech} ${destroot}${voice_dir}/nitech 63 foreach dir [glob ${workpath}/${voice_mei}/Voice/*] { 64 copy $dir ${destroot}${voice_dir} 65 } 49 66 # configure an executable demo script file. 50 67 set script_name open_jtalk_demo 51 68 set script_dest ${destroot}${prefix}/bin/${script_name} 52 set dic_dir ${prefix}/lib/${name}/dic53 69 xinstall -m 755 ${filespath}/${script_name} ${script_dest} 54 reinplace "s|@prefix@|${prefix}|g" ${script_dest} 55 reinplace "s|@voice_dir@|${voice_dir}|g" ${script_dest} 56 reinplace "s|@dic_dir@|${dic_dir}|g" ${script_dest} 70 reinplace "s|@prefix@|${prefix}|g" ${script_dest} 57 71 } 58 72 } 59 73 60 74 livecheck.type regex 61 livecheck.url http://sourceforge.net/projects/open-jtalk/files/ 75 livecheck.url http://sourceforge.net/projects/open-jtalk/files/Open%20JTalk/ 62 76 livecheck.regex /${name}-(\[0-9.\]+)/