diff options
author | Kent Fredric <kentnl@gentoo.org> | 2017-07-18 10:06:04 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2017-07-18 16:38:02 +1200 |
commit | 04ab405b6e126de98c59e047c4e597a974a73956 (patch) | |
tree | 8036af45d9139862c11c12d062dfe8a1495122b3 /sci-biology | |
parent | dev-ruby/childprocess: arm stable, bug #622796 (diff) | |
download | gentoo-04ab405b6e126de98c59e047c4e597a974a73956.tar.gz gentoo-04ab405b6e126de98c59e047c4e597a974a73956.tar.bz2 gentoo-04ab405b6e126de98c59e047c4e597a974a73956.zip |
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
Diffstat (limited to 'sci-biology')
-rw-r--r-- | sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild | 17 |
1 files 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 +} |