mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add ja-p5-Text-ChaSen, the ChaSen library module for Perl5, separated
from japanese/chasen.
This commit is contained in:
parent
0bc4a01744
commit
6bcd1e4d5f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38959
@ -215,6 +215,7 @@
|
||||
SUBDIR += onew-wnn6
|
||||
SUBDIR += p5-Jcode
|
||||
SUBDIR += p5-jcode.pl
|
||||
SUBDIR += p5-Text-ChaSen
|
||||
SUBDIR += p5-Text-Kakasi
|
||||
SUBDIR += p5-manual
|
||||
SUBDIR += p5-mkres
|
||||
|
37
japanese/p5-Text-ChaSen/Makefile
Normal file
37
japanese/p5-Text-ChaSen/Makefile
Normal file
@ -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>
|
13
japanese/p5-Text-ChaSen/files/patch-ChaSen.pm
Normal file
13
japanese/p5-Text-ChaSen/files/patch-ChaSen.pm
Normal file
@ -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
|
||||
|
11
japanese/p5-Text-ChaSen/files/patch-ChaSen.xs
Normal file
11
japanese/p5-Text-ChaSen/files/patch-ChaSen.xs
Normal file
@ -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
|
9
japanese/p5-Text-ChaSen/files/patch-Makefile.PL
Normal file
9
japanese/p5-Text-ChaSen/files/patch-Makefile.PL
Normal file
@ -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"]
|
||||
);
|
1
japanese/p5-Text-ChaSen/pkg-comment
Normal file
1
japanese/p5-Text-ChaSen/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
ChaSen library module for Perl5
|
3
japanese/p5-Text-ChaSen/pkg-descr
Normal file
3
japanese/p5-Text-ChaSen/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
This is the ChaSen library module for Perl5.
|
||||
|
||||
WWW: http://cactus.aist-nara.ac.jp/lab/nlt/chasen.html
|
9
japanese/p5-Text-ChaSen/pkg-plist
Normal file
9
japanese/p5-Text-ChaSen/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user