You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-perl/Business-ISBN/Business-ISBN-2.90.200_rc.e...

52 lines
1.2 KiB

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=BDFOY
DIST_VERSION=2.09_02
inherit perl-module
DESCRIPTION="Work with ISBN as objects"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="test xisbn barcode"
RDEPEND="
xisbn? ( dev-perl/Mojolicious )
barcode? (
dev-perl/GD-Barcode
dev-perl/GD[png]
)
>=dev-perl/Business-ISBN-Data-20140910.2.0
"
DEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
test? (
>=virtual/perl-Test-Simple-0.950.0
)
"
# NOTE: This version is shipped because upstream has broken everything
# by shipping an unmappable 2.010 which == 2.01 in both upstream versioning
# and perl->gentoo mapping rules.
#
# Dependencies taken from 2.010 because 2.09_02 lacks all dependencies.
src_prepare() {
perl-module_src_prepare
sed -i '/URI/d' Makefile.PL || die # unused dependency
}
src_test() {
local my_test_control="${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}"
local bad_tests=( t/pod{,_coverage}.t )
if ! has network ${my_test_control}; then
einfo "Disabling network tests without DIST_TEST_OVERRIDE =~ network"
bad_tests+=( t/xisbn10.t )
fi
perl_rm_files "${bad_tests[@]}"
perl-module_src_test
}