Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/XML-LibXML/
Date: Sun, 03 Oct 2021 22:48:03
Message-Id: 1633301245.4d16732b49987f6a6fdbc589d183233cbb9a7ff9.dilfridge@gentoo
1 commit: 4d16732b49987f6a6fdbc589d183233cbb9a7ff9
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 3 22:34:25 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 3 22:47:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d16732b
7
8 dev-perl/XML-LibXML: Version bump 2.0207
9
10 Package-Manager: Portage-3.0.26, Repoman-3.0.3
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 dev-perl/XML-LibXML/Manifest | 1 +
14 dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild | 76 ++++++++++++++++++++++++++
15 2 files changed, 77 insertions(+)
16
17 diff --git a/dev-perl/XML-LibXML/Manifest b/dev-perl/XML-LibXML/Manifest
18 index d8e1947e045..a167ef250d8 100644
19 --- a/dev-perl/XML-LibXML/Manifest
20 +++ b/dev-perl/XML-LibXML/Manifest
21 @@ -1 +1,2 @@
22 DIST XML-LibXML-2.0201.tar.gz 462237 BLAKE2B 17313daca3e87b12f0d3161f628dbd5ee3fbd233747a9602b275e13f14e9710eba424804b1f57b40c2f0f340d1c29ca0518ffc395b808b0e9851c61943d73b22 SHA512 988bc98e7f3e426202b9770ef055df68abc861b935dcdd8ecbefaaa7cd528abc35cce9bd75f2f10412917178f6b74ac6bf953feac130b1f9afe9e18c16139e47
23 +DIST XML-LibXML-2.0207.tar.gz 462595 BLAKE2B 9ebb4786dcd45f552ef31ba0854693e876b6f8098b577401429651e5eb55792bb623185db371d2578432c00031ce2cfb66603e08290d7cf8f74dee5fe45c143d SHA512 86bf4200c800e1295161c3217892398dbc65e107ad1a3df8ea7f237350ba67d88ad7b18ab7123e647053a8721bc13a8959ddb101fdc6de18dcaef02c0f0f5b58
24
25 diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild
26 new file mode 100644
27 index 00000000000..1d213896cda
28 --- /dev/null
29 +++ b/dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild
30 @@ -0,0 +1,76 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DIST_AUTHOR=SHLOMIF
37 +DIST_VERSION=2.0207
38 +DIST_EXAMPLES=("example/*")
39 +inherit perl-module
40 +
41 +DESCRIPTION="Perl binding for libxml2"
42 +
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
45 +IUSE="minimal"
46 +
47 +RDEPEND="
48 + virtual/perl-Carp
49 + virtual/perl-Encode
50 + >=virtual/perl-Exporter-5.570.0
51 + virtual/perl-IO
52 + virtual/perl-Scalar-List-Utils
53 + >=dev-perl/XML-NamespaceSupport-1.70.0
54 + >=dev-perl/XML-SAX-0.110.0
55 + dev-perl/XML-SAX-Base
56 + >=dev-libs/libxml2-2.6.21:2=
57 + virtual/perl-parent
58 +"
59 +BDEPEND="${RDEPEND}
60 + virtual/perl-ExtUtils-MakeMaker
61 + dev-perl/Alien-Build
62 + >=dev-perl/Alien-Libxml2-0.140.0
63 + test? (
64 + !minimal? (
65 + dev-perl/Test-LeakTrace
66 + )
67 + )
68 +"
69 +DEPEND=">=dev-libs/libxml2-2.6.21:2=
70 +"
71 +
72 +PERL_RM_FILES=(
73 + "t/cpan-changes.t" "t/pod-files-presence.t" "t/pod.t"
74 + "t/release-kwalitee.t" "t/style-trailing-space.t"
75 + "t/11memory.t"
76 +)
77 +
78 +src_compile() {
79 + export SKIP_SAX_INSTALL=1
80 + perl-module_src_compile
81 +}
82 +
83 +pkg_postinst() {
84 + pkg_update_parser add XML::LibXML::SAX::Parser
85 + pkg_update_parser add XML::LibXML::SAX
86 +}
87 +
88 +pkg_postrm() {
89 + pkg_update_parser remove XML::LibXML::SAX::Parser
90 + pkg_update_parser remove XML::LibXML::SAX
91 +}
92 +
93 +pkg_update_parser() {
94 + # pkg_update_parser [add|remove] $parser_module
95 + local action=$1
96 + local parser_module=$2
97 +
98 + if [[ "$ROOT" = "/" ]] ; then
99 + einfo "Update Parser: $1 $2"
100 + perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
101 + || ewarn "Update Parser: $1 $2 failed"
102 + else
103 + elog "To $1 $2 run:"
104 + elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
105 + fi
106 +}