aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 79eecaa67609..a8e556b9f979 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 000000000000..d45aa84748ff
--- /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 000000000000..37428f238dfe
--- /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 000000000000..362a722409e4
--- /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