From 752d6256e5204b958b0ef7905675a940b5e9172f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 May 2022 16:42:50 +0300 Subject: gentoo resync : 12.05.2022 --- dev-perl/XML-LibXML/Manifest | 2 +- dev-perl/XML-LibXML/XML-LibXML-2.20.700-r2.ebuild | 79 +++++++++++++++++++++++ dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild | 76 ---------------------- 3 files changed, 80 insertions(+), 77 deletions(-) create mode 100644 dev-perl/XML-LibXML/XML-LibXML-2.20.700-r2.ebuild delete mode 100644 dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild (limited to 'dev-perl/XML-LibXML') diff --git a/dev-perl/XML-LibXML/Manifest b/dev-perl/XML-LibXML/Manifest index 687be3b733be..fab1c3d66e5b 100644 --- a/dev-perl/XML-LibXML/Manifest +++ b/dev-perl/XML-LibXML/Manifest @@ -1,3 +1,3 @@ DIST XML-LibXML-2.0207.tar.gz 462595 BLAKE2B 9ebb4786dcd45f552ef31ba0854693e876b6f8098b577401429651e5eb55792bb623185db371d2578432c00031ce2cfb66603e08290d7cf8f74dee5fe45c143d SHA512 86bf4200c800e1295161c3217892398dbc65e107ad1a3df8ea7f237350ba67d88ad7b18ab7123e647053a8721bc13a8959ddb101fdc6de18dcaef02c0f0f5b58 -EBUILD XML-LibXML-2.20.700.ebuild 1713 BLAKE2B 22d964fe3387997070b01fbb0e0643be5e74af074c7e946f004947bd0f71db75a689f557d5f098f50bf83c086caeea78672a4b835428f0941012c1a432e2f999 SHA512 b1337518936f3c282244b30a13582ae6c483f7623269ba23b8e7baa2d93ea9d95e344ad9145a7c06cd93d1490f07a81b4c39724d56f4ed7a97ab667186b508a3 +EBUILD XML-LibXML-2.20.700-r2.ebuild 1909 BLAKE2B 3fd5fbc03653441adfb2d50fc1812e76b5e533f76febc79da868de48d56ca5dcef7ca64abb2db037083eda66b5fc9747aaa5c10b070a0c005bcb7d51dbdfdb04 SHA512 7bc018806eb27c2b913c8a7964158ed83c858833d51f7b652beb30c092f273ac334382743b07d5c1e50c6281627ab3be72f0c5f64084b7a6e45b5e9ca0860dd9 MISC metadata.xml 2783 BLAKE2B 69d8723dca61cd70c875f502d74213a4b8ab6d33b89438b0f0bd11bf00d9a88c5c9d5d5d2e23af2d7c8fcdd5a0442c3ec6edccc9b3e359063519fe2d0cdea698 SHA512 8ad240f84906b05144327e68baa16be3e4866dbf7d364ed6cf0b13f1031ef7632a4628715ef84c7ada5e5864b56bf588de0ecb5b7aafb2eafe4762f234cd3be7 diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.20.700-r2.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.20.700-r2.ebuild new file mode 100644 index 000000000000..0ae1504557fe --- /dev/null +++ b/dev-perl/XML-LibXML/XML-LibXML-2.20.700-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=SHLOMIF +DIST_VERSION=2.0207 +DIST_EXAMPLES=("example/*") +inherit perl-module + +DESCRIPTION="Perl binding for libxml2" + +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" +IUSE="minimal" + +# >= on XML-Sax needed to avoid "miscompilation" (essentially empty install), as newer XML-Sax +# has the ROOT check fixed. Didn't happen with XML-SAX-Expat, but best to be careful. +# bug #840053 +RDEPEND=" + virtual/perl-Carp + virtual/perl-Encode + >=virtual/perl-Exporter-5.570.0 + virtual/perl-IO + virtual/perl-Scalar-List-Utils + >=dev-perl/XML-NamespaceSupport-1.70.0 + >=dev-perl/XML-SAX-1.20.0-r1 + dev-perl/XML-SAX-Base + >=dev-libs/libxml2-2.6.21:2= + virtual/perl-parent +" +BDEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + dev-perl/Alien-Build + >=dev-perl/Alien-Libxml2-0.140.0 + test? ( + !minimal? ( + dev-perl/Test-LeakTrace + ) + ) +" +DEPEND=">=dev-libs/libxml2-2.6.21:2= +" + +PERL_RM_FILES=( + "t/cpan-changes.t" "t/pod-files-presence.t" "t/pod.t" + "t/release-kwalitee.t" "t/style-trailing-space.t" + "t/11memory.t" +) + +src_compile() { + export SKIP_SAX_INSTALL=1 + perl-module_src_compile +} + +pkg_postinst() { + pkg_update_parser add XML::LibXML::SAX::Parser + pkg_update_parser add XML::LibXML::SAX +} + +pkg_postrm() { + pkg_update_parser remove XML::LibXML::SAX::Parser + pkg_update_parser remove XML::LibXML::SAX +} + +pkg_update_parser() { + # pkg_update_parser [add|remove] $parser_module + local action=$1 + local parser_module=$2 + + if [[ -z "${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-LibXML/XML-LibXML-2.20.700.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild deleted file mode 100644 index ebe51ebbecf4..000000000000 --- a/dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DIST_AUTHOR=SHLOMIF -DIST_VERSION=2.0207 -DIST_EXAMPLES=("example/*") -inherit perl-module - -DESCRIPTION="Perl binding for libxml2" - -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" -IUSE="minimal" - -RDEPEND=" - virtual/perl-Carp - virtual/perl-Encode - >=virtual/perl-Exporter-5.570.0 - virtual/perl-IO - virtual/perl-Scalar-List-Utils - >=dev-perl/XML-NamespaceSupport-1.70.0 - >=dev-perl/XML-SAX-0.110.0 - dev-perl/XML-SAX-Base - >=dev-libs/libxml2-2.6.21:2= - virtual/perl-parent -" -BDEPEND="${RDEPEND} - virtual/perl-ExtUtils-MakeMaker - dev-perl/Alien-Build - >=dev-perl/Alien-Libxml2-0.140.0 - test? ( - !minimal? ( - dev-perl/Test-LeakTrace - ) - ) -" -DEPEND=">=dev-libs/libxml2-2.6.21:2= -" - -PERL_RM_FILES=( - "t/cpan-changes.t" "t/pod-files-presence.t" "t/pod.t" - "t/release-kwalitee.t" "t/style-trailing-space.t" - "t/11memory.t" -) - -src_compile() { - export SKIP_SAX_INSTALL=1 - perl-module_src_compile -} - -pkg_postinst() { - pkg_update_parser add XML::LibXML::SAX::Parser - pkg_update_parser add XML::LibXML::SAX -} - -pkg_postrm() { - pkg_update_parser remove XML::LibXML::SAX::Parser - pkg_update_parser remove XML::LibXML::SAX -} - -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 -} -- cgit v1.2.3