diff options
author | jlam <jlam@pkgsrc.org> | 2001-09-09 06:16:40 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-09-09 06:16:40 +0000 |
commit | b9e5c1100c480030c192c668acec159a13f60534 (patch) | |
tree | 20bbac8811847edc6c24d4e0dd9a8546a7c33205 | |
parent | 19523cff287732e6b8e84f265cb0a47073df1cf6 (diff) | |
download | pkgsrc-b9e5c1100c480030c192c668acec159a13f60534.tar.gz |
Fix problem reported by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
where libchasen.so wasn't being found by the perl Makefile generation
process. This is done by passing the location of the chasen installation
through to Makefile.PL via an environment variable, and should serve as
a model for fixes to similar problems with other perl modules.
-rw-r--r-- | japanese/p5-Text-ChaSen/Makefile | 7 | ||||
-rw-r--r-- | japanese/p5-Text-ChaSen/distinfo | 3 | ||||
-rw-r--r-- | japanese/p5-Text-ChaSen/patches/patch-aa | 15 |
3 files changed, 21 insertions, 4 deletions
diff --git a/japanese/p5-Text-ChaSen/Makefile b/japanese/p5-Text-ChaSen/Makefile index 5c45f51827f..2b76ac5c1ea 100644 --- a/japanese/p5-Text-ChaSen/Makefile +++ b/japanese/p5-Text-ChaSen/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2001/02/16 15:25:26 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2001/09/09 06:16:40 jlam Exp $ DISTNAME= Text-ChaSen-1.03 PKGNAME= p5-${DISTNAME}nb1 @@ -12,12 +12,13 @@ MAINTAINER= kei@netbsd.org HOMEPAGE= http://www.daionet.gr.jp/~knok/chasen/ COMMENT= perl5 module to use ChaSen -DEPENDS+= chasen>=2.0:../../japanese/chasen - USE_PERL5= # defined PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Text/ChaSen/.packlist +MAKE_ENV+= CHASENDIR=${BUILDLINK_PREFIX.chasen} + do-configure: @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL +.include "../../japanese/chasen/buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/japanese/p5-Text-ChaSen/distinfo b/japanese/p5-Text-ChaSen/distinfo index 5a3e695f40d..e96e1f2a8c8 100644 --- a/japanese/p5-Text-ChaSen/distinfo +++ b/japanese/p5-Text-ChaSen/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2001/04/21 10:13:35 wiz Exp $ +$NetBSD: distinfo,v 1.3 2001/09/09 06:16:40 jlam Exp $ SHA1 (Text-ChaSen-1.03.tar.gz) = e9634b0ba5cc6920d84039d0bf12e1608dd1a32f Size (Text-ChaSen-1.03.tar.gz) = 4836 bytes SHA1 (ChaSen.pm-1.03-pod-fix.diff) = f89708e63d73b6b29fb13a3b7f4802233ed175e6 Size (ChaSen.pm-1.03-pod-fix.diff) = 239 bytes +SHA1 (patch-aa) = 7665634069f5c1139a8d3595cd34a339694d8c84 diff --git a/japanese/p5-Text-ChaSen/patches/patch-aa b/japanese/p5-Text-ChaSen/patches/patch-aa new file mode 100644 index 00000000000..a2d5ccba9c9 --- /dev/null +++ b/japanese/p5-Text-ChaSen/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1 2001/09/09 06:16:41 jlam Exp $ + +--- Makefile.PL.orig Wed Aug 18 02:58:18 1999 ++++ Makefile.PL +@@ -1,7 +1,9 @@ + use ExtUtils::MakeMaker; + ++my($CHASENDIR) = $ENV{CHASENDIR}; ++ + WriteMakefile( + 'NAME' => 'Text::ChaSen', + 'VERSION_FROM' => 'ChaSen.pm', +- 'LIBS' => ['-lchasen'] ++ 'LIBS' => ["-L$CHASENDIR/lib -lchasen"] + ); |