blob: 9c0326ade8b92f56dc2277e143046fae2a4b8352 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
MODULE_AUTHOR=BDFOY
MODULE_VERSION=2.05
inherit perl-module
DESCRIPTION="Work with ISBN as objects"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="
>=dev-perl/Business-ISBN-Data-20081208.0.0
"
DEPEND="${RDEPEND}
test? ( virtual/perl-Test-Simple )
"
SRC_TEST=do
src_prepare() {
perl-module_src_prepare
sed -i '/URI/d' Makefile.PL || die # unused dependency
}
src_test() {
perl_rm_files t/pod{,_coverage}.t
mv t/xisbn10.t{,.disable} || die # online test
sed -i 's,9997022576,9999922579,' t/isbn1{0,3}.t || die # non-existing block
perl-module_src_test
}
|