diff options
Diffstat (limited to 'japanese/p5-Text-ChaSen')
-rw-r--r-- | japanese/p5-Text-ChaSen/Makefile | 37 | ||||
-rw-r--r-- | japanese/p5-Text-ChaSen/files/patch-ChaSen.pm | 13 | ||||
-rw-r--r-- | japanese/p5-Text-ChaSen/files/patch-ChaSen.xs | 11 | ||||
-rw-r--r-- | japanese/p5-Text-ChaSen/files/patch-Makefile.PL | 9 | ||||
-rw-r--r-- | japanese/p5-Text-ChaSen/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/p5-Text-ChaSen/pkg-descr | 3 | ||||
-rw-r--r-- | japanese/p5-Text-ChaSen/pkg-plist | 9 |
7 files changed, 83 insertions, 0 deletions
diff --git a/japanese/p5-Text-ChaSen/Makefile b/japanese/p5-Text-ChaSen/Makefile new file mode 100644 index 000000000000..2e63c3361255 --- /dev/null +++ b/japanese/p5-Text-ChaSen/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: p5-Text-ChaSen +# Date created: 2 March 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= Text-ChaSen +PORTVERSION= 0.20 +CATEGORIES= japanese perl5 +MASTER_SITES= ftp://ftp.aist-nara.ac.jp/pub/lab/nlp/tools/chasen/ +DISTNAME= chasen-sys${CHASEN_VERSION}-ipadic2.1 + +MAINTAINER= knu@FreeBSD.org + +LIB_DEPENDS= chasen.0:${PORTSDIR}/japanese/chasen + +MD5_FILE= ${.CURDIR}/../chasen/distinfo + +CHASEN_VERSION= 2.02 + +WRKSRC= ${WRKDIR}/chasen-${CHASEN_VERSION}/perl +PERL_CONFIGURE= yes +CONFIGURE_ENV= PREFIX="${PREFIX}" +MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +MAN3= Text::ChaSen.3 + +.include <bsd.port.pre.mk> + +PKGNAMEPREFIX:= ${PKGNAMEPREFIX}p5- + +post-install: +.if !defined(NOPORTDOCS) + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/chasen/ja/README.perl +.endif + +.include <bsd.port.post.mk> diff --git a/japanese/p5-Text-ChaSen/files/patch-ChaSen.pm b/japanese/p5-Text-ChaSen/files/patch-ChaSen.pm new file mode 100644 index 000000000000..373742a116c8 --- /dev/null +++ b/japanese/p5-Text-ChaSen/files/patch-ChaSen.pm @@ -0,0 +1,13 @@ +--- ChaSen.pm.orig Thu Aug 19 17:20:15 1999 ++++ ChaSen.pm Sun Feb 27 02:05:45 2000 +@@ -11,8 +11,8 @@ + + use Text::ChaSen; + +- $res = chasen::getopt_argv('chasen-perl', '-j', '-F', '%m '); +- $str = chasen::sparse_tostr("日本語の文字列"); ++ $res = Text::ChaSen::getopt_argv('chasen-perl', '-j', '-F', '%m '); ++ $str = Text::ChaSen::sparse_tostr("日本語の文字列"); + + =head1 DESCRIPTION + diff --git a/japanese/p5-Text-ChaSen/files/patch-ChaSen.xs b/japanese/p5-Text-ChaSen/files/patch-ChaSen.xs new file mode 100644 index 000000000000..217b185891dd --- /dev/null +++ b/japanese/p5-Text-ChaSen/files/patch-ChaSen.xs @@ -0,0 +1,11 @@ +--- ChaSen.xs.orig Wed Aug 18 16:02:16 1999 ++++ ChaSen.xs Tue Aug 1 18:16:03 2000 +@@ -12,6 +12,8 @@ + #include "EXTERN.h" + #include "perl.h" + #include "XSUB.h" ++#define PERL_POLLUTE 1 ++#include "embedvar.h" + #ifdef __cplusplus + } + #endif diff --git a/japanese/p5-Text-ChaSen/files/patch-Makefile.PL b/japanese/p5-Text-ChaSen/files/patch-Makefile.PL new file mode 100644 index 000000000000..8facbf3dd8a5 --- /dev/null +++ b/japanese/p5-Text-ChaSen/files/patch-Makefile.PL @@ -0,0 +1,9 @@ +--- Makefile.PL.orig Wed Aug 18 15:58:18 1999 ++++ Makefile.PL Fri Mar 2 15:50:32 2001 +@@ -3,5 +3,5 @@ + WriteMakefile( + 'NAME' => 'Text::ChaSen', + 'VERSION_FROM' => 'ChaSen.pm', +- 'LIBS' => ['-lchasen'] ++ 'LIBS' => ["-L$ENV{PREFIX}/lib -lchasen"] + ); diff --git a/japanese/p5-Text-ChaSen/pkg-comment b/japanese/p5-Text-ChaSen/pkg-comment new file mode 100644 index 000000000000..505736762cf3 --- /dev/null +++ b/japanese/p5-Text-ChaSen/pkg-comment @@ -0,0 +1 @@ +ChaSen library module for Perl5 diff --git a/japanese/p5-Text-ChaSen/pkg-descr b/japanese/p5-Text-ChaSen/pkg-descr new file mode 100644 index 000000000000..40758a49f819 --- /dev/null +++ b/japanese/p5-Text-ChaSen/pkg-descr @@ -0,0 +1,3 @@ +This is the ChaSen library module for Perl5. + +WWW: http://cactus.aist-nara.ac.jp/lab/nlt/chasen.html diff --git a/japanese/p5-Text-ChaSen/pkg-plist b/japanese/p5-Text-ChaSen/pkg-plist new file mode 100644 index 000000000000..888b98e0d6eb --- /dev/null +++ b/japanese/p5-Text-ChaSen/pkg-plist @@ -0,0 +1,9 @@ +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Text/ChaSen.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/ChaSen/.packlist +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/ChaSen/ChaSen.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/ChaSen/ChaSen.so +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/ChaSen +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Text 2>/dev/null || true +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/ChaSen 2>/dev/null || true +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text 2>/dev/null || true +%%PORTDOCS%%share/doc/chasen/ja/README.perl |