pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/cabocha Import cabocha-0.53 as textproc/cabocha.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81e7271838a2
branches:  trunk
changeset: 575661:81e7271838a2
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed May 19 12:16:25 2010 +0000

description:
Import cabocha-0.53 as textproc/cabocha.

CaboCha is a Japanese dependency analysis machine based on Support Vector
Machines. It is (89.29%) system that accuracy is the highest as a statistical
Japanese dependency analysis machine as of June, 2001. Moreover, definite
analytical algorithm (Cascaded Chunking Model) that doesn't do back-track is
adopted, and an efficient analysis can be done comparatively.

diffstat:

 textproc/cabocha/DESCR            |   5 +++++
 textproc/cabocha/Makefile         |  35 +++++++++++++++++++++++++++++++++++
 textproc/cabocha/Makefile.common  |  15 +++++++++++++++
 textproc/cabocha/PLIST            |  19 +++++++++++++++++++
 textproc/cabocha/buildlink3.mk    |  14 ++++++++++++++
 textproc/cabocha/distinfo         |   6 ++++++
 textproc/cabocha/options.mk       |  19 +++++++++++++++++++
 textproc/cabocha/patches/patch-aa |  27 +++++++++++++++++++++++++++
 8 files changed, 140 insertions(+), 0 deletions(-)

diffs (172 lines):

