svn commit: r463111 - in head/textproc/p5-XML-SAX: . files
Kurt Jaeger
pi at FreeBSD.org
Tue Feb 27 07:15:55 UTC 2018
Author: pi
Date: Tue Feb 27 07:15:54 2018
New Revision: 463111
URL: https://svnweb.freebsd.org/changeset/ports/463111
Log:
textproc/p5-XML-SAX: fix checksum mismatch for ParserDetails.ini
- The file %%SITE_PERL%%/XML/SAX/ParserDetails.ini
is updated by ports that depending textproc/p5-XML-SAX.
- For example, textproc/p5-XML-SAX-Expat, textproc/p5-XML-Simple
and textproc/p5-XML-LibXML append something to the .ini file.
- This causes checksum mismatch when executing
`pkg check -s textproc/p5-XML-SAX`
The fix provides a pkg-install program to handle the file in post-install.
PR: 197011
Submitted by: Tatsuki Makino <tatsuki_makino at hotmail.com>
Reviewed by: John Hein, mat, Walter Schwarzenfeld <w.schwarzenfeld at utanet.at>
Added:
head/textproc/p5-XML-SAX/files/pkg-install.in (contents, props changed)
Modified:
head/textproc/p5-XML-SAX/Makefile
head/textproc/p5-XML-SAX/files/patch-Makefile.PL
head/textproc/p5-XML-SAX/pkg-plist
Modified: head/textproc/p5-XML-SAX/Makefile
==============================================================================
--- head/textproc/p5-XML-SAX/Makefile Tue Feb 27 05:43:10 2018 (r463110)
+++ head/textproc/p5-XML-SAX/Makefile Tue Feb 27 07:15:54 2018 (r463111)
@@ -20,5 +20,8 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
NO_ARCH= yes
USES= perl5
USE_PERL5= configure
+SUB_FILES= pkg-install
+SUB_LIST= PERL=${PERL}
+PKGDEINSTALL= ${PKGINSTALL}
.include <bsd.port.mk>
Modified: head/textproc/p5-XML-SAX/files/patch-Makefile.PL
==============================================================================
--- head/textproc/p5-XML-SAX/files/patch-Makefile.PL Tue Feb 27 05:43:10 2018 (r463110)
+++ head/textproc/p5-XML-SAX/files/patch-Makefile.PL Tue Feb 27 07:15:54 2018 (r463111)
@@ -22,7 +22,7 @@
install_sax_pureperl : pure_install
-\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
-+\t\@\$(PERL) -I\$(DESTDIR)\$(INSTALLSITELIB) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
++#\t\@\$(PERL) -I\$(DESTDIR)\$(INSTALLSITELIB) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
INSTALL
Added: head/textproc/p5-XML-SAX/files/pkg-install.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/p5-XML-SAX/files/pkg-install.in Tue Feb 27 07:15:54 2018 (r463111)
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+PERL="%%PERL%%"
+
+case $2 in
+ POST-INSTALL)
+ $PERL -MXML::SAX -e 'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers();'
+ ;;
+ DEINSTALL)
+ $PERL -MFile::Basename=dirname -MFile::Spec -MXML::SAX << 'PERLSCRIPT'
+XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers();
+unless (@{XML::SAX->parsers()} > 0) {
+ $dir = $INC{q(XML/SAX.pm)}; $dir = dirname($dir);
+ $file = File::Spec->catfile($dir, q(SAX), XML::SAX::PARSER_DETAILS);
+ unlink($file);
+}
+PERLSCRIPT
+ ;;
+esac
Modified: head/textproc/p5-XML-SAX/pkg-plist
==============================================================================
--- head/textproc/p5-XML-SAX/pkg-plist Tue Feb 27 05:43:10 2018 (r463110)
+++ head/textproc/p5-XML-SAX/pkg-plist Tue Feb 27 07:15:54 2018 (r463111)
@@ -7,7 +7,7 @@
%%SITE_PERL%%/XML/SAX.pm
%%SITE_PERL%%/XML/SAX/DocumentLocator.pm
%%SITE_PERL%%/XML/SAX/Intro.pod
-%%SITE_PERL%%/XML/SAX/ParserDetails.ini
+ at comment %%SITE_PERL%%/XML/SAX/ParserDetails.ini
%%SITE_PERL%%/XML/SAX/ParserFactory.pm
%%SITE_PERL%%/XML/SAX/PurePerl.pm
%%SITE_PERL%%/XML/SAX/PurePerl/DTDDecls.pm
More information about the svn-ports-head
mailing list