1 |
commit: 04ab405b6e126de98c59e047c4e597a974a73956 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 17 22:06:04 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 18 04:38:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04ab405b |
7 |
|
8 |
sci-biology/bioperl-db: Fix broken test dependencies |
9 |
|
10 |
Bundled versions of CPAN modules in t/ lacked all their dependencies |
11 |
being declared, leading to bundled copy of Test::Warn fail when |
12 |
Array::Compare was not installed. |
13 |
|
14 |
Additionally, parts didn't play nice together and warned about old |
15 |
versions of things. |
16 |
|
17 |
This is fixed buy uncermoniously removing all bundled test libraries |
18 |
and marking them as dependencies instead. |
19 |
|
20 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
21 |
|
22 |
sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild | 17 +++++++++++++++-- |
23 |
1 file changed, 15 insertions(+), 2 deletions(-) |
24 |
|
25 |
diff --git a/sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild b/sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild |
26 |
index 1b5db05287d..7075ef24285 100644 |
27 |
--- a/sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild |
28 |
+++ b/sci-biology/bioperl-db/bioperl-db-1.6.9.ebuild |
29 |
@@ -1,4 +1,4 @@ |
30 |
-# Copyright 1999-2015 Gentoo Foundation |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
|
34 |
EAPI="5" |
35 |
@@ -24,10 +24,23 @@ CDEPEND=" |
36 |
dev-perl/DBI |
37 |
sci-biology/biosql" |
38 |
DEPEND="${CDEPEND} |
39 |
- dev-perl/Module-Build" |
40 |
+ dev-perl/Module-Build |
41 |
+ test? ( |
42 |
+ dev-perl/Data-Stag |
43 |
+ dev-perl/Sub-Uplevel |
44 |
+ dev-perl/Test-Warn |
45 |
+ dev-perl/Test-Exception |
46 |
+ virtual/perl-Test-Simple |
47 |
+ ) |
48 |
+" |
49 |
RDEPEND="${CDEPEND}" |
50 |
|
51 |
src_install() { |
52 |
mydoc="AUTHORS BUGS FAQ" |
53 |
perl-module_src_install |
54 |
} |
55 |
+src_test() { |
56 |
+ einfo "Removing bundled test libraries t/lib" |
57 |
+ rm -r "${S}/t/lib" || die "Cannot remove t/lib" |
58 |
+ perl-module_src_test |
59 |
+} |