Wed May 19 12:16:25 2010 UTC ()
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.
Status:
Vendor Tag: TNF
Release Tags: pkgsrc-base
(obache)
diff -r0 -r1.1.1.1 pkgsrc/textproc/cabocha/PLIST
diff -r0 -r1.1.1.1 pkgsrc/textproc/cabocha/distinfo
diff -r0 -r1.1.1.1 pkgsrc/textproc/cabocha/DESCR
diff -r0 -r1.1.1.1 pkgsrc/textproc/cabocha/buildlink3.mk
diff -r0 -r1.1.1.1 pkgsrc/textproc/cabocha/Makefile.common
diff -r0 -r1.1.1.1 pkgsrc/textproc/cabocha/options.mk
diff -r0 -r1.1.1.1 pkgsrc/textproc/cabocha/Makefile
diff -r0 -r1.1.1.1 pkgsrc/textproc/cabocha/patches/patch-aa
@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
$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
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.
# $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
# $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
HOMEPAGE= http://www.chasen.org/~taku/software/cabocha/
LICENSE= gnu-lgpl-v2.1
# $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
# $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"
$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) {