blob: d92a7cb2d262790879a5733da66931ff1fb9ddee (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
MODULE_AUTHOR=LBROCARD
inherit perl-module
DESCRIPTION="Provide an index of BACKPAN"
LICENSE="|| ( Artistic GPL-2 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test -big-net-test"
COMMON_DEPEND="
dev-perl/libwww-perl
virtual/perl-IO-Zlib
virtual/perl-IO-Compress
dev-perl/App-Cache
dev-perl/Class-Accessor
dev-perl/CPAN-DistnameInfo
"
DEPEND="
${COMMON_DEPEND}
test? (
virtual/perl-Test-Simple
)
"
RDEPEND="
${COMMON_DEPEND}
"
src_test() {
if use big-net-test ; then
ebeep 1;
ewarn 'Warning: You have selected USE="big-net-test"';
ewarn " This will download ~1Mb from CPAN/BACKPAN";
ewarn " Without this flag in your USE, no tests will be performed.";
einfo " ";
ebeep 1;
epause 4;
SRC_TEST="do" ;
perl-module_src_test
else
ewarn "Tests skipped due to USE=\"-big-net-test\"."
ewarn "Turning this flag on will enable tests for this module, "
ewarn " but will also require internet connectivity and download ~1Mb"
ewarn " (or possiby more) from BACKPAN"
fi
}
|