summaryrefslogtreecommitdiff
blob: bfa4091896635e9237233dddd4f817f9ea560df2 (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DIST_AUTHOR=PHRED
DIST_VERSION=0.722
inherit perl-module

DESCRIPTION="Lightweight regexp-based XML parser"

SLOT="0"
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
IUSE="minimal"

# Note: Don't try to depend on XMLRPC-Lite or SOAP-Lite with tests,
# as it it introduces a temporal cycle when enabled.
# Also: That test requires networking ...
RDEPEND=""
BDEPEND="${RDEPEND}
	virtual/perl-ExtUtils-MakeMaker
	test? (
		>=dev-perl/Test-Requires-0.60.0
		>=virtual/perl-Test-Simple-0.880.0
	)
"

src_test() {
	local my_test_control="${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}"
	if ! has network ${my_test_control} ; then
		einfo "removing tests that can do network IO"
		perl_rm_files "t/37-mod_xmlrpc.t"
	fi
	perl-module_src_test
}