summaryrefslogtreecommitdiff
path: root/textproc/ruby-cabocha
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-05-19 12:39:53 +0000
committerobache <obache@pkgsrc.org>2010-05-19 12:39:53 +0000
commit6b2d7b4774a85eb3acc770b9a90e0c4750ba6dfe (patch)
tree3c6a128f0d4492a1690d7f4241d7d836a591e95d /textproc/ruby-cabocha
parent64782a3d255c19347b9da57252b23ca7914ba661 (diff)
downloadpkgsrc-6b2d7b4774a85eb3acc770b9a90e0c4750ba6dfe.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}