source: trunk/dports/textproc/stanford-parser/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: 1.7 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-parser
7version             3.5.2
8categories          textproc java
9maintainers         hum openmaintainer
10
11description         a Java implementation of probabilistic natural language parsers
12long_description    ${description}, both highly optimized PCFG and lexicalized \
13                    dependency parsers, and a lexicalized PCFG parser.
14
15homepage            http://nlp.stanford.edu/software/lex-parser.shtml
16platforms           darwin
17license             GPL-2+
18
19master_sites        http://nlp.stanford.edu/software
20
21use_zip             yes
22distname            ${name}-full-2015-04-20
23checksums           rmd160  1266f8e9d67ea724272f25076c34ddeac116f0b5 \
24                    sha256  dbad96205d64bd0d259b1fc99318ac0ff90452380a1159d22d4e7b5e9bd790b5
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-parser.jar \
37        stanford-parser-${version}-models.jar \
38        ${dest_java}
39    xinstall -m 755 -W ${worksrcpath} \
40        lexparser.sh \
41        lexparser-gui.sh \
42        ${dest_java}
43    # install additional documents.
44    set dest_doc ${destroot}${prefix}/share/doc/${name}
45    xinstall -d ${dest_doc}
46    xinstall -m 644 -W ${worksrcpath} \
47        LICENSE.txt README.txt README_dependencies.txt \
48        StanfordDependenciesManual.pdf \
49        ${dest_doc}
50}
51
52notes "
53$name requires Java v1.8+
54"
55
56livecheck.type      regex
57livecheck.regex     {Version *([0-9.]+) *}
Note: See TracBrowser for help on using the repository browser.