# -*- 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 135333 2015-04-23 10:38:50Z hum@macports.org $ PortSystem 1.0 name stanford-ner version 3.5.2 categories textproc java maintainers hum openmaintainer description a high-performance machine learning based named entity recognition system long_description ${description}, including facilities to train models from \ supervised training data and pre-trained models for English. homepage http://nlp.stanford.edu/software/CRF-NER.shtml platforms darwin license GPL-2+ master_sites http://nlp.stanford.edu/software use_zip yes distname ${name}-2015-04-20 checksums rmd160 3da3dce63415895103d21e1d00460d0d77278f1c \ sha256 655d4ab8bd6ba34ba84a9e605d6abf2176f7d0e2007546718dc78bfcf0701c1f use_configure no supported_archs noarch build {} destroot { # install jar files and scripts. set dest_java ${destroot}${prefix}/share/java/${name} xinstall -d ${dest_java} xinstall -m 644 -W ${worksrcpath} \ stanford-ner.jar \ ${dest_java} xinstall -m 755 -W ${worksrcpath} \ ner.sh ner-gui.sh \ ${dest_java} # install classifiers. set dest_cl ${dest_java}/classifiers xinstall -d ${dest_cl} foreach f [glob ${worksrcpath}/classifiers/*.ser.gz] { xinstall -m 644 ${f} ${dest_cl} } # install examples. set dest_ex ${destroot}${prefix}/share/examples/${name} xinstall -d ${dest_ex} xinstall -m 644 -W ${worksrcpath} \ sample.txt sample.ner.txt \ ${dest_ex} # install additional documents. set dest_doc ${destroot}${prefix}/share/doc/${name} xinstall -d ${dest_doc} xinstall -m 644 -W ${worksrcpath} \ LICENSE.txt README.txt \ ${dest_doc} } notes " $name requires Java v1.8+ " livecheck.type regex livecheck.regex {version *([0-9.]+) *}