diff -r 3059efb47dd3 -r 81e7271838a2 textproc/cabocha/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cabocha/DESCR    Wed May 19 12:16:25 2010 +0000
@@ -0,0 +1,5 @@
+CaboCha is a Japanese dependency analysis machine based on Support Vector
+Machines. It is (89.29%) system that accuracy is the highest as a statistical
+Japanese dependency analysis machine as of June, 2001. Moreover, definite
+analytical algorithm (Cascaded Chunking Model) that doesn't do back-track is
+adopted, and an efficient analysis can be done comparatively.
diff -r 3059efb47dd3 -r 81e7271838a2 textproc/cabocha/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cabocha/Makefile Wed May 19 12:16:25 2010 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $
+#
+
+.include "Makefile.common"
+
+COMMENT=       Yet another Japanese Dependency Structure Analyzer
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_LANGUAGES= c c++
+USE_TOOLS+=    gmake perl:run gzcat
+
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=       --with-perl=${PERL5:Q}
+
+INSTALL_MAKE_FLAGS+=   confdir=${PREFIX}/share/examples
+
+CONF_FILES=    share/examples/cabocharc ${PKG_SYSCONFDIR}/cabocharc
+
+TEST_TARGET=   check
+
+BUILD_DEPENDS+=        nkf-[0-9]*:../../converters/nkf
+
+# using zcat to extract .gz
+SUBST_CLASSES+=                zcat
+SUBST_STAGE.zcat=      post-configure
+SUBST_FILES.zcat=      model/Makefile
+SUBST_SED.zcat=                -e 's|zcat|${TOOLS_CMDLINE_GZCAT}|g'
+
+.include "options.mk"
+
+.include "../../textproc/yamcha/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 3059efb47dd3 -r 81e7271838a2 textproc/cabocha/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cabocha/Makefile.common  Wed May 19 12:16:25 2010 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $
+# used by textproc/p5-cabocha/Makefile
+# used by textproc/py-cabocha/Makefile
+# used by textproc/ruby-cabocha/Makefile
+
+DISTNAME=      cabocha-0.53
+CATEGORIES=    textproc
+MASTER_SITES=  http://www.chasen.org/~taku/software/cabocha/src/
+
+DISTINFO_FILE= ${.CURDIR}/../../textproc/cabocha/distinfo
+PATCHDIR=      ${.CURDIR}/../../textproc/cabocha/patches
+
+MAINTAINER=    obache%NetBSD.org@localhost
+HOMEPAGE=      http://www.chasen.org/~taku/software/cabocha/
+LICENSE=       gnu-lgpl-v2.1
diff -r 3059efb47dd3 -r 81e7271838a2 textproc/cabocha/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cabocha/PLIST    Wed May 19 12:16:25 2010 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $
+bin/cabocha
+bin/cabocha-config
+include/cabocha.h
+lib/cabocha/model/CRL-IREX-ne.model
+lib/cabocha/model/CRL-IREX-ne.txtmodel.gz
+lib/cabocha/model/IPA-chunker.model
+lib/cabocha/model/IPA-chunker.txtmodel.gz
+lib/cabocha/model/IPA-dep-A+P.model
+lib/cabocha/model/IPA-dep-A+P.txtmodel.gz
+lib/cabocha/model/IPA-dep.model
+lib/cabocha/model/IPA-dep.txtmodel.gz
+lib/libcabocha.la
+libexec/cabocha/KyotoCorpus.pm
+libexec/cabocha/Makefile
+libexec/cabocha/kc2cabocha.pl
+libexec/cabocha/kc2juman.pl
+man/man1/cabocha.1
+share/examples/cabocharc
diff -r 3059efb47dd3 -r 81e7271838a2 textproc/cabocha/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cabocha/buildlink3.mk    Wed May 19 12:16:25 2010 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $
+
+BUILDLINK_TREE+=       cabocha
+
+.if !defined(CABOCHA_BUILDLINK3_MK)
+CABOCHA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.cabocha+=        cabocha>=0.53
+BUILDLINK_PKGSRCDIR.cabocha?=  ../../textproc/cabocha
+
+.include "../../textproc/yamcha/buildlink3.mk"
+.endif # CABOCHA_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -cabocha
diff -r 3059efb47dd3 -r 81e7271838a2 textproc/cabocha/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cabocha/distinfo Wed May 19 12:16:25 2010 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $
+
+SHA1 (cabocha-0.53.tar.gz) = 6b8903aa6843887bb669d9d5baea8a0eae320d80
+RMD160 (cabocha-0.53.tar.gz) = 39b637adc8b882542ecc3b6df34d8f6b99be3e38
+Size (cabocha-0.53.tar.gz) = 11552551 bytes
+SHA1 (patch-aa) = cb868fa8b88180ed5f84d55796d042e5774862af
diff -r 3059efb47dd3 -r 81e7271838a2 textproc/cabocha/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cabocha/options.mk       Wed May 19 12:16:25 2010 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: options.mk,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $
+#
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.cabocha
+PKG_OPTIONS_NONEMPTY_SETS=     ma
+PKG_OPTIONS_SET.ma=    chasen mecab
+PKG_SUGGESTED_OPTIONS= chasen
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mchasen)
+CONFIGURE_ARGS+=       --with-morphological-analyzer=chasen
+.include "../../textproc/chasen/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mmecab)
+CONFIGURE_ARGS+=       --with-morphological-analyzer=mecab
+.include "../../textproc/mecab/buildlink3.mk"
+.endif
diff -r 3059efb47dd3 -r 81e7271838a2 textproc/cabocha/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cabocha/patches/patch-aa Wed May 19 12:16:25 2010 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/05/19 12:16:25 obache Exp $
+
+--- python/CaboCha_wrap.cxx.orig       2005-07-21 13:31:23.000000000 +0000
++++ python/CaboCha_wrap.cxx
+@@ -1206,7 +1206,7 @@ type_error:
+     obj = pyobj;
+     if (PyCFunction_Check(obj)) {
+       /* here we get the method pointer for callbacks */
+-      char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
++      const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+       c = doc ? strstr(doc, "swig_ptr: ") : 0;
+       if (c) {
+       c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
+@@ -3260,11 +3260,11 @@ extern "C" {
+     swig_type_info **types_initial) {
+         size_t i;
+         for (i = 0; methods[i].ml_name; ++i) {
+-            char *c = methods[i].ml_doc;
++            const char *c = methods[i].ml_doc;
+             if (c && (c = strstr(c, "swig_ptr: "))) {
+                 int j;
+                 swig_const_info *ci = 0;
+-                char *name = c + 10;
++                const char *name = c + 10;
+                 for (j = 0; const_table[j].type; ++j) {
+                     if (strncmp(const_table[j].name, name, 
+                     strlen(const_table[j].name)) == 0) {



Home | Main Index | Thread Index | Old Index