Ticket #29388: Portfile.diff

File Portfile.diff, 3.6 KB (added by humem (humem), 14 years ago)
  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                open_jtalk
    7 version             1.02
     7version             1.03
    88categories          audio japanese
    99platforms           darwin
    1010maintainers         nomaintainer
     
    1818master_sites        sourceforge:open-jtalk
    1919
    2020checksums           ${distname}${extract.suffix} \
    21                         sha1    cc3e4b1b04600ad2d526f07a33e2b2978f47ee2b \
    22                         rmd160  875463e70dea02b702719546905a3b86df78bcb2
     21                    sha1    b4b93567c5c83e81cf337bdb89cde0e97ef7f30b \
     22                    rmd160  1feac317fb675a2927bca2dd00d641ee8d74abf7
    2323
    2424depends_lib         port:hts_engine_API \
    2525                    port:libiconv
     
    3333
    3434default_variants    +voice
    3535
    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
     36set voice_nitech    hts_voice_nitech_jp_atr503_m001-${version}
     37set voice_mei       MMDAgent_Example-1.0
     38set voice_nitech_dist  ${voice_nitech}${extract.suffix}
     39set voice_mei_dist     ${voice_mei}.zip
     40
     41variant 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    }
    4457
    4558    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        }
    4966        # configure an executable demo script file.
    5067        set script_name  open_jtalk_demo
    5168        set script_dest  ${destroot}${prefix}/bin/${script_name}
    52         set dic_dir      ${prefix}/lib/${name}/dic
    5369        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}
    5771    }
    5872}
    5973
    6074livecheck.type      regex
    61 livecheck.url       http://sourceforge.net/projects/open-jtalk/files/
     75livecheck.url       http://sourceforge.net/projects/open-jtalk/files/Open%20JTalk/
    6276livecheck.regex     /${name}-(\[0-9.\]+)/