mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
62 lines
1.8 KiB
Tcl
62 lines
1.8 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup mpi 1.0
|
|
PortGroup boost 1.0
|
|
|
|
name expgram
|
|
version 0.2.1
|
|
revision 4
|
|
categories textproc
|
|
maintainers nomaintainer
|
|
|
|
description an ngram toolkit with succinct storage
|
|
long_description {*}${description}
|
|
|
|
license LGPL-3+
|
|
|
|
homepage https://att-astrec.nict.go.jp/product/expgram/
|
|
master_sites ${homepage}
|
|
checksums rmd160 1d66e9c18ca8892366c57b9755a3b899a5ab3223 \
|
|
sha256 982e8df505fb410db7bace7e1aebc03fe5a8132538973e1382c922edbec906f6
|
|
|
|
# https://github.com/tarowatanabe/expgram/issues/1
|
|
supported_archs x86_64
|
|
|
|
mpi.setup require
|
|
|
|
boost.version 1.71
|
|
|
|
depends_build port:py27-docutils \
|
|
port:py27-pygments
|
|
|
|
configure.env-append \
|
|
MPI_CXX_COMPILER=${mpi.cxx}
|
|
|
|
configure.optflags -O3
|
|
|
|
post-build {
|
|
system -W ${worksrcpath}/doc "${build.cmd} index.html"
|
|
}
|
|
|
|
post-destroot {
|
|
# 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 \
|
|
doc/index.html \
|
|
${destroot}${docdir}
|
|
# install sample scripts.
|
|
set exdir ${prefix}/share/examples/${name}
|
|
xinstall -d ${destroot}${exdir}
|
|
foreach sh {web1t-en.sh web1t-ja.sh web1t-zh.sh} {
|
|
xinstall -m 644 ${worksrcpath}/sample/${sh} ${destroot}${exdir}
|
|
reinplace "s|expgram-directory|${prefix}/bin|" ${destroot}${exdir}/${sh}
|
|
}
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url [lindex ${master_sites} 0]
|
|
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
|