blob: fe1edb81f55f35f1646f3b6226b226ff020120d6 (
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-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=MATTN
DIST_VERSION=0.20
inherit perl-module
DESCRIPTION="Perl implementation of GNTP Protocol (Client Part)"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test examples"
RDEPEND="
examples? ( virtual/perl-Encode )
>=dev-perl/Crypt-CBC-2.290.0
>=dev-perl/Data-UUID-0.149.0
>=virtual/perl-Digest-MD5-2.360.0
>=virtual/perl-Digest-SHA-5.450.0
virtual/perl-IO
dev-perl/IO-Socket-PortState
"
DEPEND="${RDEPEND}
>=dev-perl/Module-Build-0.380.0
virtual/perl-File-Spec
virtual/perl-CPAN-Meta"
src_test() {
my_test_control=${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}
if ! has 'network' ${my_test_control}; then
einfo "Network testing disabled"
perl_rm_files "t/01_simple.t"
fi
perl-module_src_test
}
src_install() {
perl-module_src_install
if use examples; then
docompress -x /usr/share/doc/${PF}/examples
dodoc -r examples
fi
}
|