source: trunk/dports/textproc/syncha/Portfile

Last change on this file was 122303, checked in by hum@…, 3 years ago

syncha: update to 0.3.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 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 122303 2014-07-20 10:03:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                syncha
7version             0.3.1
8categories          textproc
9maintainers         hum openmaintainer
10
11description         a Japanese predicate-argument structure analyzer
12long_description    ${name} is ${description}.
13
14homepage            http://www.cl.cs.titech.ac.jp/~ryu-i/syncha/
15platforms           darwin
16license             LGPL
17
18master_sites        ${homepage}
19checksums           rmd160  5e2bdc2ec8ef1784de8c95c1b5fbfca4dac1cacc \
20                    sha256  dc9a49aa8b64166980710df7c68798b91a846dd8c0c9f5de06e0064300a2a06e
21extract.suffix      .tgz
22
23depends_lib         port:lp_solve \
24                    port:cabocha
25
26use_configure       no
27supported_archs     noarch
28
29build {}
30
31destroot {
32    # install data and modules.
33    set syncha_dir ${prefix}/share/${name}
34    xinstall -d ${destroot}${syncha_dir}
35    foreach dir {dat src} {
36        copy ${worksrcpath}/${dir} ${destroot}${syncha_dir}
37    }
38    # install an additional document.
39    set doc_dir ${destroot}${prefix}/share/doc/${name}
40    xinstall -d ${doc_dir}
41    xinstall -m 644 ${worksrcpath}/README ${doc_dir}
42    # install an executable script.
43    xinstall -m 755 ${worksrcpath}/syncha ${destroot}${prefix}/bin
44    reinplace "s|use FindBin qw\(\$Bin\);|my \$Bin = \"${syncha_dir}\";|" \
45        ${destroot}${prefix}/bin/syncha
46}
47
48livecheck.type      regex
49livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.