summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmonz <schmonz>2014-07-31 19:53:38 +0000
committerschmonz <schmonz>2014-07-31 19:53:38 +0000
commita0cfd34c365e41a145314e52248301b90b3b8271 (patch)
treeeab4e5debf36cba4a5d406e7e41ef01514997443
parentafffffe5bc0e4a3e3cc247fe6af81662e5cbaf1c (diff)
downloadpkgsrc-a0cfd34c365e41a145314e52248301b90b3b8271.tar.gz
`use base` claims to be able to find the named parent module even
when it's defined otherwise than a separate file with a matching name. When committing to the NetBSD wiki, I'm seeing RPC::XML errors that suggest otherwise ("Can't locate RPC/XML/datatype.pm" and so on). I don't know why we're having this problem on wiki.n.o and I haven't managed to reproduce it elsewhere, but it sure looks fixed after switching to `use parent -norequire`. `use parent` seems to be generally preferred usage anyway. Bump PKGREVISION.
-rw-r--r--net/p5-RPC-XML/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/p5-RPC-XML/Makefile b/net/p5-RPC-XML/Makefile
index fcc9b20fa06..3a892601a57 100644
--- a/net/p5-RPC-XML/Makefile
+++ b/net/p5-RPC-XML/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2014/07/30 21:55:25 schmonz Exp $
+# $NetBSD: Makefile,v 1.18 2014/07/31 19:53:38 schmonz Exp $
DISTNAME= RPC-XML-0.78
PKGNAME= p5-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= net www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=RPC/}
@@ -24,6 +25,11 @@ DEPENDS+= p5-Compress-Raw-Zlib>=2.063:../../devel/p5-Compress-Raw-Zlib
USE_TOOLS+= gmake
USE_LANGUAGES= # empty
+SUBST_CLASSES+= usebase
+SUBST_STAGE.usebase= post-patch
+SUBST_FILES.usebase= lib/RPC/XML.pm
+SUBST_SED.usebase= -e "s|^use base 'RPC::XML::|use parent -norequire, 'RPC::XML::|g"
+
PERL5_PACKLIST= auto/RPC/XML/.packlist
.include "../../lang/perl5/module.mk"