summaryrefslogtreecommitdiff
path: root/textproc/ruby-cabocha
diff options
context:
space:
mode:
authorobache <obache>2010-05-19 12:39:53 +0000
committerobache <obache>2010-05-19 12:39:53 +0000
commit8fea50ddb5f778a6782d601ab199440960084d44 (patch)
tree3c6a128f0d4492a1690d7f4241d7d836a591e95d /textproc/ruby-cabocha
parente7bd3fe66768768ef3b52d2e7a97c431bb22b416 (diff)
downloadpkgsrc-8fea50ddb5f778a6782d601ab199440960084d44.tar.gz
Import ruby-cabocha-0.53 as textproc/ruby-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. This package is ruby module for CaboCha.
Diffstat (limited to 'textproc/ruby-cabocha')
-rw-r--r--textproc/ruby-cabocha/DESCR7
-rw-r--r--textproc/ruby-cabocha/Makefile30
-rw-r--r--textproc/ruby-cabocha/PLIST2
3 files changed, 39 insertions, 0 deletions
diff --git a/textproc/ruby-cabocha/DESCR b/textproc/ruby-cabocha/DESCR
new file mode 100644
index 00000000000..e35cbea9950
--- /dev/null
+++ b/textproc/ruby-cabocha/DESCR
@@ -0,0 +1,7 @@
+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.
+
+This package is ruby module for CaboCha.
diff --git a/textproc/ruby-cabocha/Makefile b/textproc/ruby-cabocha/Makefile
new file mode 100644
index 00000000000..13f57685a00
--- /dev/null
+++ b/textproc/ruby-cabocha/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/05/19 12:39:53 obache Exp $
+#
+
+.include "../../textproc/cabocha/Makefile.common"
+
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
+CATEGORIES+= ruby
+
+COMMENT= CaboCha ruby module
+
+BUILD_DEPENDS+= swig-[0-9]*:../../devel/swig
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c c++
+
+USE_RUBY_EXTCONF= yes
+RUBY_EXTCONF_SUBDIRS= ruby
+
+CABOCHA_LIBS_CMD= ${BUILDLINK_PREFIX.cabocha}/bin/cabocha-config --libs
+
+pre-configure:
+ ${RUN} cd ${WRKSRC}/swig; ${SETENV} ${CONFIGURE_ENV} make ruby;
+ ${SED} -e "s|@CABOCHA_LIBS@|`${CABOCHA_LIBS_CMD}`|g" \
+ ${WRKSRC}/ruby/extconf.rb.in > ${WRKSRC}/ruby/extconf.rb
+
+BUILDLINK_API_DEPENDS.cabocha+= cabocha>=${PKGVERSION_NOREV}
+.include "../../textproc/cabocha/buildlink3.mk"
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ruby-cabocha/PLIST b/textproc/ruby-cabocha/PLIST
new file mode 100644
index 00000000000..2dd30a085ae
--- /dev/null
+++ b/textproc/ruby-cabocha/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/05/19 12:39:53 obache Exp $
+${RUBY_VENDORARCHLIB}/CaboCha.${RUBY_DLEXT}