From 4c2b70adc6484c35ff05e412de08a7b7f50cfb34 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 30 Apr 2024 00:00:01 +0100 Subject: gentoo auto-resync : 30:04:2024 - 00:00:01 --- dev-perl/XML-LibXML/Manifest | 2 + dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild | 78 ++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild (limited to 'dev-perl/XML-LibXML') diff --git a/dev-perl/XML-LibXML/Manifest b/dev-perl/XML-LibXML/Manifest index 7e3204f0a033..b37942cd4d6a 100644 --- a/dev-perl/XML-LibXML/Manifest +++ b/dev-perl/XML-LibXML/Manifest @@ -1,4 +1,6 @@ AUX XML-LibXML-2.20.800-modern-c.patch 1873 BLAKE2B 3ecebf6822094014001865b1a8ecb174d724f0bc97d59ad3b1432c5d84dac22fa7b425800e14996ae30befd359313672504a1fcf0bbca014f541c0570c51b040 SHA512 60e059d74928fe766a8ecf91270eaf28d7204520b32cbbab0676b334018bbfd94196ef83ce54a8eadec7238a9640d208cc64262c222eccf51b3ef5636999fb02 DIST XML-LibXML-2.0209.tar.gz 466118 BLAKE2B 665370499c16e60513263234c030d2be0d3a7c23563cae6ef06e125c3437057d8b835403b506c46caf864b6afff6e34370615d2508fb6891de99a0580bdf6f80 SHA512 3fd41775477ccb2eb9c72c72453436edcf2ed3db9aa1bbf53451c1407c5b6feeafd3ecc9f30507679f4dba15476044f43b5048da787c20a200831c0669b49262 +DIST XML-LibXML-2.0210.tar.gz 466316 BLAKE2B ebe5b6af158c68ef8df9b75f88445cf7e03ee41fcc3ba5c49216f2d27be63395a092a91a8ed8b4250ea1de3d627a2ca4df4a6af5cfff7bf5b2852bba33d99c86 SHA512 ae72b25ac6362152fa85ec9fed03fad694382bde29f459e1bd95b3ca4d1b0dffb76d2f8319bc6fbc6e291583696c3b95b41a23cc2bb509ce6f3fd7d74666fd77 EBUILD XML-LibXML-2.20.900.ebuild 1973 BLAKE2B 8622484206cb38a330908eea80f2b95639118e0501f7991f023e511b5aa80261ec068ba6b7db8c80c9d8acecbe62b28a6d6edb1a2a45b94516c20325963efc00 SHA512 6f8d90a6b4ecaeb985008b0e1940a8492dc262512f72a66bb192731b66de0ab26a7055e7ecba9865e02f70e8aa2efd3fea4e7d73d3e0cb0ebb5a5b7d7177bc44 +EBUILD XML-LibXML-2.21.0.ebuild 1923 BLAKE2B 55ea3126f2067b12f37562943a7cd328e61ee9aa25972d88ea50bec56d58915e87282b59467b137bd8908741bffd86682a0104804f546176621acd7c56571c22 SHA512 0484c10239aa49eff63290191f954f9f322a9defd1644617fce09a2e6ac0f31e6da8cf5b744373e53cb8b2abeac3014d73bebc0bafc73f883cc83162ba5bde97 MISC metadata.xml 2848 BLAKE2B ab04e542e1e6bf7d2d56f131b33b0ff0a568e76c205358f7de0e631d0e1cf16804103f8ac6da9867662023d887d97e6d4b25941056af8ad1a60eb1f1e9074987 SHA512 70f9e3c83938f8d73cdb1a87b2a663d636d5a51ca5a2a969b473171a303acf00f214f96ab342b6a607e8e5024074b5602598df50dbf7f7604212c2331927932b diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild new file mode 100644 index 000000000000..781787aa42f2 --- /dev/null +++ b/dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=SHLOMIF +DIST_VERSION=2.0210 +DIST_EXAMPLES=("example/*") +inherit perl-module + +DESCRIPTION="Perl binding for libxml2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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 +} -- cgit v1.2.3