source: trunk/dports/audio/open_jtalk/Portfile

Last change on this file was 130061, checked in by hum@…, 3 years ago

open_jtalk: update to 1.08

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
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: Portfile 130061 2014-12-25 15:46:42Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                open_jtalk
7version             1.08
8categories          audio japanese
9platforms           darwin
10maintainers         hum openmaintainer
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:project/open-jtalk/Open%20JTalk/open_jtalk-${version}
19
20checksums           ${distname}${extract.suffix} \
21                    rmd160  1ad86fcfc0d85cc1f5420f16f1bcf75dfb9a58fc \
22                    sha256  4771014f71734653b158e1723fd8c5c4440246a1fcc83491d6aa1c791ee2109e
23
24depends_build       port:hts_engine_API
25depends_run         port:libiconv
26
27patchfiles          patch-Makefile.diff
28
29if {[variant_isset universal]} {
30    use_autoreconf  yes
31}
32
33configure.args      --with-hts-engine-header-path=${prefix}/include \
34                    --with-hts-engine-library-path=${prefix}/lib
35
36post-destroot {
37    set docdir ${prefix}/share/doc/${name}
38    xinstall -d ${destroot}${docdir}
39    xinstall -m 644 -W ${worksrcpath} \
40        AUTHORS COPYING ChangeLog NEWS README \
41        ${destroot}${docdir}
42}
43
44default_variants    +voice
45
46set voice_nitech    hts_voice_nitech_jp_atr503_m001-1.05
47#set voice_nitech    hts_voice_nitech_jp_atr503_m001-${version}
48set voice_mei       MMDAgent_Example-1.4
49set voice_nitech_dist  ${voice_nitech}${extract.suffix}
50set voice_mei_dist     ${voice_mei}.zip
51
52variant voice description {Add HTS voices and a demo script} {
53    distfiles-append    ${voice_nitech_dist} \
54                        ${voice_mei_dist}:mei
55    master_sites-append sourceforge:project/open-jtalk/HTS%20voice/${voice_nitech}/ \
56                        sourceforge:project/mmdagent/MMDAgent_Example/${voice_mei}/:mei
57
58    checksums-append    ${voice_nitech_dist} \
59                        rmd160  0cbb453a8af84e30f840d174cd13ed30dcd9fe7d \
60                        sha256  2e555c88482267b2931c7dbc7ecc0e3df140d6f68fc913aa4822f336c9e0adfc \
61                        ${voice_mei_dist} \
62                        rmd160  f85fbb8e93505f60989452697d95418a3c2ed0cf \
63                        sha256  44096d92a8d2aef0e6079dc18cf0ec25f557aa5df5476c8c8b099cba8019c11a
64    extract.only-delete ${voice_mei_dist}
65
66    post-extract {
67        ui_debug "Extracting ${voice_mei_dist}"
68        system -W ${workpath} "unzip -q ${distpath}/${voice_mei_dist}"
69    }
70
71    post-destroot {
72        # copy voice data.
73        set voice_dir    ${prefix}/lib/${name}/voice
74        xinstall -d ${destroot}${voice_dir}
75        copy ${workpath}/${voice_nitech} ${destroot}${voice_dir}/nitech
76        foreach dir [glob ${workpath}/${voice_mei}/Voice/*] {
77            copy $dir ${destroot}${voice_dir}
78        }
79        # configure an executable demo script file.
80        set script_name  open_jtalk_demo
81        set script_dest  ${destroot}${prefix}/bin/${script_name}
82        xinstall -m 755 ${filespath}/${script_name} ${script_dest}
83        reinplace "s|@prefix@|${prefix}|g"          ${script_dest}
84    }
85}
86
87livecheck.type      regex
88livecheck.url       http://sourceforge.net/projects/open-jtalk/files/Open%20JTalk/
89livecheck.regex     /${name}-(\[0-9.\]+)/
Note: See TracBrowser for help on using the repository browser.