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-SAX/
Date: Wed, 06 Oct 2021 16:48:07
Message-Id: 1633538847.bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff.dilfridge@gentoo
1 commit: bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 6 16:41:20 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 6 16:47:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf9990e4
7
8 dev-perl/XML-SAX: Version bump 1.02
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-SAX/Manifest | 1 +
14 dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild | 44 ++++++++++++++++++++++++++++++++++
15 2 files changed, 45 insertions(+)
16
17 diff --git a/dev-perl/XML-SAX/Manifest b/dev-perl/XML-SAX/Manifest
18 index 770e9ba15c4..2fab83d6dae 100644
19 --- a/dev-perl/XML-SAX/Manifest
20 +++ b/dev-perl/XML-SAX/Manifest
21 @@ -1 +1,2 @@
22 DIST XML-SAX-1.00.tar.gz 46808 BLAKE2B c81b42050c98d749f5c8e133733c6acc2576dd31d156c98370030c387baccfcbfafcce644152edab114062039ca1075ced38f079ab9c4876470a79549dc8caa1 SHA512 95553c9693d8a310747b4b86d4e80a58d4056b18cfc334f6979c98d0e9034a34253bfb17daecfc5bb28b1bd65e6baf52136f5135a969fadba86aa4148ea9bc1d
23 +DIST XML-SAX-1.02.tar.gz 47318 BLAKE2B 4f22eafa92fa5a7bce04c1a26e2977b56ef35eb02eca4679330e92aae172f55f93b9b258369c4255813366f989399b647c17072e1fce05e3b688270ed52895cc SHA512 bb30ddbbcf27803825d2f0936257e102999a197cb14bd77fa8b7a469f3a24fb7d861ef4eb03230e5581e4ed88beb8676cbb907b2cb63e9ef1a64b2c211ebdc5a
24
25 diff --git a/dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild b/dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild
26 new file mode 100644
27 index 00000000000..ce49b20ac1f
28 --- /dev/null
29 +++ b/dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild
30 @@ -0,0 +1,44 @@
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=GRANTM
37 +DIST_VERSION=1.02
38 +inherit perl-module
39 +
40 +DESCRIPTION="Perl module for using and building Perl SAX2 XML parsers, filters, and drivers"
41 +
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
44 +
45 +RDEPEND="
46 + >=dev-perl/XML-SAX-Base-1.50.0
47 + >=dev-perl/XML-NamespaceSupport-0.30.0
48 + >=dev-libs/libxml2-2.4.1
49 + virtual/perl-File-Temp
50 +"
51 +BDEPEND="${RDEPEND}
52 + virtual/perl-ExtUtils-MakeMaker
53 +"
54 +
55 +PATCHES=("${FILESDIR}/${PN}-1.00-noautoini.patch")
56 +
57 +pkg_postinst() {
58 + pkg_update_parser add XML::SAX::PurePerl
59 +}
60 +
61 +pkg_update_parser() {
62 + # pkg_update_parser [add|remove] $parser_module
63 + local action=$1
64 + local parser_module=$2
65 +
66 + if [[ "$ROOT" = "/" ]] ; then
67 + einfo "Update Parser: $1 $2"
68 + perl -MXML::SAX -e "XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
69 + || ewarn "Update Parser: $1 $2 failed"
70 + else
71 + elog "To $1 $2 run:"
72 + elog "perl -MXML::SAX -e 'XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()'"
73 + fi
74 +}