Changeset 99566


Ignore:
Timestamp:
Nov 10, 2012, 4:14:14 AM (11 years ago)
Author:
hum@…
Message:

jdepp: update to 2012-11-08; add kyoto_partial variant.

Location:
trunk/dports/textproc/jdepp
Files:
1 added
2 edited

Legend:

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

    r98477 r99566  
    55
    66name                jdepp
    7 version             2012-10-06
     7version             2012-11-08
    88categories          textproc japanese
    99maintainers         hum openmaintainer
     
    2323
    2424master_sites        ${homepage}
    25 checksums           rmd160  2b5ac0967a097a8056bfd14da111d17f41d6c6bd \
    26                     sha256  794cd7202cf3e0b667a6726ecdaecb0d1b4bb6bb7f5451b41b4f8700b9d32a67
     25checksums           ${distname}${extract.suffix} \
     26                    rmd160  cd79420c832369e7c2174e6aa5e786f4c203643b \
     27                    sha256  e41699de9672ec9f56c5266977947345e93e10480b003044aa51fe2c4b539e83
    2728
    28 patchfiles          patch-configure.diff
     29patchfiles          patch-configure.diff \
     30                    patch-src_classify.cc.diff
    2931
    3032depends_lib         port:mecab-base \
     
    3335configure.args      --enable-standalone
    3436
    35 variant knbc conflicts kyoto description {Train a parser wht KNBC (Kyoto-University and NTT Blog Corpus)} {
     37variant knbc conflicts kyoto kyoto_partial description {Train a parser wht KNBC (Kyoto-University and NTT Blog Corpus)} {
    3638    depends_build-append  port:KNBC
    3739
     
    4244}
    4345
    44 # Users must put their Kyoto Corpus 4.0 into the following directory if +kyoto variant is set.
     46variant kyoto_partial conflicts kyoto knbc description {Train a parser with Kyoto-University Text Corpus annotation without Mainichi news articles} {
     47    set kyoto_corpus      KyotoCorpus4.0
     48    set corpus_distfile   ${kyoto_corpus}${extract.suffix}
     49    distfiles-append      ${corpus_distfile}:corpus
     50    master_sites-append   http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/corpus/:corpus
     51    checksums-append      ${corpus_distfile} \
     52                          rmd160  9c8212d939b7112a79aff30ab0880f94c3ee9b48 \
     53                          sha256  6fe4f7bac19e192f7545c4de0c765f690a524c7611191e2af9be031d4923871f
     54
     55    configure.args-append --with-corpus=kyoto-partial \
     56                          --enable-autopos-train=no
     57
     58    build.target          model
     59    build.args-append     CORPUS_DIR=${workpath}/${kyoto_corpus}
     60}
     61
     62# To use the complete kyoto corpus with +kyoto variant, users must put their data into the following directory.
    4563set kyoto_dir       /tmp/KyotoCorpus4.0
    4664
    47 variant kyoto conflicts knbc description {Train a parser with Kyoto-University Text Corpus} {
     65variant kyoto conflicts kyoto_partial knbc description {Train a parser with Kyoto-University Text Corpus} {
    4866    if {[file exists ${kyoto_dir}]} {
    4967        build.target          model
     
    7189}
    7290
    73 if {![variant_isset kyoto]} {
     91if {![variant_isset kyoto] && ![variant_isset kyoto_partial]} {
    7492    default_variants +knbc
    7593}
  • trunk/dports/textproc/jdepp/files/patch-configure.diff

    r98196 r99566  
    1 --- configure.orig      2012-09-26 22:51:10.000000000 +0900
    2 +++ configure   2012-09-28 00:21:04.000000000 +0900
    3 @@ -5625,7 +5625,7 @@
     1--- configure.orig      2012-11-08 20:33:04.000000000 +0900
     2+++ configure   2012-11-10 09:37:01.000000000 +0900
     3@@ -5630,7 +5630,7 @@
    44 
    55 $as_echo "#define USE_MECAB 1" >>confdefs.h
     
    1010   as_fn_error $? "\"${MECAB_DICT}\" not found" "$LINENO" 5
    1111 fi
    12 @@ -5702,7 +5702,7 @@
     12@@ -5707,7 +5707,7 @@
    1313 
    1414 $as_echo "#define USE_AS_STANDALONE 1" >>confdefs.h
Note: See TracChangeset for help on using the changeset viewer.