mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
1: remove WRITE_INI_OK config from p5-XML-SAX, force to write ini now.
2: fix install/deinstall problem of p5-XML-SAX-ExpatXS, will cause md5 checksum error of p5-XML-SAX. PR: ports/183781 Submitted by: Ryan Frederick <ryanrfrederick@gmail.com>
This commit is contained in:
parent
4e1e06ceec
commit
5362ac4a29
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333249
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
case $2 in
|
||||
POST-DEINSTALL)
|
||||
perl -MXML::SAX -e 'XML::SAX->remove_parser(q(XML::SAX::ExpatXS))->save_parsers();'
|
||||
;;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
case $2 in
|
||||
POST-INSTALL)
|
||||
perl -MXML::SAX -e 'XML::SAX->add_parser(q(XML::SAX::ExpatXS))->save_parsers();'
|
||||
;;
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= XML-SAX
|
||||
PORTVERSION= 0.99
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
@ -12,29 +13,11 @@ COMMENT= Simple API for XML
|
||||
|
||||
BUILD_DEPENDS= p5-XML-NamespaceSupport>=0.03:${PORTSDIR}/textproc/p5-XML-NamespaceSupport \
|
||||
p5-XML-SAX-Base>=1.05:${PORTSDIR}/textproc/p5-XML-SAX-Base
|
||||
RUN_DEPENDS= p5-XML-NamespaceSupport>=0.03:${PORTSDIR}/textproc/p5-XML-NamespaceSupport \
|
||||
p5-XML-SAX-Base>=1.05:${PORTSDIR}/textproc/p5-XML-SAX-Base
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= configure
|
||||
|
||||
OPTIONS_DEFINE= WRITE_INI_OK
|
||||
|
||||
WRITE_INI_OK_DESC= Alter ParserDetails.ini information
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MWRITE_INI_OK}
|
||||
WRITE_INI_OK= 1
|
||||
.else
|
||||
WRITE_INI_OK= 0
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
# dirty hack to stop asking for confirmation to alter ParserDetails.ini
|
||||
@${REINPLACE_CMD} -e 's/%%WRITE_INI_OK%%/${WRITE_INI_OK}/' \
|
||||
${WRKSRC}/Makefile.PL
|
||||
|
||||
post-configure:
|
||||
# dirty hack to deceive irritable pod2man
|
||||
@${PERL} -e 's/^(POD2MAN_EXE.*)$$/\1 --lax/;' ${WRKSRC}/Makefile
|
||||
|
@ -1,18 +1,23 @@
|
||||
--- Makefile.PL.orig 2013-11-07 09:23:43.000000000 +0800
|
||||
+++ Makefile.PL 2013-11-07 09:25:19.000000000 +0800
|
||||
@@ -28,10 +28,7 @@ sub MY::install {
|
||||
--- Makefile.PL.orig 2011-09-05 05:37:48.000000000 +0800
|
||||
+++ Makefile.PL 2013-11-09 01:00:33.000000000 +0800
|
||||
@@ -27,15 +27,7 @@ sub MY::install {
|
||||
}
|
||||
else {
|
||||
my $dir = File::Basename::dirname($INC{'XML/SAX.pm'});
|
||||
if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) {
|
||||
- if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) {
|
||||
- $write_ini_ok =
|
||||
- ExtUtils::MakeMaker::prompt(
|
||||
- "Do you want XML::SAX to alter ParserDetails.ini?", "Y"
|
||||
- ) =~ /^y/i;
|
||||
+ $write_ini_ok = %%WRITE_INI_OK%%;
|
||||
}
|
||||
else {
|
||||
$write_ini_ok = 1;
|
||||
@@ -43,7 +40,7 @@ sub MY::install {
|
||||
- }
|
||||
- else {
|
||||
- $write_ini_ok = 1;
|
||||
- }
|
||||
+ $write_ini_ok = 1;
|
||||
}
|
||||
|
||||
if ($write_ini_ok) {
|
||||
@@ -43,7 +35,7 @@ sub MY::install {
|
||||
$script .= <<"INSTALL";
|
||||
|
||||
install_sax_pureperl :
|
||||
|
@ -1,3 +1,9 @@
|
||||
%%PERL5_MAN3%%/XML::SAX.3.gz
|
||||
%%PERL5_MAN3%%/XML::SAX::DocumentLocator.3.gz
|
||||
%%PERL5_MAN3%%/XML::SAX::Intro.3.gz
|
||||
%%PERL5_MAN3%%/XML::SAX::ParserFactory.3.gz
|
||||
%%PERL5_MAN3%%/XML::SAX::PurePerl.3.gz
|
||||
%%PERL5_MAN3%%/XML::SAX::PurePerl::Reader.3.gz
|
||||
%%SITE_PERL%%/XML/SAX.pm
|
||||
%%SITE_PERL%%/XML/SAX/DocumentLocator.pm
|
||||
%%SITE_PERL%%/XML/SAX/Intro.pod
|
||||
@ -11,18 +17,18 @@
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/Exception.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/NoUnicodeExt.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/Productions.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/UnicodeExt.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/Reader.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/Reader/NoUnicodeExt.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/Reader/Stream.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/Reader/String.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/Reader/URI.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/Reader/UnicodeExt.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/UnicodeExt.pm
|
||||
%%SITE_PERL%%/XML/SAX/PurePerl/XMLDecl.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/SAX/.packlist
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/SAX
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML
|
||||
@dirrm %%SITE_PERL%%/XML/SAX/PurePerl/Reader
|
||||
@dirrmtry %%SITE_PERL%%/XML/SAX/PurePerl/Reader
|
||||
@dirrmtry %%SITE_PERL%%/XML/SAX/PurePerl
|
||||
@dirrmtry %%SITE_PERL%%/XML/SAX
|
||||
@dirrmtry %%SITE_PERL%%/XML
|
||||
|
Loading…
Reference in New Issue
Block a user