summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2024-04-29 20:23:04 +1100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-04-29 20:56:12 +1100
commite5a08ae25a2cff339f102fd0e929ab1f5e636b5d (patch)
tree533e0591cc31d3188ba94c7489098681fbe01566 /dev-perl/XML-Parser
parentdev-erlang/p1_pgsql: stabilize 1.1.23 for amd64 (diff)
downloadgentoo-e5a08ae25a2cff339f102fd0e929ab1f5e636b5d.tar.gz
gentoo-e5a08ae25a2cff339f102fd0e929ab1f5e636b5d.tar.bz2
gentoo-e5a08ae25a2cff339f102fd0e929ab1f5e636b5d.zip
dev-perl/XML-Parser: add 2.470.0
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-perl/XML-Parser')
-rw-r--r--dev-perl/XML-Parser/Manifest1
-rw-r--r--dev-perl/XML-Parser/XML-Parser-2.470.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-perl/XML-Parser/Manifest b/dev-perl/XML-Parser/Manifest
index d8458205f03d..f5af5ec776b6 100644
--- a/dev-perl/XML-Parser/Manifest
+++ b/dev-perl/XML-Parser/Manifest
@@ -1 +1,2 @@
DIST XML-Parser-2.46.tar.gz 254763 BLAKE2B a815c8f517adb609a1690e6127660eb339649eacffb21d77664b4f9ea071fbaeb432f50bc6469cb36a6b9b4b4e037f778dd2289bed6d87f497713d1d8cab9d0e SHA512 c4609495cc5ca34952f61876a690ef76d42eee6689d1bedb8036c9eab918525ec5213f1639c7178c029ee0f8765a2ca5eb0197f6e39b8be6d5dbc3f3c1d0b389
+DIST XML-Parser-2.47.tar.gz 279029 BLAKE2B b74d87e3d410eef9661a98ab6a7f73107b0f4ad717e2cb60206ad9a83797b250f43475f89b8ef32a0ccdf5a511a1186351a708ad4880a0bb0a30b03dda55a490 SHA512 3f9de53341bc85b87c88ad31e04b13f1f95516eec0d7e5fd1c1a3b3e66a91ca3d4de7c649978599219a4d4372f6218764ab5e1805b7155b5ca200006e1b0908f
diff --git a/dev-perl/XML-Parser/XML-Parser-2.470.0.ebuild b/dev-perl/XML-Parser/XML-Parser-2.470.0.ebuild
new file mode 100644
index 000000000000..1ae7d5833a57
--- /dev/null
+++ b/dev-perl/XML-Parser/XML-Parser-2.470.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=TODDR
+DIST_VERSION=2.47
+inherit perl-module
+
+DESCRIPTION="A perl module for parsing XML documents"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+
+RDEPEND="
+ >=dev-libs/expat-1.95.1-r1
+ dev-perl/libwww-perl
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}
+ >=dev-perl/Devel-CheckLib-1.140.0
+"
+
+src_prepare() {
+ default
+
+ # Drop bundled CheckLib which breaks Expat detection
+ # bug #827966
+ rm inc/Devel/CheckLib.pm || die
+}
+
+src_configure() {
+ myconf="EXPATLIBPATH=${ESYSROOT}/usr/$(get_libdir) EXPATINCPATH=${ESYSROOT}/usr/include"
+ perl-module_src_configure
+}
+
+src_install() {
+ perl-module_src_install
+
+ # "special" test for bug #827966
+ einfo "Checking for Expat.so (bug #827966)"
+ find "${D}" -name Expat.so | grep Expat || die "Something went badly wrong, can't find Expat.so. Please file a bug."
+}