summaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-04-23 08:19:23 +0000
committerknu <knu@FreeBSD.org>2003-04-23 08:19:23 +0000
commit87f2b224f2c88967ed419a5c69c59bc8cc78f4f2 (patch)
treef9bcf99c7b9e4d3e8414e3901d2abefc58fb1019 /japanese
parent926ed406b2f5d2e54ff3321fea7d258f7c3efe90 (diff)
downloadFreeBSD-ports-87f2b224f2c88967ed419a5c69c59bc8cc78f4f2.zip
FreeBSD-ports-87f2b224f2c88967ed419a5c69c59bc8cc78f4f2.tar.gz
Add p5-MeCab, MeCab library module for Perl5.
Note that this does not work properly since mecab is linked with libc_r but perl is with libc, which conflict causes memory fault.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/p5-MeCab/Makefile38
-rw-r--r--japanese/p5-MeCab/pkg-descr4
-rw-r--r--japanese/p5-MeCab/pkg-plist6
4 files changed, 49 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index 79eecaa..a8e556b 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -270,6 +270,7 @@
SUBDIR += otojiro-fpw
SUBDIR += p5-Date-Japanese-Era
SUBDIR += p5-Jcode
+ SUBDIR += p5-MeCab
SUBDIR += p5-PDFJ
SUBDIR += p5-Text-ChaSen
SUBDIR += p5-Text-Kakasi
diff --git a/japanese/p5-MeCab/Makefile b/japanese/p5-MeCab/Makefile
new file mode 100644
index 0000000..d45aa84
--- /dev/null
+++ b/japanese/p5-MeCab/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: p5-MeCab
+# Date created: 23 April 2003
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= MeCab
+PORTVERSION= ${MECAB_PORTVERSION}
+CATEGORIES= japanese textproc perl5
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= knu@FreeBSD.org
+COMMENT= MeCab library module for Perl5
+
+EXTRACT_DEPENDS= ${NONEXISTENT}:${MECAB_PORTDIR}:patch
+LIB_DEPENDS= mecab.0:${MECAB_PORTDIR}
+
+PERL_CONFIGURE= yes
+
+.include "${.CURDIR}/../mecab/Makefile.common"
+
+.include <bsd.port.pre.mk>
+
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}p5-
+
+do-extract:
+ ${MKDIR} ${WRKDIR}
+ ${LN} -fs `${MECAB_WRKSRC_CMD}`/perl ${WRKSRC}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/examples/mecab
+ ${INSTALL_DATA} ${WRKSRC}/test.pl ${PREFIX}/share/examples/mecab/
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/japanese/p5-MeCab/pkg-descr b/japanese/p5-MeCab/pkg-descr
new file mode 100644
index 0000000..37428f2
--- /dev/null
+++ b/japanese/p5-MeCab/pkg-descr
@@ -0,0 +1,4 @@
+This is the MeCab library module for Perl5.
+
+Author: Taku Kudoh <taku-ku@is.aist-nara.ac.jp>
+WWW: http://cl.aist-nara.ac.jp/~taku-ku/software/mecab/
diff --git a/japanese/p5-MeCab/pkg-plist b/japanese/p5-MeCab/pkg-plist
new file mode 100644
index 0000000..362a7224
--- /dev/null
+++ b/japanese/p5-MeCab/pkg-plist
@@ -0,0 +1,6 @@
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/MeCab.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/MeCab/.packlist
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/MeCab/MeCab.bs
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/MeCab/MeCab.so
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/MeCab
+%%PORTDOCS%%share/examples/mecab/test.pl
OpenPOWER on IntegriCloud