[78040] trunk/dports/textproc
ryandesign at macports.org
ryandesign at macports.org
Wed Apr 20 03:14:06 PDT 2011
Revision: 78040
http://trac.macports.org/changeset/78040
Author: ryandesign at macports.org
Date: 2011-04-20 03:14:06 -0700 (Wed, 20 Apr 2011)
Log Message:
-----------
cabocha: new port, version 0.53; see #29178
Added Paths:
-----------
trunk/dports/textproc/cabocha/
trunk/dports/textproc/cabocha/Portfile
trunk/dports/textproc/cabocha/files/
trunk/dports/textproc/cabocha/files/patch-configure.in.diff
trunk/dports/textproc/cabocha/files/patch-src.diff
Added: trunk/dports/textproc/cabocha/Portfile
===================================================================
--- trunk/dports/textproc/cabocha/Portfile (rev 0)
+++ trunk/dports/textproc/cabocha/Portfile 2011-04-20 10:14:06 UTC (rev 78040)
@@ -0,0 +1,56 @@
+# -*- 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 cabocha
+version 0.53
+categories textproc japanese
+platforms darwin
+maintainers nomaintainer
+license LGPL-2.1+
+
+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.
+
+homepage http://chasen.org/~taku/software/cabocha/
+master_sites ${homepage}src/
+
+checksums sha1 6b8903aa6843887bb669d9d5baea8a0eae320d80 \
+ rmd160 39b637adc8b882542ecc3b6df34d8f6b99be3e38
+
+patchfiles patch-configure.in.diff \
+ patch-src.diff
+
+depends_lib port:yamcha \
+ port:libiconv
+
+# respect build_arch / universal_archs in dylib
+use_autoreconf yes
+
+configure.args --disable-pke
+
+test.run yes
+test.target check
+
+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 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
+}
+
+if {![variant_isset mecab]} {
+ default_variants +chasen
+}
+
+livecheck.type regex
+livecheck.regex ${name}-(\[0-9.\]+)\\.
Property changes on: trunk/dports/textproc/cabocha/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/textproc/cabocha/files/patch-configure.in.diff
===================================================================
--- trunk/dports/textproc/cabocha/files/patch-configure.in.diff (rev 0)
+++ trunk/dports/textproc/cabocha/files/patch-configure.in.diff 2011-04-20 10:14:06 UTC (rev 78040)
@@ -0,0 +1,13 @@
+--- 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(
Added: trunk/dports/textproc/cabocha/files/patch-src.diff
===================================================================
--- trunk/dports/textproc/cabocha/files/patch-src.diff (rev 0)
+++ trunk/dports/textproc/cabocha/files/patch-src.diff 2011-04-20 10:14:06 UTC (rev 78040)
@@ -0,0 +1,33 @@
+--- 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/20110420/4e4aa42f/attachment.html>
More information about the macports-changes
mailing list