# -*- 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 # $Id$ PortSystem 1.0 name cicada version 0.3.0 categories textproc maintainers hum openmaintainer description a hypergraph-based toolkit for statistical machine translation long_description ${description} homepage http://www2.nict.go.jp/univ-com/multi_trans/cicada platforms darwin license LGPL-3+ master_sites ${homepage} checksums rmd160 895cc333fa335ec74fb1808b1cea72e01c556179 \ sha256 dd2102812953a6d1093fe23688ddf7f80fe86e98cd0e9f217ad650a5beb5b524 depends_lib port:expgram \ port:boost \ port:openmpi \ port:icu depends_build port:py27-docutils \ port:py27-pygments patchfiles patch-configure.diff \ patch-samples.diff post-build { system -W ${worksrcpath}/doc "${build.cmd} index.html" } post-destroot { # install additional documents. set dest_doc ${destroot}${prefix}/share/doc/${name} xinstall -d ${dest_doc} xinstall -m 644 -W ${worksrcpath} \ COPYING.GPL COPYING.LGPL FAQ LICENSE NEWS.rst README.rst TODO.rst \ doc/index.html \ ${dest_doc} foreach rst [glob ${worksrcpath}/doc/*.rst] { xinstall -m 644 ${rst} ${dest_doc} } # install sample data and scripts. xinstall -d ${destroot}${prefix}/share/examples set dest_ex ${destroot}${prefix}/share/examples/${name} copy ${worksrcpath}/samples ${dest_ex} foreach f {Makefile Makefile.am Makefile.in} { delete ${dest_ex}/${f} } foreach sh [glob ${dest_ex}/*/*.sh ${dest_ex}/*/*/*.sh ${dest_ex}/*/*/*/*.sh] { reinplace "s|@PREFIX@|${prefix}|g" ${sh} } } # Note: # To run kftt sample scripts in ${prefix}/share/examples/${name}/kftt.30k, # please install the following ports: mecab, cabocha, stanford-parser. livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ${name}-(\[0-9.\]+)\\.tar