# -*- 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: Portfile 85145 2011-10-10 12:56:07Z hum@macports.org $ PortSystem 1.0 name extractopinion version 1.1 categories textproc japanese platforms darwin maintainers hum openmaintainer license BSD LGPL-2.1 GPL-2 homepage http://alaginrc.nict.go.jp/opinion/index.html description an opinion extraction tool for Japanese texts long_description ${name} is ${description}. master_sites http://alaginrc.nict.go.jp/opinion/src/ checksums rmd160 45a35364e5354ee115c5d8a1481809d4cd408390 \ sha256 e940860a719be12c64a0cd573bf8ef1922210690df33c7ca5695097e2f5510fc patchfiles patch-extract.sh.diff \ patch-makemdl.sh.diff \ patch-crftrain.sh.diff depends_lib port:crfpp \ port:nkf \ port:gawk \ port:p5-text-csv_xs \ port:juman \ port:knp use_configure no pre-build { copy ${filespath}/Makefile ${worksrcpath} } variant universal {} build.args CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]" destroot { foreach script {_extract _train extract makemdl} { reinplace "s|dir=`cd \$\(dirname \$0\) && pwd`|dir=${prefix}/share/${distname}|" \ ${worksrcpath}/${script}.sh } reinplace "s|dir=|#dir=|" ${worksrcpath}/conf.sh foreach script {pol/out2tsv pol/par2dat pol/tsv2par \ src/makefv src/otag2tsv src/out2tsv src/tsv2tag src/tsvconv \ typ/makefv typ/out2tsv typ/tsvconv \ xpr/otag2tsv xpr/tsv2tag} { reinplace "s|/usr/bin/gawk|${prefix}/bin/gawk|" ${worksrcpath}/${script}.awk } copy ${worksrcpath}/extract.sh ${destroot}${prefix}/bin/extractopinion.sh copy ${worksrcpath}/makemdl.sh ${destroot}${prefix}/bin/extractopinion-makemdl.sh copy ${worksrcpath} ${destroot}${prefix}/share } livecheck.type regex livecheck.url ${homepage} livecheck.regex ${name}-(\[0-9.\]+)\\.tar