pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/p5-XML-SAX Improve handling of dynamically ch...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/067c83e3d543
branches:  trunk
changeset: 533424:067c83e3d543
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Tue Sep 18 21:06:14 2007 +0000

description:
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:

 textproc/p5-XML-SAX/Makefile |  11 +++++++----
 textproc/p5-XML-SAX/PLIST    |   7 +++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r d7a1c18e40b7 -r 067c83e3d543 textproc/p5-XML-SAX/Makefile
--- a/textproc/p5-XML-SAX/Makefile      Tue Sep 18 20:33:18 2007 +0000
+++ b/textproc/p5-XML-SAX/Makefile      Tue Sep 18 21:06:14 2007 +0000
@@ -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-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 -r d7a1c18e40b7 -r 067c83e3d543 textproc/p5-XML-SAX/PLIST
--- a/textproc/p5-XML-SAX/PLIST Tue Sep 18 20:33:18 2007 +0000
+++ b/textproc/p5-XML-SAX/PLIST Tue Sep 18 21:06:14 2007 +0000
@@ -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



Home | Main Index | Thread Index | Old Index