blob: 105bfdd999a0b291a482c6382699a394b7108da9 [file] [log] [blame]
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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? (
dev-perl/Test-Pod
dev-perl/Test-Pod-Coverage
)
"
SRC_TEST=do
src_prepare() {
perl-module_src_prepare
sed -i '/URI/d' Makefile.PL || die # unused dependency
}
src_test() {
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
}