From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DD6FB158086 for ; Wed, 6 Oct 2021 16:48:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36DFEE09D7; Wed, 6 Oct 2021 16:47:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 221D3E09D7 for ; Wed, 6 Oct 2021 16:47:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 582743432B2 for ; Wed, 6 Oct 2021 16:47:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86CE5143 for ; Wed, 6 Oct 2021 16:47:50 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1633538847.bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/XML-SAX/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/XML-SAX/Manifest dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild X-VCS-Directories: dev-perl/XML-SAX/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff X-VCS-Branch: master Date: Wed, 6 Oct 2021 16:47:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 58620fc8-a719-4df4-b0ac-55c1ecbb73fb X-Archives-Hash: 64532d5141c355586ad4fb5f9e351eda commit: bf9990e40ef89ba2e3e97ce1c286ce5b1ce872ff Author: Andreas K. Hüttel gentoo org> AuthorDate: Wed Oct 6 16:41:20 2021 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Wed Oct 6 16:47:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf9990e4 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 gentoo.org> dev-perl/XML-SAX/Manifest | 1 + dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild | 44 ++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-perl/XML-SAX/Manifest b/dev-perl/XML-SAX/Manifest index 770e9ba15c4..2fab83d6dae 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 00000000000..ce49b20ac1f --- /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 +}