# Copyright 1999-2016 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? ( 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 }