From 04ab405b6e126de98c59e047c4e597a974a73956 Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Tue, 18 Jul 2017 10:06:04 +1200 Subject: [PATCH] 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 --- sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 +} -- 2.26.2