diff options
author | heinz <heinz@pkgsrc.org> | 2007-09-18 21:06:14 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2007-09-18 21:06:14 +0000 |
commit | 9ceb3f7e82309a7e92212d4d050a15107f09a390 (patch) | |
tree | b6c02fea8316930ef31f6bea91c3afc010cd95c2 /textproc/p5-XML-SAX | |
parent | eb09e0e608fffc1542b39452f2ae37b6bd37f9e9 (diff) | |
download | pkgsrc-9ceb3f7e82309a7e92212d4d050a15107f09a390.tar.gz |
Improve handling of dynamically changed parser registry file. Instead of
including ParserDetails.ini statically in PLIST we put it in an example
directory (can you call an empty file an example? :-) and let
CONF_FILES take care of copying it to the correct place.
This way "pkg_admin check" will not report an incorrect checksum.
Diffstat (limited to 'textproc/p5-XML-SAX')
-rw-r--r-- | textproc/p5-XML-SAX/Makefile | 11 | ||||
-rw-r--r-- | textproc/p5-XML-SAX/PLIST | 7 |
2 files changed, 10 insertions, 8 deletions
diff --git a/textproc/p5-XML-SAX/Makefile b/textproc/p5-XML-SAX/Makefile index beac8616920..6088bddf6f0 100644 --- a/textproc/p5-XML-SAX/Makefile +++ b/textproc/p5-XML-SAX/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.20 2007/09/15 14:44:51 wiz Exp $ +# $NetBSD: Makefile,v 1.21 2007/09/18 21:06:14 heinz Exp $ DISTNAME= XML-SAX-0.16 PKGNAME= p5-${DISTNAME} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= textproc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=XML/} @@ -18,13 +18,16 @@ DEPENDS+= p5-XML-NamespaceSupport>=0.03:../../textproc/p5-XML-NamespaceSupport #DEPENDS+= p5-File-Temp-[0-9]*:../../devel/p5-File-Temp MAKE_ENV= SKIP_SAX_INSTALL=yes +EGSUBDIR= share/examples/p5-XML-SAX +CONF_FILES= ${EGSUBDIR}/ParserDetails.ini \ + ${PERL5_INSTALLVENDORLIB}/XML/SAX/ParserDetails.ini PERL5_PACKLIST= auto/XML/SAX/.packlist -FILES_SUBST+= PERL5_INSTALLVENDORLIB=${PERL5_INSTALLVENDORLIB:Q} +INSTALLATION_DIRS+= ${EGSUBDIR} post-install: - ${ECHO} > ${DESTDIR:Q}${PERL5_INSTALLVENDORLIB}/XML/SAX/ParserDetails.ini + ${ECHO} > ${DESTDIR:Q}${PREFIX:Q}/${EGSUBDIR}/ParserDetails.ini .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk" diff --git a/textproc/p5-XML-SAX/PLIST b/textproc/p5-XML-SAX/PLIST index 6a8cb25aa2f..e7692d61a45 100644 --- a/textproc/p5-XML-SAX/PLIST +++ b/textproc/p5-XML-SAX/PLIST @@ -1,4 +1,3 @@ -@comment $NetBSD: PLIST,v 1.6 2007/09/15 14:44:51 wiz Exp $ -${PERL5_SUB_INSTALLVENDORLIB}/XML/SAX/ParserDetails.ini -@comment Make sure it's gone. -@unexec ${RM} %D/${PERL5_SUB_INSTALLVENDORLIB}/XML/SAX/ParserDetails.ini 2>/dev/null || ${TRUE} +@comment $NetBSD: PLIST,v 1.7 2007/09/18 21:06:15 heinz Exp $ +share/examples/p5-XML-SAX/ParserDetails.ini +@dirrm share/examples/p5-XML-SAX |