sci-biology/bioperl-db: Fix broken test dependencies
authorKent Fredric <kentnl@gentoo.org>
Mon, 17 Jul 2017 22:06:04 +0000 (10:06 +1200)
committerKent Fredric <kentnl@gentoo.org>
Tue, 18 Jul 2017 04:38:02 +0000 (16:38 +1200)
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

index 1b5db05287d5598cf0db2340685d25b9255de4d1..7075ef2428504e0cd2f9563b05b27a02fc913ea7 100644 (file)
@@ -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
+}