source: trunk/dports/textproc/stanford-ner/Portfile

Last change on this file was 135333, checked in by hum@…, 2 years ago

stanford-{ner,parser,postagger}: update to 3.5.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 135333 2015-04-23 10:38:50Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                stanford-ner
7version             3.5.2
8categories          textproc java
9maintainers         hum openmaintainer
10
11description         a high-performance machine learning based named entity recognition system
12long_description    ${description}, including facilities to train models from \
13                    supervised training data and pre-trained models for English.
14
15homepage            http://nlp.stanford.edu/software/CRF-NER.shtml
16platforms           darwin
17license             GPL-2+
18
19master_sites        http://nlp.stanford.edu/software
20
21use_zip             yes
22distname            ${name}-2015-04-20
23checksums           rmd160  3da3dce63415895103d21e1d00460d0d77278f1c \
24                    sha256  655d4ab8bd6ba34ba84a9e605d6abf2176f7d0e2007546718dc78bfcf0701c1f
25
26use_configure       no
27supported_archs     noarch
28
29build {}
30
31destroot {
32    # install jar files and scripts.
33    set dest_java ${destroot}${prefix}/share/java/${name}
34    xinstall -d ${dest_java}
35    xinstall -m 644 -W ${worksrcpath} \
36        stanford-ner.jar \
37        ${dest_java}
38    xinstall -m 755 -W ${worksrcpath} \
39        ner.sh ner-gui.sh \
40        ${dest_java}
41    # install classifiers.
42    set dest_cl ${dest_java}/classifiers
43    xinstall -d ${dest_cl}
44    foreach f [glob ${worksrcpath}/classifiers/*.ser.gz] {
45        xinstall -m 644 ${f} ${dest_cl}
46    }
47    # install examples.
48    set dest_ex ${destroot}${prefix}/share/examples/${name}
49    xinstall -d ${dest_ex}
50    xinstall -m 644 -W ${worksrcpath} \
51        sample.txt sample.ner.txt \
52        ${dest_ex}
53    # install additional documents.
54    set dest_doc ${destroot}${prefix}/share/doc/${name}
55    xinstall -d ${dest_doc}
56    xinstall -m 644 -W ${worksrcpath} \
57        LICENSE.txt README.txt \
58        ${dest_doc}
59}
60
61notes "
62$name requires Java v1.8+
63"
64
65livecheck.type      regex
66livecheck.regex     {version *([0-9.]+) *}
Note: See TracBrowser for help on using the repository browser.