From: Kent Fredric Date: Mon, 17 Jul 2017 22:06:04 +0000 (+1200) Subject: sci-biology/bioperl-db: Fix broken test dependencies X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=04ab405b6e126de98c59e047c4e597a974a73956;p=gentoo.git sci-biology/bioperl-db: Fix broken test dependencies Bundled versions of CPAN modules in t/ lacked all their dependencies being declared, leading to bundled copy of Test::Warn fail when Array::Compare was not installed. Additionally, parts didn't play nice together and warned about old versions of things. This is fixed buy uncermoniously removing all bundled test libraries and marking them as dependencies instead. Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- diff --git a/sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild b/sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild index 1b5db05287d5..7075ef242850 100644 --- a/sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild +++ b/sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -24,10 +24,23 @@ CDEPEND=" dev-perl/DBI sci-biology/biosql" DEPEND="${CDEPEND} - dev-perl/Module-Build" + dev-perl/Module-Build + test? ( + dev-perl/Data-Stag + dev-perl/Sub-Uplevel + dev-perl/Test-Warn + dev-perl/Test-Exception + virtual/perl-Test-Simple + ) +" RDEPEND="${CDEPEND}" src_install() { mydoc="AUTHORS BUGS FAQ" perl-module_src_install } +src_test() { + einfo "Removing bundled test libraries t/lib" + rm -r "${S}/t/lib" || die "Cannot remove t/lib" + perl-module_src_test +}