blob: 9f376af5b49e3fb00cb81a38ac6533ac1b2984dc (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=NLNETLABS
DIST_VERSION=1.45
DIST_EXAMPLES=( "contrib" "demo" )
inherit toolchain-funcs perl-module
DESCRIPTION="Perl Interface to the Domain Name System"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="minimal"
PDEPEND="
!minimal? ( >=dev-perl/Net-DNS-SEC-1.30.0 )
"
RDEPEND="
>=virtual/perl-Carp-1.100.0
>=dev-perl/Digest-HMAC-1.30.0
>=virtual/perl-Digest-MD5-2.370.0
>=virtual/perl-Digest-SHA-5.230.0
>=virtual/perl-Encode-2.260.0
>=virtual/perl-Exporter-5.630.0
>=virtual/perl-File-Spec-3.290.0
>=virtual/perl-MIME-Base64-3.70.0
>=virtual/perl-Scalar-List-Utils-1.190.0
>=virtual/perl-Socket-1.810.0
>=virtual/perl-Time-Local-1.190.0
>=virtual/perl-IO-Socket-IP-0.380.0
>=virtual/perl-IO-1.140.0
!minimal? (
>=dev-perl/Digest-BubbleBabble-0.20.0
>=dev-perl/Net-LibIDN2-1.0.0
)
"
BDEPEND="
${RDEPEND}
>=virtual/perl-ExtUtils-MakeMaker-6.480.0
>=virtual/perl-Getopt-Long-2.430.0
test? (
>=virtual/perl-Test-Simple-0.520.0
)
"
src_prepare() {
perl-module_src_prepare
mydoc="TODO"
# --IPv6-tests requires that you have external IPv6 connectivity
# as it connects to 2001:7b8:206:1:0:1234:be21:e31e
if ! use test || ! has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
myconf="${myconf} --no-online-tests --no-IPv6-tests"
fi
}
src_compile() {
emake FULL_AR="$(tc-getAR)" OTHERLDFLAGS="${LDFLAGS}"
}
src_test() {
perl_rm_files t/00-pod.t
if ! has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
elog "Network tests disabled without to DIST_TEST_OVERIDE=~network"
fi
perl-module_src_test
}
|