# -*- 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 \
# ICU is the last version that does not require C++11
depends_lib port:expgram \
depends_build port:py27-docutils \
patchfiles patch-samples.diff \
patch-boost_includes.diff
# for reasons that are not clear,
# -std=c++11 (explicit or the default value) causes a great many errors
# with the template instantiation of Boost headers
configure.env-append ICU_CONFIG=${prefix}/libexec/icu58/bin/icu-config
configure.cxxflags-append -std=c++03
# avoid conflicts_build-append port:icu
configure.cppflags-delete -I${prefix}/include
configure.ldflags-delete -L${prefix}/lib
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] {