source: trunk/dports/textproc/extractopinion/Portfile

Last change on this file was 154214, checked in by mojca@…, 9 months ago

extractopinion: forgotten revbump in r154202

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 154214 2016-10-24 14:03:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                extractopinion
8version             1.2
9revision            4
10categories          textproc japanese
11maintainers         hum openmaintainer
12
13description         an opinion extraction tool for Japanese texts
14long_description    ${name} is ${description}.
15
16homepage            http://alaginrc.nict.go.jp/opinion/index.html
17platforms           darwin
18license             {BSD LGPL GPL}
19
20master_sites        http://alaginrc.nict.go.jp/opinion/src/
21checksums           rmd160  abbfb97605e4316349f279332d3785af3c39d9a0 \
22                    sha256  09c0a2ca339bc5b50afccecbf0b130aec9d15445155ee36fa6605a02952db3cb
23
24patchfiles          patch-extract.sh.diff \
25                    patch-makemdl.sh.diff \
26                    patch-crftrain.sh.diff \
27                    patch-lib_tsv.pm.diff \
28                    patch-perl.diff
29
30perl5.branches      5.24
31
32depends_lib         port:crfpp \
33                    port:libiconv \
34                    port:gawk \
35                    port:p${perl5.major}-text-csv_xs \
36                    port:juman6 \
37                    port:knp3
38
39use_configure       no
40
41variant universal   {}
42
43pre-build {
44    copy ${filespath}/Makefile ${worksrcpath}
45}
46
47post-patch {
48    foreach script {extract.sh makemdl.sh lib/in2tsv.pl lib/tsv2out.pl \
49                    makemodel/csv/csv2tsv.pl makemodel/csv/csv2tsv.sh} {
50        reinplace "s|@PERL@|${perl5.bin}|" ${worksrcpath}/${script}
51    }
52}
53
54build.args          CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]"
55
56destroot {
57    foreach script {_extract _train extract makemdl} {
58        reinplace -locale C "s|dir=`cd \$\(dirname \$0\) && pwd`|dir=${prefix}/share/${distname}|" \
59            ${worksrcpath}/${script}.sh
60    }
61    reinplace -locale C "s|dir=|#dir=|" ${worksrcpath}/conf.sh
62    foreach script {pol/out2tsv pol/par2dat pol/tsv2par \
63                        src/makefv src/otag2tsv src/out2tsv src/tsv2tag src/tsvconv \
64                        typ/makefv typ/out2tsv typ/tsvconv \
65                        xpr/otag2tsv xpr/tsv2tag} {
66        reinplace -locale C "s|/usr/bin/gawk|${prefix}/bin/gawk|" ${worksrcpath}/${script}.awk
67    }
68    copy ${worksrcpath}/extract.sh ${destroot}${prefix}/bin/extractopinion.sh
69    copy ${worksrcpath}/makemdl.sh ${destroot}${prefix}/bin/extractopinion-makemdl.sh
70    copy ${worksrcpath}            ${destroot}${prefix}/share
71}
72
73livecheck.type      regex
74livecheck.url       ${homepage}
75livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.