[97975] trunk/dports/textproc
hum at macports.org
hum at macports.org
Thu Sep 20 23:17:45 PDT 2012
Revision: 97975
http://trac.macports.org//changeset/97975
Author: hum at macports.org
Date: 2012-09-20 23:17:45 -0700 (Thu, 20 Sep 2012)
Log Message:
-----------
New port: jdepp @2012-09-11 - C++ implementation of Japanese Dependency Parsers.
Added Paths:
-----------
trunk/dports/textproc/jdepp/
trunk/dports/textproc/jdepp/Portfile
trunk/dports/textproc/jdepp/files/
trunk/dports/textproc/jdepp/files/patch-configure.diff
Added: trunk/dports/textproc/jdepp/Portfile
===================================================================
--- trunk/dports/textproc/jdepp/Portfile (rev 0)
+++ trunk/dports/textproc/jdepp/Portfile 2012-09-21 06:17:45 UTC (rev 97975)
@@ -0,0 +1,85 @@
+# -*- 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 jdepp
+version 2012-09-11
+categories textproc japanese
+maintainers hum openmaintainer
+
+description C++ implementation of Japanese Dependency Parsers
+
+long_description J.DepP is a C++ implementation of Japanese dependency \
+ parsing algorithms. The parser takes a raw sentence as input \
+ and performs word segmentation, POS tagging (thanks to MeCab), \
+ bunsetsu chunking and dependency parsing. J.DepP is meant \
+ for those who want to parse massive texts (e.g., entire blog \
+ feeds) efficiently with state-of-the-art parsing accuracy.
+
+homepage http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/jdepp/
+platforms darwin
+license {GPL-2 LGPL-2.1}
+
+master_sites ${homepage}
+checksums rmd160 2630ed40d383876d10ecd972d1e8dabe1de6ca04 \
+ sha256 3a0362d5235c524427ae846e02ebbfca79328fb461f4ffa09aff8d285120623c
+
+patchfiles patch-configure.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)} {
+ depends_lib-append port:KNBC
+
+ configure.args-append --with-corpus=knbc
+
+ build.target model
+ build.args-append CORPUS_DIR=${prefix}/share/KNBC
+}
+
+# Users must put their Kyoto Corpus 4.0 into the following directory if +kyoto varinat is set.
+set kyoto_dir /tmp/KyotoCorpus4.0
+
+variant kyoto conflicts 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}
+ } else {
+ pre-fetch {
+ ui_error "To train a parser with Kyoto Corpus, please put the files in ${kyoto_dir}"
+ return -code error "Kyoto Corpus is not available at ${kyoto_dir}"
+ }
+ }
+}
+
+variant ipadic conflicts naistjdic description {Build a parser with auto POSs given by MeCab/ipadic} {
+ depends_lib-delete port:mecab-jumandic-utf8
+ depends_lib-append port:mecab-ipadic-utf8
+
+ configure.args-append --with-mecab-dict=IPA
+}
+
+variant naistjdic conflicts ipadic description {Build a parser with auto POSs given by MeCab/NAIST-jdic} {
+ depends_lib-delete port:mecab-jumandic-utf8
+ depends_lib-append port:mecab-naist-jdic-utf8
+
+ configure.args-append --with-mecab-dict=NAIST-J
+}
+
+if {![variant_isset kyoto]} {
+ default_variants +knbc
+}
+
+post-destroot {
+ file mkdir ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} \
+ AUTHORS COPYING GPL LGPL README TODO \
+ ${destroot}${prefix}/share/doc/${name}
+}
+
+livecheck.type regex
+livecheck.regex {jdepp-(\d+-\d+-\d+)\.}
Property changes on: trunk/dports/textproc/jdepp/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/textproc/jdepp/files/patch-configure.diff
===================================================================
--- trunk/dports/textproc/jdepp/files/patch-configure.diff (rev 0)
+++ trunk/dports/textproc/jdepp/files/patch-configure.diff 2012-09-21 06:17:45 UTC (rev 97975)
@@ -0,0 +1,20 @@
+--- configure.orig 2012-09-17 20:50:30.000000000 +0900
++++ configure 2012-09-19 22:05:40.000000000 +0900
+@@ -5626,7 +5626,7 @@
+ $as_echo "#define USE_MECAB 1" >>confdefs.h
+
+
+- MECAB_DICT=`$MECAB_CONFIG --dicdir`/`echo $DICT_ID | tr "A-Z" "a-z"`dic
++ MECAB_DICT=`$MECAB_CONFIG --dicdir`/`echo $DICT_ID | tr "A-Z" "a-z"`dic-utf8
+ JDEPP_CPPFLAGS="-DMECAB_DICT=\\\"$MECAB_DICT\\\""
+ if ! test -e $MECAB_DICT; then :
+ as_fn_error $? "\"${MECAB_DICT}\" not found" "$LINENO" 5
+@@ -5704,7 +5704,7 @@
+
+ $as_echo "#define USE_AS_STANDALONE 1" >>confdefs.h
+
+- MECAB_DICT=`$MECAB_CONFIG --dicdir`/`echo $DICT_ID | tr "A-Z" "a-z"`dic
++ MECAB_DICT=`$MECAB_CONFIG --dicdir`/`echo $DICT_ID | tr "A-Z" "a-z"`dic-utf8
+ JDEPP_CPPFLAGS+=" -DMECAB_DICT=\\\"${MECAB_DICT}\\\""
+ JDEPP_LDFLAGS+=" -lmecab"
+ else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120920/3ca58932/attachment.html>
More information about the macports-changes
mailing list