summaryrefslogtreecommitdiff
path: root/dev-perl/XML-SAX
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/XML-SAX
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/XML-SAX')
-rw-r--r--dev-perl/XML-SAX/Manifest7
-rw-r--r--dev-perl/XML-SAX/XML-SAX-0.990.0-r1.ebuild49
-rw-r--r--dev-perl/XML-SAX/XML-SAX-1.0.0.ebuild44
-rw-r--r--dev-perl/XML-SAX/files/XML-SAX-1.00-noautoini.patch63
-rw-r--r--dev-perl/XML-SAX/files/encodings.patch11
-rw-r--r--dev-perl/XML-SAX/metadata.xml22
6 files changed, 196 insertions, 0 deletions
diff --git a/dev-perl/XML-SAX/Manifest b/dev-perl/XML-SAX/Manifest
new file mode 100644
index 000000000000..5a96b79e23c1
--- /dev/null
+++ b/dev-perl/XML-SAX/Manifest
@@ -0,0 +1,7 @@
+AUX XML-SAX-1.00-noautoini.patch 1603 BLAKE2B bfc4ecb4383c6058b95d69bd89ce823e424b183ef25c2bc53bc470c6fe0bd5aa98609b39827862dcbf36cb64f153729c3c195afe81d0b56fb53fb915cf6481e1 SHA512 0155db02c6ee4c14a3957fa8e508a2402aae425d2b6fcee4d464092aa59896ed589df2a6d2398ddda107070fac3b3dd4a5c6623227c3660784f5d9c9235aed04
+AUX encodings.patch 356 BLAKE2B b8d3dc9e53789d1f9e4030808251a40a8eeab67fe8f9291b1b401fd9a292fd268c630c9d6cf38701f14c4959347ecfcea1db24ba786dfeb6c04d6a83b690eca4 SHA512 55bae257ce1fc3099f17785b0eca050601d905ce27b36409c8d59ed4df2db531f64e5efdc7d2087dd0af05eb81b6b1747c3681b228a034ec71b91656a6f5df80
+DIST XML-SAX-0.99.tar.gz 46703 BLAKE2B e31da35dceab72c9b2c1efc35e49e00c4693ed10991f59e4f5b228b4c4ddff912744c2a9bd867afe37bfd8f3c105a9c3674f0b6221f519fc00e64e246eb8671e SHA512 f0c55efee4e3010deb474377394f9635bd8adc50108b562aeef54a2eef312cf87fb240d0495b5a5bd0c4cd5251db1bc74ba6cb549614708b1627f330959735e1
+DIST XML-SAX-1.00.tar.gz 46808 BLAKE2B c81b42050c98d749f5c8e133733c6acc2576dd31d156c98370030c387baccfcbfafcce644152edab114062039ca1075ced38f079ab9c4876470a79549dc8caa1 SHA512 95553c9693d8a310747b4b86d4e80a58d4056b18cfc334f6979c98d0e9034a34253bfb17daecfc5bb28b1bd65e6baf52136f5135a969fadba86aa4148ea9bc1d
+EBUILD XML-SAX-0.990.0-r1.ebuild 1290 BLAKE2B e85e2a7a7a41c93abece667168c9722aebe68263caef58e7473927ef05113923b5098e0220c6e0c2eb8e4def593876c5fc3c85d09270fff319d4b74e48996a0f SHA512 a6099736b4ceff40064c285372903dace4db0e9a8632cb386ad6ba5fe6ccbd95e6ef8a05f6b76f330cc660f91495dedcfdc737d3e10279206d7437e22dab846d
+EBUILD XML-SAX-1.0.0.ebuild 1256 BLAKE2B a1dce85d1049d9702dc93f46b67beb787145a86d8b6b0b7db9b7f63f87b4d1fd52ca6947f75c4416d96632b52c41f561560669f27b83aedf662df318ac2e8f05 SHA512 bf22055cf1fc831a3470bbb09b79dfbb08d9f739272d725410d27e25d5876264f813cf8b789d836a6a3594b136b3bd3b7ef712f6a174cf90eb970bbf6834e7c0
+MISC metadata.xml 1139 BLAKE2B 1060540815d2564a8df4bf4189cb0cc10c70fd0cc580472d8ca24c6cff19de77248c6624c7fae2b9e71e63fa7ff94bebe00b5cb37b9a4ae36e3a20dba9b62eac SHA512 6941bfef1a5a149b3ebf86869245b678dc9dbd03f3dcac6beb33350f8e82250a2d5c0d11d64f7d5ce8526ecdbb4e336c3c6a8b7768e5d2c2829199452ae9d32f
diff --git a/dev-perl/XML-SAX/XML-SAX-0.990.0-r1.ebuild b/dev-perl/XML-SAX/XML-SAX-0.990.0-r1.ebuild
new file mode 100644
index 000000000000..ddc6ea980067
--- /dev/null
+++ b/dev-perl/XML-SAX/XML-SAX-0.990.0-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MODULE_AUTHOR=GRANTM
+MODULE_VERSION=0.99
+inherit perl-module eutils
+
+DESCRIPTION="Perl module for using and building Perl SAX2 XML parsers, filters, and drivers"
+
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="
+ dev-perl/XML-SAX-Base
+ >=dev-perl/XML-NamespaceSupport-1.40.0
+ >=dev-libs/libxml2-2.4.1
+"
+DEPEND="${RDEPEND}"
+
+SRC_TEST="do"
+
+src_prepare() {
+ sed -i \
+ -e 's/if (\$write_ini_ok)/if (0 \&\& $write_ini_ok)/' \
+ Makefile.PL || die
+ epatch "${FILESDIR}"/encodings.patch
+}
+
+pkg_postinst() {
+ pkg_update_parser add XML::SAX::PurePerl
+}
+
+pkg_update_parser() {
+ # pkg_update_parser [add|remove] $parser_module
+ local action=$1
+ local parser_module=$2
+
+ if [[ "$ROOT" = "/" ]] ; then
+ einfo "Update Parser: $1 $2"
+ perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
+ || ewarn "Update Parser: $1 $2 failed"
+ else
+ elog "To $1 $2 run:"
+ elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
+ fi
+}
diff --git a/dev-perl/XML-SAX/XML-SAX-1.0.0.ebuild b/dev-perl/XML-SAX/XML-SAX-1.0.0.ebuild
new file mode 100644
index 000000000000..a6ecf0690138
--- /dev/null
+++ b/dev-perl/XML-SAX/XML-SAX-1.0.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=GRANTM
+DIST_VERSION=1.00
+inherit perl-module eutils
+
+DESCRIPTION="Perl module for using and building Perl SAX2 XML parsers, filters, and drivers"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="
+ >=dev-perl/XML-SAX-Base-1.50.0
+ >=dev-perl/XML-NamespaceSupport-1.40.0
+ >=dev-libs/libxml2-2.4.1
+ virtual/perl-File-Temp
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+"
+PATCHES=("${FILESDIR}/${PN}-1.00-noautoini.patch")
+
+pkg_postinst() {
+ pkg_update_parser add XML::SAX::PurePerl
+}
+
+pkg_update_parser() {
+ # pkg_update_parser [add|remove] $parser_module
+ local action=$1
+ local parser_module=$2
+
+ if [[ "$ROOT" = "/" ]] ; then
+ einfo "Update Parser: $1 $2"
+ perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
+ || ewarn "Update Parser: $1 $2 failed"
+ else
+ elog "To $1 $2 run:"
+ elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
+ fi
+}
diff --git a/dev-perl/XML-SAX/files/XML-SAX-1.00-noautoini.patch b/dev-perl/XML-SAX/files/XML-SAX-1.00-noautoini.patch
new file mode 100644
index 000000000000..75ec799e17e8
--- /dev/null
+++ b/dev-perl/XML-SAX/files/XML-SAX-1.00-noautoini.patch
@@ -0,0 +1,63 @@
+From 69984a8dbd2553d5a3c504c0f945b955d243380f Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Wed, 28 Mar 2018 19:48:34 +1300
+Subject: Remove all of the automatic INI generation code.
+
+As this will be handled by Gentoo outside the install phase anyway.
+
+Bug: https://bugs.gentoo.org/168988
+---
+ Makefile.PL | 40 ----------------------------------------
+ 1 file changed, 40 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index b0b09c7..78c5f3b 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -12,43 +12,3 @@ WriteMakefile(
+ 'XML::NamespaceSupport' => 0.03,
+ },
+ );
+-
+-sub MY::install {
+- package MY;
+- my $script = shift->SUPER::install(@_);
+-
+- # Only modify existing ParserDetails.ini if user agrees
+-
+- my $write_ini_ok = 0;
+-
+- eval { require XML::SAX };
+- if ($@) {
+- $write_ini_ok = 1;
+- }
+- else {
+- my $dir = File::Basename::dirname($INC{'XML/SAX.pm'});
+- 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;
+- }
+- else {
+- $write_ini_ok = 1;
+- }
+- }
+-
+- if ($write_ini_ok) {
+- $script =~ s/install :: (.*)$/install :: $1 install_sax_pureperl/m;
+- $script .= <<"INSTALL";
+-
+-install_sax_pureperl : pure_install
+-\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
+-
+-INSTALL
+-
+- }
+-
+- return $script;
+-}
+-
+--
+2.16.2
+
diff --git a/dev-perl/XML-SAX/files/encodings.patch b/dev-perl/XML-SAX/files/encodings.patch
new file mode 100644
index 000000000000..0608024d0be8
--- /dev/null
+++ b/dev-perl/XML-SAX/files/encodings.patch
@@ -0,0 +1,11 @@
+--- SAX/PurePerl/EncodingDetect.pm.orig 2006-05-08 12:08:40.000000000 -0400
++++ SAX/PurePerl/EncodingDetect.pm 2006-05-08 12:14:23.000000000 -0400
+@@ -93,7 +93,7 @@ sub encoding_detect {
+ return;
+ }
+
+- warn("Unable to recognise encoding of this document");
++ #warn("Unable to recognise encoding of this document");
+ return;
+ }
+
diff --git a/dev-perl/XML-SAX/metadata.xml b/dev-perl/XML-SAX/metadata.xml
new file mode 100644
index 000000000000..d3a8c605cc41
--- /dev/null
+++ b/dev-perl/XML-SAX/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">XML-SAX</remote-id>
+ <remote-id type="cpan-module">XML::SAX</remote-id>
+ <remote-id type="cpan-module">XML::SAX::DocumentLocator</remote-id>
+ <remote-id type="cpan-module">XML::SAX::ParserFactory</remote-id>
+ <remote-id type="cpan-module">XML::SAX::PurePerl</remote-id>
+ <remote-id type="cpan-module">XML::SAX::PurePerl::DebugHandler</remote-id>
+ <remote-id type="cpan-module">XML::SAX::PurePerl::Exception</remote-id>
+ <remote-id type="cpan-module">XML::SAX::PurePerl::Productions</remote-id>
+ <remote-id type="cpan-module">XML::SAX::PurePerl::Reader</remote-id>
+ <remote-id type="cpan-module">XML::SAX::PurePerl::Reader::Stream</remote-id>
+ <remote-id type="cpan-module">XML::SAX::PurePerl::Reader::String</remote-id>
+ <remote-id type="cpan-module">XML::SAX::PurePerl::Reader::URI</remote-id>
+ </upstream>
+</pkgmetadata>