Ticket #29075: Portfile

File Portfile, 2.2 KB (added by humem (humem), 14 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                open_jtalk
7version             1.02
8categories          audio japanese
9platforms           darwin
10maintainers         nomaintainer
11license             BSD
12
13description         Japanese text-to-speech synthesis system
14
15long_description    Open JTalk is a Japanese text-to-speech synthesis system.
16
17homepage            http://open-jtalk.sourceforge.net/
18master_sites        sourceforge:open-jtalk
19
20checksums           ${distname}${extract.suffix} \
21                        sha1    cc3e4b1b04600ad2d526f07a33e2b2978f47ee2b \
22                        rmd160  875463e70dea02b702719546905a3b86df78bcb2
23
24depends_lib         port:hts_engine_API \
25                    port:libiconv
26
27use_autoreconf      yes
28
29configure.args      --with-hts-engine-header-path=${prefix}/include \
30                    --with-hts-engine-library-path=${prefix}/lib
31                   
32patchfiles          patch-Makefile.diff
33
34default_variants    +voice
35
36set voice_name      hts_voice_nitech_jp_atr503_m001
37set voice_model     ${voice_name}-${version}
38
39variant 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
44
45    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}
49        # configure an executable demo script file.
50        set script_name  open_jtalk_demo
51        set script_dest  ${destroot}${prefix}/bin/${script_name}
52        set dic_dir      ${prefix}/lib/${name}/dic
53        xinstall -m 755 ${filespath}/${script_name} ${script_dest}
54        reinplace "s|@voice_dir@|${voice_dir}|g" ${script_dest}
55        reinplace "s|@dic_dir@|${dic_dir}|g" ${script_dest}
56    }
57}
58
59livecheck.type      regex
60livecheck.url       http://sourceforge.net/projects/open-jtalk/files/
61livecheck.regex     /${name}-(\[0-9.\]+)/