[78273] trunk/dports/textproc
ryandesign at macports.org
ryandesign at macports.org
Sat Apr 30 22:46:46 PDT 2011
Revision: 78273
http://trac.macports.org/changeset/78273
Author: ryandesign at macports.org
Date: 2011-04-30 22:46:44 -0700 (Sat, 30 Apr 2011)
Log Message:
-----------
knp: new port, version 3.01; see #29241
Added Paths:
-----------
trunk/dports/textproc/knp/
trunk/dports/textproc/knp/Portfile
trunk/dports/textproc/knp/files/
trunk/dports/textproc/knp/files/patch-dict.diff
trunk/dports/textproc/knp/files/patch-system.diff
Added: trunk/dports/textproc/knp/Portfile
===================================================================
--- trunk/dports/textproc/knp/Portfile (rev 0)
+++ trunk/dports/textproc/knp/Portfile 2011-05-01 05:46:44 UTC (rev 78273)
@@ -0,0 +1,50 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name knp
+version 3.01
+categories textproc japanese
+platforms darwin
+maintainers nomaintainer
+license BSD
+
+description KN parser (Kurohashi-Nagao parser) which detects dependency of Japanese sentences.
+long_description ${description}
+
+homepage http://nlp.kuee.kyoto-u.ac.jp/nl-resource/${name}.html
+master_sites http://nlp.kuee.kyoto-u.ac.jp/nl-resource/${name}/
+checksums sha1 9650490cf38bfaacc15a6d81b1b47c9043df8c90 \
+ rmd160 645882f1638b033f626cb9f77e4ab2af56c98d7e
+
+patchfiles patch-system.diff \
+ patch-dict.diff
+
+depends_lib port:juman \
+ port:tinycdb \
+ port:tinysvm \
+ port:crfpp
+
+configure.args --with-cdb \
+ --with-svm \
+ --with-crf \
+ --with-juman-prefix=${prefix}
+
+# Note: compiling with Boehm GC library (--with-boehm-gc) makes the executable cause a segmentation fault.
+
+set bgh_file /tmp/bunruidb.txt
+variant bunruidb description {Use Bunrui Goi Hyou} {
+ if {[file readable ${bgh_file}]} {
+ configure.args-append --with-bgh-file=${bgh_file}
+ } else {
+ pre-configure {
+ ui_error "To enable the use of Bunrui DB, purchase a license of Bunrui Goi Hyou"
+ ui_error "and put the DB file in ${bgh_file}."
+ return -code error "Bunrui Goi Hyou is not available at ${bgh_file}"
+ }
+ }
+}
+
+livecheck.type regex
+livecheck.regex ${name}-(\[0-9.\]+)\\.
Property changes on: trunk/dports/textproc/knp/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/textproc/knp/files/patch-dict.diff
===================================================================
--- trunk/dports/textproc/knp/files/patch-dict.diff (rev 0)
+++ trunk/dports/textproc/knp/files/patch-dict.diff 2011-05-01 05:46:44 UTC (rev 78273)
@@ -0,0 +1,40 @@
+--- dict/ebcf/Makefile.in.orig 2009-12-01 17:21:09.000000000 +0900
++++ dict/ebcf/Makefile.in 2011-04-20 23:45:20.000000000 +0900
+@@ -543,7 +543,7 @@
+
+ cf.dat: cf.knpdict
+ if [ -f cf.knpdict ]; then \
+- ulimit -Ss unlimited && @CF_COMMAND@ cf.idx cf.dat < cf.knpdict; \
++ ulimit -Ss 65532 && @CF_COMMAND@ cf.idx cf.dat < cf.knpdict; \
+ fi
+
+ cf.db: cf.dat
+@@ -556,7 +556,7 @@
+
+ noun.dat: noun.knpdict
+ if [ -f noun.knpdict ]; then \
+- ulimit -Ss unlimited && @CF_COMMAND@ noun.idx noun.dat < noun.knpdict; \
++ ulimit -Ss 65532 && @CF_COMMAND@ noun.idx noun.dat < noun.knpdict; \
+ fi
+
+ noun.db: noun.dat
+--- dict/ebcf/Makefile.am.orig 2009-12-01 17:17:19.000000000 +0900
++++ dict/ebcf/Makefile.am 2011-04-21 00:03:16.000000000 +0900
+@@ -46,7 +46,7 @@
+
+ cf.dat: cf.knpdict
+ if [ -f cf.knpdict ]; then \
+- ulimit -Ss unlimited && @CF_COMMAND@ cf.idx cf.dat < cf.knpdict; \
++ ulimit -Ss 65532 && @CF_COMMAND@ cf.idx cf.dat < cf.knpdict; \
+ fi
+
+ cf.db: cf.dat
+@@ -59,7 +59,7 @@
+
+ noun.dat: noun.knpdict
+ if [ -f noun.knpdict ]; then \
+- ulimit -Ss unlimited && @CF_COMMAND@ noun.idx noun.dat < noun.knpdict; \
++ ulimit -Ss 65532 && @CF_COMMAND@ noun.idx noun.dat < noun.knpdict; \
+ fi
+
+ noun.db: noun.dat
Added: trunk/dports/textproc/knp/files/patch-system.diff
===================================================================
--- trunk/dports/textproc/knp/files/patch-system.diff (rev 0)
+++ trunk/dports/textproc/knp/files/patch-system.diff 2011-05-01 05:46:44 UTC (rev 78273)
@@ -0,0 +1,30 @@
+--- system/configfile.c.orig 2011-02-10 16:49:41.000000000 +0900
++++ system/configfile.c 2011-02-10 16:47:42.000000000 +0900
+@@ -22,6 +22,10 @@
+ int knp_dict_file_already_defined = 0;
+ THESAURUS_FILE THESAURUS[THESAURUS_MAX];
+
++float SVM_FREQ_SD;
++float SVM_FREQ_SD_NO;
++float SVM_R_NUM_S_SD;
++float SVM_R_NUM_E_SD;
+
+ /*==================================================================*/
+ void check_duplicated(int value, char *string)
+--- system/extern.h.orig 2011-02-10 16:50:18.000000000 +0900
++++ system/extern.h 2011-02-10 16:45:47.000000000 +0900
+@@ -145,10 +145,10 @@
+ extern float AntecedentDecideThresholdForNi;
+ extern float AntecedentDecideThresholdForNoun;
+ extern float CFSimThreshold;
+-extern float SVM_FREQ_SD;
+-extern float SVM_FREQ_SD_NO;
+-extern float SVM_R_NUM_S_SD;
+-extern float SVM_R_NUM_E_SD;
++//extern float SVM_FREQ_SD;
++//extern float SVM_FREQ_SD_NO;
++//extern float SVM_R_NUM_S_SD;
++//extern float SVM_R_NUM_E_SD;
+
+ extern void *matched_ptr;
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110430/097d59da/attachment.html>
More information about the macports-changes
mailing list