diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-10-06 18:41:20 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-10-06 18:47:27 +0200 |
commit | bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff (patch) | |
tree | 43a5f68de71fdec783c6db3a313c94c532bfb6df /dev-perl/XML-SAX | |
parent | dev-perl/XML-RSS-Parser: EAPI=8 bump (diff) | |
download | gentoo-bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff.tar.gz gentoo-bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff.tar.bz2 gentoo-bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff.zip |
dev-perl/XML-SAX: Version bump 1.02
Package-Manager: Portage-3.0.26, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-perl/XML-SAX')
-rw-r--r-- | dev-perl/XML-SAX/Manifest | 1 | ||||
-rw-r--r-- | dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-perl/XML-SAX/Manifest b/dev-perl/XML-SAX/Manifest index 770e9ba15c4e..2fab83d6dae0 100644 --- a/dev-perl/XML-SAX/Manifest +++ b/dev-perl/XML-SAX/Manifest @@ -1 +1,2 @@ DIST XML-SAX-1.00.tar.gz 46808 BLAKE2B c81b42050c98d749f5c8e133733c6acc2576dd31d156c98370030c387baccfcbfafcce644152edab114062039ca1075ced38f079ab9c4876470a79549dc8caa1 SHA512 95553c9693d8a310747b4b86d4e80a58d4056b18cfc334f6979c98d0e9034a34253bfb17daecfc5bb28b1bd65e6baf52136f5135a969fadba86aa4148ea9bc1d +DIST XML-SAX-1.02.tar.gz 47318 BLAKE2B 4f22eafa92fa5a7bce04c1a26e2977b56ef35eb02eca4679330e92aae172f55f93b9b258369c4255813366f989399b647c17072e1fce05e3b688270ed52895cc SHA512 bb30ddbbcf27803825d2f0936257e102999a197cb14bd77fa8b7a469f3a24fb7d861ef4eb03230e5581e4ed88beb8676cbb907b2cb63e9ef1a64b2c211ebdc5a diff --git a/dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild b/dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild new file mode 100644 index 000000000000..ce49b20ac1f1 --- /dev/null +++ b/dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=GRANTM +DIST_VERSION=1.02 +inherit perl-module + +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 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND=" + >=dev-perl/XML-SAX-Base-1.50.0 + >=dev-perl/XML-NamespaceSupport-0.30.0 + >=dev-libs/libxml2-2.4.1 + virtual/perl-File-Temp +" +BDEPEND="${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 +} |