# -*- 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
description a hypergraph-based toolkit for statistical machine translation
long_description ${description}
homepage https://att-astrec.nict.go.jp/product/cicada/
checksums rmd160 43d8967a48004c4dcfadc1a7e621cebe53e35930 \
sha256 dc3730ba21b53c25ebbcd2a1fb7dbd177abf8fd14d848ab108451efcbd9a4bc3 \
depends_lib port:expgram \
depends_build port:py27-docutils \
patchfiles patch-samples.diff \
patch-boost_includes.diff
MPI_CXX_COMPILER=${configure.cxx}
system -W ${worksrcpath}/doc "${build.cmd} index.html"
# install additional documents.
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} \
COPYING.GPL COPYING.LGPL FAQ LICENSE NEWS.rst README.rst TODO.rst \
foreach rst [glob ${worksrcpath}/doc/*.rst] {
xinstall -m 644 ${rst} ${destroot}${docdir}
# install sample data and scripts.
xinstall -d ${destroot}${prefix}/share/examples
set exdir ${prefix}/share/examples/${name}
copy ${worksrcpath}/samples ${destroot}${exdir}
foreach f {Makefile Makefile.am Makefile.in} {
delete ${destroot}${exdir}/${f}
foreach sh [glob ${destroot}${exdir}/*/*.sh ${destroot}${exdir}/*/*/*.sh ${destroot}${exdir}/*/*/*/*.sh] {