source: trunk/dports/audio/sphinxtrain/Portfile

Last change on this file was 104231, checked in by jmr@…, 4 years ago

sphinxtrain: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 104231 2013-03-21 12:30:44Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                sphinxtrain
6set real_name       SphinxTrain
7version             1.0
8revision            1
9description         Acoustic model training tools for Sphinx
10long_description    \
11    This is SphinxTrain, Carnegie Mellon University's open source acoustic \
12    model trainer.
13maintainers         nomaintainer
14categories          audio
15license             Permissive
16platforms           darwin freebsd
17homepage            http://cmusphinx.sourceforge.net/
18master_sites        sourceforge:cmusphinx
19master_sites.mirror_subdir  /${real_name}/${version}
20distname            ${real_name}-${version}
21use_bzip2           yes
22depends_lib         bin:perl:perl5 port:python26
23
24checksums           md5     d90f2f76246b7c38f544c35fb10e4594 \
25                    sha1    5ff1ca237d759a62ea9e482ced9fc09d68642a0c \
26                    rmd160  657b4d69ee39f148cd6a9b9b412f77f865cfe3cc
27
28set python.branch       2.6
29set python.prefix       ${frameworks_dir}/Python.framework/Versions/${python.branch}
30set python.bin  ${python.prefix}/bin/python${python.branch}
31set python.lib  ${python.prefix}/Python
32set python.libdir ${python.prefix}/lib/python${python.branch}
33set python.pkgd ${python.prefix}/lib/python${python.branch}/site-packages
34set python.include      ${python.prefix}/include/python${python.branch}
35
36post-build {
37    system "cd ${worksrcpath}/scripts_pl && make"
38}
39
40destroot {
41    eval xinstall -m 755 [glob ${worksrcpath}/bin.*/*] ${destroot}${prefix}/bin
42    eval xinstall -m 644 [glob ${worksrcpath}/lib.*/*] ${destroot}${prefix}/lib
43   
44    system "cd ${worksrcpath}/python && ${python.bin} setup.py --no-user-cfg install --prefix=${python.prefix} --root=${destroot}"
45   
46    xinstall -d ${destroot}${prefix}/share/doc/
47    move ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
48   
49    move ${worksrcpath}/scripts_pl ${destroot}${prefix}/share/${name}
50}
51
52livecheck.type  regex
53livecheck.url   http://sourceforge.net/projects/cmusphinx/files
54livecheck.regex /${real_name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.