Ignore:
Timestamp:
Oct 10, 2011, 12:56:07 PM (8 years ago)
Author:
hum@…
Message:

extractopinion: update to 1.1; add support for makemdl; simplify setting cflags; add options to executable scripts.

Location:
trunk/dports/textproc/extractopinion
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/extractopinion/Portfile

    r83481 r85145  
    55
    66name                extractopinion
    7 version             1.0
     7version             1.1
    88categories          textproc japanese
    99platforms           darwin
    1010maintainers         hum openmaintainer
    11 license             BSD LGPL GPL
     11license             BSD LGPL-2.1 GPL-2
    1212
    1313homepage            http://alaginrc.nict.go.jp/opinion/index.html
    14 description         an opinion extraction tool for Japanese texts.
    15 long_description    ${description}
     14description         an opinion extraction tool for Japanese texts
     15long_description    ${name} is ${description}.
    1616
    1717master_sites        http://alaginrc.nict.go.jp/opinion/src/
    1818
    19 checksums           sha1    208540479b7b0193bb0273aef99cfb4eebd4de7a \
    20                     rmd160  eb143e445c9a9ba50684df184f8fcf0e4c007e4b
     19checksums           rmd160  45a35364e5354ee115c5d8a1481809d4cd408390 \
     20                    sha256  e940860a719be12c64a0cd573bf8ef1922210690df33c7ca5695097e2f5510fc
     21
     22patchfiles          patch-extract.sh.diff \
     23                    patch-makemdl.sh.diff \
     24                    patch-crftrain.sh.diff
    2125
    2226depends_lib         port:crfpp \
    2327                    port:nkf \
    2428                    port:gawk \
     29                    port:p5-text-csv_xs \
    2530                    port:juman \
    2631                    port:knp
     
    3237}
    3338
    34 variant universal {}
    35 if {[variant_isset universal]} {
    36     set archflags ${configure.universal_cflags}
    37 } else {
    38     set archflags ${configure.cflags}
    39 }
     39variant universal   {}
    4040
    41 build.args         CFLAGS="${archflags}"
     41build.args          CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]"
    4242
    4343destroot {
    44     reinplace "s|dir=`cd \$\(dirname \$0\) && pwd`|dir=${prefix}/share/${distname}|" \
    45         ${worksrcpath}/extract.sh
     44    foreach script {_extract _train extract makemdl} {
     45        reinplace "s|dir=`cd \$\(dirname \$0\) && pwd`|dir=${prefix}/share/${distname}|" \
     46            ${worksrcpath}/${script}.sh
     47    }
    4648    reinplace "s|dir=|#dir=|" ${worksrcpath}/conf.sh
    4749    foreach script {pol/out2tsv pol/par2dat pol/tsv2par \
     
    5254    }
    5355    copy ${worksrcpath}/extract.sh ${destroot}${prefix}/bin/extractopinion.sh
     56    copy ${worksrcpath}/makemdl.sh ${destroot}${prefix}/bin/extractopinion-makemdl.sh
    5457    copy ${worksrcpath}            ${destroot}${prefix}/share
    5558}
Note: See TracChangeset for help on using the changeset viewer.