[99566] trunk/dports/textproc/jdepp
hum at macports.org
hum at macports.org
Fri Nov 9 20:14:15 PST 2012
Revision: 99566
http://trac.macports.org//changeset/99566
Author: hum at macports.org
Date: 2012-11-09 20:14:14 -0800 (Fri, 09 Nov 2012)
Log Message:
-----------
jdepp: update to 2012-11-08; add kyoto_partial variant.
Modified Paths:
--------------
trunk/dports/textproc/jdepp/Portfile
trunk/dports/textproc/jdepp/files/patch-configure.diff
Added Paths:
-----------
trunk/dports/textproc/jdepp/files/patch-src_classify.cc.diff
Modified: trunk/dports/textproc/jdepp/Portfile
===================================================================
--- trunk/dports/textproc/jdepp/Portfile 2012-11-10 00:27:23 UTC (rev 99565)
+++ trunk/dports/textproc/jdepp/Portfile 2012-11-10 04:14:14 UTC (rev 99566)
@@ -4,7 +4,7 @@
PortSystem 1.0
name jdepp
-version 2012-10-06
+version 2012-11-08
categories textproc japanese
maintainers hum openmaintainer
@@ -22,17 +22,19 @@
license {GPL-2 LGPL-2.1}
master_sites ${homepage}
-checksums rmd160 2b5ac0967a097a8056bfd14da111d17f41d6c6bd \
- sha256 794cd7202cf3e0b667a6726ecdaecb0d1b4bb6bb7f5451b41b4f8700b9d32a67
+checksums ${distname}${extract.suffix} \
+ rmd160 cd79420c832369e7c2174e6aa5e786f4c203643b \
+ sha256 e41699de9672ec9f56c5266977947345e93e10480b003044aa51fe2c4b539e83
-patchfiles patch-configure.diff
+patchfiles patch-configure.diff \
+ patch-src_classify.cc.diff
depends_lib port:mecab-base \
port:mecab-jumandic-utf8
configure.args --enable-standalone
-variant knbc conflicts kyoto description {Train a parser wht KNBC (Kyoto-University and NTT Blog Corpus)} {
+variant knbc conflicts kyoto kyoto_partial description {Train a parser wht KNBC (Kyoto-University and NTT Blog Corpus)} {
depends_build-append port:KNBC
configure.args-append --with-corpus=knbc
@@ -41,10 +43,26 @@
build.args-append CORPUS_DIR=${prefix}/share/KNBC
}
-# Users must put their Kyoto Corpus 4.0 into the following directory if +kyoto variant is set.
+variant kyoto_partial conflicts kyoto knbc description {Train a parser with Kyoto-University Text Corpus annotation without Mainichi news articles} {
+ set kyoto_corpus KyotoCorpus4.0
+ set corpus_distfile ${kyoto_corpus}${extract.suffix}
+ distfiles-append ${corpus_distfile}:corpus
+ master_sites-append http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/corpus/:corpus
+ checksums-append ${corpus_distfile} \
+ rmd160 9c8212d939b7112a79aff30ab0880f94c3ee9b48 \
+ sha256 6fe4f7bac19e192f7545c4de0c765f690a524c7611191e2af9be031d4923871f
+
+ configure.args-append --with-corpus=kyoto-partial \
+ --enable-autopos-train=no
+
+ build.target model
+ build.args-append CORPUS_DIR=${workpath}/${kyoto_corpus}
+}
+
+# To use the complete kyoto corpus with +kyoto variant, users must put their data into the following directory.
set kyoto_dir /tmp/KyotoCorpus4.0
-variant kyoto conflicts knbc description {Train a parser with Kyoto-University Text Corpus} {
+variant kyoto conflicts kyoto_partial knbc description {Train a parser with Kyoto-University Text Corpus} {
if {[file exists ${kyoto_dir}]} {
build.target model
build.args-append CORPUS_DIR=${kyoto_dir}
@@ -70,7 +88,7 @@
configure.args-append --with-mecab-dict=NAIST-J
}
-if {![variant_isset kyoto]} {
+if {![variant_isset kyoto] && ![variant_isset kyoto_partial]} {
default_variants +knbc
}
Modified: trunk/dports/textproc/jdepp/files/patch-configure.diff
===================================================================
--- trunk/dports/textproc/jdepp/files/patch-configure.diff 2012-11-10 00:27:23 UTC (rev 99565)
+++ trunk/dports/textproc/jdepp/files/patch-configure.diff 2012-11-10 04:14:14 UTC (rev 99566)
@@ -1,6 +1,6 @@
---- configure.orig 2012-09-26 22:51:10.000000000 +0900
-+++ configure 2012-09-28 00:21:04.000000000 +0900
-@@ -5625,7 +5625,7 @@
+--- configure.orig 2012-11-08 20:33:04.000000000 +0900
++++ configure 2012-11-10 09:37:01.000000000 +0900
+@@ -5630,7 +5630,7 @@
$as_echo "#define USE_MECAB 1" >>confdefs.h
@@ -9,7 +9,7 @@
if ! test -e $MECAB_DICT; then :
as_fn_error $? "\"${MECAB_DICT}\" not found" "$LINENO" 5
fi
-@@ -5702,7 +5702,7 @@
+@@ -5707,7 +5707,7 @@
$as_echo "#define USE_AS_STANDALONE 1" >>confdefs.h
Added: trunk/dports/textproc/jdepp/files/patch-src_classify.cc.diff
===================================================================
--- trunk/dports/textproc/jdepp/files/patch-src_classify.cc.diff (rev 0)
+++ trunk/dports/textproc/jdepp/files/patch-src_classify.cc.diff 2012-11-10 04:14:14 UTC (rev 99566)
@@ -0,0 +1,12 @@
+--- src/classify.cc.orig 2012-10-26 22:28:13.000000000 +0900
++++ src/classify.cc 2012-11-10 08:10:06.000000000 +0900
+@@ -2,7 +2,9 @@
+ // $Id: classify.cc 1009 2012-10-22 08:06:40Z ynaga $
+ // Copyright (c) 2008-2012 Naoki Yoshinaga <ynaga at tkl.iis.u-tokyo.ac.jp>
+ #include "classify.h"
++#ifdef USE_SSE4_2_POPCNT
+ #include <smmintrin.h>
++#endif
+ #ifdef USE_KERNEL
+ #include "kernel.h"
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121109/b5347be3/attachment.html>
More information about the macports-changes
mailing list