# -*- 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
github.setup nullnull normalizeNumexp 9f0e855fa81cf7f0c6e06e0647054f1d997d7531
categories textproc japanese
description Numerical/Temporal expression normalizer
long_description ${name} is a tool for normalizing numerical/temporal expression.
#homepage http://www.cl.ecei.tohoku.ac.jp/~katsuma/software/normalizeNumexp/
checksums rmd160 18a339ea95dd38812c342e2b18d3f7edb7318c70 \
sha256 bd8c2482af65e3e9296faa393ee86c1f21e753d631ade03bf265a68eee439904 \
depends_build-append port:pkgconfig
depends_lib port:ux-trie port:pficommon
# install additional documents.
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} \
LICENSE README.rst history.txt \
set libpath ${prefix}/lib/libnormalize_numexp.dylib
set builddir ${worksrcpath}/build/src
set exepath ${prefix}/bin/normalizeNumexp
regexp {(\S+\/libnormalize_numexp\S+dylib)} [exec otool -L ${destroot}${exepath}] path
system "install_name_tool -id ${libpath} ${destroot}${libpath}"
system "install_name_tool -change ${path} ${libpath} ${destroot}${exepath}"
livecheck.url ${homepage}
livecheck.version [join [lrange [split ${version} .] 0 1] .]
livecheck.regex "${name} (\[0-9.\]+)"