[83489] trunk/dports/textproc/cabocha
hum at macports.org
hum at macports.org
Sat Sep 3 04:59:45 PDT 2011
Revision: 83489
http://trac.macports.org/changeset/83489
Author: hum at macports.org
Date: 2011-09-03 04:59:39 -0700 (Sat, 03 Sep 2011)
Log Message:
-----------
cabocha: update to 0.60; support UTF-8 instead of EUC-JP; change maintainers.
Modified Paths:
--------------
trunk/dports/textproc/cabocha/Portfile
Added Paths:
-----------
trunk/dports/textproc/cabocha/files/patch-configure.diff
Removed Paths:
-------------
trunk/dports/textproc/cabocha/files/patch-configure.in.diff
trunk/dports/textproc/cabocha/files/patch-model.diff
trunk/dports/textproc/cabocha/files/patch-src.diff
Modified: trunk/dports/textproc/cabocha/Portfile
===================================================================
--- trunk/dports/textproc/cabocha/Portfile 2011-09-03 08:30:17 UTC (rev 83488)
+++ trunk/dports/textproc/cabocha/Portfile 2011-09-03 11:59:39 UTC (rev 83489)
@@ -4,54 +4,58 @@
PortSystem 1.0
name cabocha
-version 0.53
+version 0.60
categories textproc japanese
platforms darwin
-maintainers nomaintainer
-license LGPL-2.1+
+maintainers hum openmaintainer
+license BSD
+homepage http://code.google.com/p/cabocha/
description Yet Another Japanese Dependency Structure Analyzer
-
long_description CaboCha is a Jpanese dependency structure analyzer based on \
support vector machines. \
- This version of CaboCha supports the EUC-JP encoding.
+ This version of CaboCha supports the UTF-8 encoding.
-homepage http://chasen.org/~taku/software/cabocha/
-master_sites ${homepage}src/
+master_sites googlecode
-checksums sha1 6b8903aa6843887bb669d9d5baea8a0eae320d80 \
- rmd160 39b637adc8b882542ecc3b6df34d8f6b99be3e38
+checksums sha1 3792c486cbe06d998bd1b749f10f5f2803f8ff60 \
+ rmd160 ba342d25854f96c80ca0153d78750eaddee46be6
-patchfiles patch-configure.in.diff \
- patch-model.diff \
- patch-src.diff
+depends_lib port:crfpp
-depends_lib port:yamcha \
- port:libiconv
+# This port requires mecab+utf8 althought the default character encoding of
+# mecab is not utf-8 but euc-jp.
+# It will just check the encoding of mecab in the pre-fetch phase instead of
+# depends_lib, because depends_lib could not specify a variant.
-# respect build_arch / universal_archs in dylib
-use_autoreconf yes
+pre-fetch {
+ catch {exec $prefix/bin/mecab -D} dict_info
+ if {![regexp {charset:\s+utf\-8} $dict_info]} {
+ ui_error "${distname} requires MeCab for UTF-8.\
+ Please install mecab +utf8 first.\
+ If another encoding version of MeCab is already installed,\
+ you should uninstall mecab beforehand."
+ return -code error "MeCab for UTF-8 is missing"
+ }
+}
-configure.args --disable-pke
+patchfiles patch-configure.diff
-test.run yes
-test.target check
+configure.args --with-charset=UTF8
-variant chasen conflicts mecab description {Use ChaSen morphological analyzer} {
- depends_lib-append port:chasen
- configure.args-append --with-morphological-analyzer=chasen \
- --enable-chasen-static
+variant juman conflicts unidic description {Set the default posset to JUMAN} {
+ configure.args-append --with-posset=JUMAN
}
-variant mecab conflicts chasen description {Use MeCab morphological analyzer instead of ChaSen} {
- depends_lib-append port:mecab
- configure.args-append --with-morphological-analyzer=mecab \
- --enable-mecab-static
+variant unidic conflicts juman description {Set the default posset to UniDic} {
+ configure.args-append --with-posset=UNIDIC
}
-if {![variant_isset mecab]} {
- default_variants +chasen
-}
+build.args LIBS="-liconv -lcrfpp -lmecab"
+test.run yes
+test.target check
+
livecheck.type regex
-livecheck.regex ${name}-(\[0-9.\]+)\\.
+livecheck.url ${homepage}downloads/list
+livecheck.regex ${name}-(\[0-9.\]+)\\.tar
Added: trunk/dports/textproc/cabocha/files/patch-configure.diff
===================================================================
--- trunk/dports/textproc/cabocha/files/patch-configure.diff (rev 0)
+++ trunk/dports/textproc/cabocha/files/patch-configure.diff 2011-09-03 11:59:39 UTC (rev 83489)
@@ -0,0 +1,13 @@
+--- configure.orig 2011-08-11 03:29:14.000000000 +0900
++++ configure 2011-09-03 19:22:17.000000000 +0900
+@@ -16840,8 +16840,8 @@
+
+
+ if test -n "$GCC"; then
+- CFLAGS="-O3 -Wno-deprecated -Wall"
+- CXXFLAGS="-O3 -Wno-deprecated -Wall"
++ CFLAGS="$CFLAGS -O3 -Wno-deprecated -Wall"
++ CXXFLAGS="$CXXFLAGS -O3 -Wno-deprecated -Wall"
+ fi
+
+
Deleted: trunk/dports/textproc/cabocha/files/patch-configure.in.diff
===================================================================
--- trunk/dports/textproc/cabocha/files/patch-configure.in.diff 2011-09-03 08:30:17 UTC (rev 83488)
+++ trunk/dports/textproc/cabocha/files/patch-configure.in.diff 2011-09-03 11:59:39 UTC (rev 83489)
@@ -1,13 +0,0 @@
---- configure.in.orig 2005-10-10 01:27:38.000000000 -0500
-+++ configure.in 2011-04-20 04:56:49.000000000 -0500
-@@ -33,8 +33,8 @@
- AC_LANG(C++)
-
- if test -n "$GCC"; then
-- CFLAGS="-O3 -Wno-deprecated -Wall"
-- CXXFLAGS="-O3 -Wno-deprecated -Wall"
-+ CFLAGS="$CFLAGS -Wno-deprecated -Wall"
-+ CXXFLAGS="$CXXFLAGS -Wno-deprecated -Wall"
- fi
-
- AC_ARG_WITH(
Deleted: trunk/dports/textproc/cabocha/files/patch-model.diff
===================================================================
--- trunk/dports/textproc/cabocha/files/patch-model.diff 2011-09-03 08:30:17 UTC (rev 83488)
+++ trunk/dports/textproc/cabocha/files/patch-model.diff 2011-09-03 11:59:39 UTC (rev 83489)
@@ -1,10 +0,0 @@
---- model/Makefile.am.orig 2004-03-28 11:08:07.000000000 +0900
-+++ model/Makefile.am 2011-04-20 22:12:13.000000000 +0900
-@@ -9,6 +9,6 @@
- toeuc = cat
-
- %.model:
-- zcat $*.txtmodel.gz | $(to$(charset)) > $*.txtmodel
-+ gzcat $*.txtmodel.gz | $(to$(charset)) > $*.txtmodel
- $(YAMCHA_LIBEXEC_DIR)/mkmodel $(MKMODEL_PARAM) $*.txtmodel $*.model
- rm -f $*.txtmodel
Deleted: trunk/dports/textproc/cabocha/files/patch-src.diff
===================================================================
--- trunk/dports/textproc/cabocha/files/patch-src.diff 2011-09-03 08:30:17 UTC (rev 83488)
+++ trunk/dports/textproc/cabocha/files/patch-src.diff 2011-09-03 11:59:39 UTC (rev 83489)
@@ -1,33 +0,0 @@
---- src/chasenio.cpp.orig 2005-12-24 21:30:35.000000000 +0900
-+++ src/chasenio.cpp 2011-01-20 19:36:09.000000000 +0900
-@@ -38,7 +38,7 @@
- #define CHASEN_INIT_PROC_NAME_WINOLD "set_argument_parameters"
- #define CHASEN_PARSE_PROC_NAME_WINOLD "analyze"
- #else
--#define CHASEN_DLNAME "libchasen.so"
-+#define CHASEN_DLNAME "libchasen.dylib"
- #endif
- #define CHASEN_INIT_PROC_NAME "chasen_getopt_argv"
- #define CHASEN_PARSE_PROC_NAME "chasen_sparse_tostr"
---- src/common.h.orig 2005-12-24 21:30:35.000000000 +0900
-+++ src/common.h 2008-05-25 19:13:12.000000000 +0900
-@@ -32,6 +32,8 @@
- #define COPYRIGHT "CaboCha (Yet Another Japanese Dependency Structure Analyzer)\n\
- Copyright (C) 2001-2004 Taku Kudo, All rights reserved.\n"
-
-+#include <string.h>
-+
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
---- src/mecabio.cpp.orig 2005-12-24 21:30:35.000000000 +0900
-+++ src/mecabio.cpp 2011-01-20 19:35:52.000000000 +0900
-@@ -35,7 +35,7 @@
- #if defined _WIN32 && ! defined (__CYGWIN__)
- #define MECAB_DLNAME "libmecab.dll"
- #else
--#define MECAB_DLNAME "libmecab.so"
-+#define MECAB_DLNAME "libmecab.dylib"
- #endif
-
- #define MECAB_INIT_PROC_NAME "mecab_new"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110903/e2515e83/attachment-0001.html>
More information about the macports-changes
mailing list