blob: 127fbd8e95714347627300909e3e7e7db9515a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=TODDR
DIST_VERSION=2.46
inherit perl-module multilib
DESCRIPTION="A perl module for parsing XML documents"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND="
>=dev-libs/expat-1.95.1-r1
dev-perl/libwww-perl
"
DEPEND="${RDEPEND}"
BDEPEND="${RDEPEND}
dev-perl/Devel-CheckLib"
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."
}
|