# $Id: Portfile 104231 2013-03-21 12:30:44Z jmr@macports.org $ PortSystem 1.0 name sphinxtrain set real_name SphinxTrain version 1.0 revision 1 description Acoustic model training tools for Sphinx long_description \ This is SphinxTrain, Carnegie Mellon University's open source acoustic \ model trainer. maintainers nomaintainer categories audio license Permissive platforms darwin freebsd homepage http://cmusphinx.sourceforge.net/ master_sites sourceforge:cmusphinx master_sites.mirror_subdir /${real_name}/${version} distname ${real_name}-${version} use_bzip2 yes depends_lib bin:perl:perl5 port:python26 checksums md5 d90f2f76246b7c38f544c35fb10e4594 \ sha1 5ff1ca237d759a62ea9e482ced9fc09d68642a0c \ rmd160 657b4d69ee39f148cd6a9b9b412f77f865cfe3cc set python.branch 2.6 set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch} set python.bin ${python.prefix}/bin/python${python.branch} set python.lib ${python.prefix}/Python set python.libdir ${python.prefix}/lib/python${python.branch} set python.pkgd ${python.prefix}/lib/python${python.branch}/site-packages set python.include ${python.prefix}/include/python${python.branch} post-build { system "cd ${worksrcpath}/scripts_pl && make" } destroot { eval xinstall -m 755 [glob ${worksrcpath}/bin.*/*] ${destroot}${prefix}/bin eval xinstall -m 644 [glob ${worksrcpath}/lib.*/*] ${destroot}${prefix}/lib system "cd ${worksrcpath}/python && ${python.bin} setup.py --no-user-cfg install --prefix=${python.prefix} --root=${destroot}" xinstall -d ${destroot}${prefix}/share/doc/ move ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} move ${worksrcpath}/scripts_pl ${destroot}${prefix}/share/${name} } livecheck.type regex livecheck.url http://sourceforge.net/projects/cmusphinx/files livecheck.regex /${real_name}-(\[0-9.\]+)${extract.suffix}