[90497] trunk/dports/textproc
hum at macports.org
hum at macports.org
Wed Mar 7 08:05:09 PST 2012
Revision: 90497
http://trac.macports.org/changeset/90497
Author: hum at macports.org
Date: 2012-03-07 08:05:09 -0800 (Wed, 07 Mar 2012)
Log Message:
-----------
knp3: rename knp at 3.01(r83487) to knp3; install the distribution in ${prefix}/lib/knp3; install knp3 as an executable.
Revision Links:
--------------
http://trac.macports.org/changeset/83487
Modified Paths:
--------------
trunk/dports/textproc/knp3/Portfile
Added Paths:
-----------
trunk/dports/textproc/knp3/
Modified: trunk/dports/textproc/knp3/Portfile
===================================================================
--- trunk/dports/textproc/knp/Portfile 2011-09-03 08:25:39 UTC (rev 83487)
+++ trunk/dports/textproc/knp3/Portfile 2012-03-07 16:05:09 UTC (rev 90497)
@@ -3,25 +3,28 @@
PortSystem 1.0
-name knp
+name knp3
version 3.01
categories textproc japanese
-platforms darwin
maintainers hum openmaintainer
-license BSD
-homepage http://nlp.ist.i.kyoto-u.ac.jp/EN/index.php?KNP
description KN parser (Kurohashi-Nagao parser) which detects dependency of Japanese sentences.
long_description ${description}
-master_sites http://nlp.kuee.kyoto-u.ac.jp/nl-resource/${name}/
+homepage http://nlp.ist.i.kyoto-u.ac.jp/index.php?KNP
+platforms darwin
+license BSD
+
+master_sites http://nlp.kuee.kyoto-u.ac.jp/nl-resource/knp/
+dist_subdir knp
+distname knp-${version}
checksums sha1 9650490cf38bfaacc15a6d81b1b47c9043df8c90 \
rmd160 645882f1638b033f626cb9f77e4ab2af56c98d7e
patchfiles patch-system.diff \
patch-dict.diff
-depends_lib port:juman \
+depends_lib port:juman6 \
port:tinycdb \
port:tinysvm \
port:crfpp
@@ -29,10 +32,23 @@
configure.args --with-cdb \
--with-svm \
--with-crf \
- --with-juman-prefix=${prefix}
+ --with-juman-prefix=${prefix}/lib/juman6
# Note: compiling with Boehm GC library (--with-boehm-gc) makes the executable cause a segmentation fault.
+# install the distribution into ${prefix_knp3}.
+set prefix_knp3 ${prefix}/lib/${name}
+configure.pre_args --prefix=${prefix_knp3}
+
+# refer to the files of juman6 instead of the standard ones.
+configure.cppflags "-I${prefix}/lib/juman6/include -I${prefix}/include"
+configure.ldflags "-L${prefix}/lib/juman6/lib -L${prefix}/lib"
+
+# install knp3 as an executable.
+post-destroot {
+ ln -s ${destroot}${prefix_knp3}/bin/knp ${destroot}${prefix}/bin/knp3
+}
+
set bgh_file /tmp/bunruidb.txt
variant bunruidb description {Use Bunrui Goi Hyou} {
if {[file readable ${bgh_file}]} {
@@ -46,5 +62,4 @@
}
}
-livecheck.type regex
-livecheck.regex ${name}-(\[0-9.\]+)\\.
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120307/63f0053d/attachment.html>
More information about the macports-changes
mailing list