1 |
commit: 6e8a940b27a7e9203205e7c70677025b7b6d4002 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 15 03:55:07 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 15 03:55:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e8a940b |
7 |
|
8 |
dev-perl/Bio-Das: Add tests/fencing |
9 |
|
10 |
- EAPI6 |
11 |
- Test for offline use |
12 |
- Document network testing options |
13 |
|
14 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
15 |
|
16 |
dev-perl/Bio-Das/Bio-Das-1.170.0-r2.ebuild | 73 ++++++++++++++++++++++++++++++ |
17 |
1 file changed, 73 insertions(+) |
18 |
|
19 |
diff --git a/dev-perl/Bio-Das/Bio-Das-1.170.0-r2.ebuild b/dev-perl/Bio-Das/Bio-Das-1.170.0-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..9637c477fa2 |
22 |
--- /dev/null |
23 |
+++ b/dev-perl/Bio-Das/Bio-Das-1.170.0-r2.ebuild |
24 |
@@ -0,0 +1,73 @@ |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+DIST_AUTHOR=LDS |
31 |
+DIST_VERSION=1.17 |
32 |
+inherit perl-module |
33 |
+ |
34 |
+DESCRIPTION="Interface to Distributed Annotation System" |
35 |
+ |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="" |
39 |
+ |
40 |
+DEPEND=">=virtual/perl-IO-Compress-1.0 |
41 |
+ sci-biology/bioperl |
42 |
+ >=dev-perl/HTML-Parser-3 |
43 |
+ >=dev-perl/libwww-perl-5 |
44 |
+ >=virtual/perl-MIME-Base64-2.12" |
45 |
+RDEPEND="${DEPEND}" |
46 |
+ |
47 |
+src_test() { |
48 |
+ local MODULES=( |
49 |
+ "Bio::Das ${DIST_VERSION}" |
50 |
+ "Bio::Das::AGPServer::Config 1.0" |
51 |
+ "Bio::Das::AGPServer::Daemon" |
52 |
+ "Bio::Das::AGPServer::Parser" |
53 |
+ "Bio::Das::AGPServer::SQLStorage" |
54 |
+ "Bio::Das::AGPServer::SQLStorage::CSV::DB" |
55 |
+ "Bio::Das::AGPServer::SQLStorage::MySQL::DB" |
56 |
+ "Bio::Das::DSN" |
57 |
+ "Bio::Das::Feature 0.91" |
58 |
+ "Bio::Das::FeatureIterator 0.01" |
59 |
+ "Bio::Das::HTTP::Fetch 1.11" |
60 |
+ "Bio::Das::Map 1.01" |
61 |
+ "Bio::Das::Request" |
62 |
+ "Bio::Das::Request::Dnas" |
63 |
+ "Bio::Das::Request::Dsn" |
64 |
+ "Bio::Das::Request::Entry_points" |
65 |
+ "Bio::Das::Request::Feature2Segments" |
66 |
+ "Bio::Das::Request::Features" |
67 |
+ "Bio::Das::Request::Sequences" |
68 |
+ "Bio::Das::Request::Stylesheet" |
69 |
+ "Bio::Das::Request::Types" |
70 |
+ "Bio::Das::Segment 0.91" |
71 |
+ "Bio::Das::Stylesheet 1.00" |
72 |
+ "Bio::Das::Type" |
73 |
+ "Bio::Das::TypeHandler" |
74 |
+ "Bio::Das::Util 0.01" |
75 |
+ ) |
76 |
+ local failed=() |
77 |
+ for dep in "${MODULES[@]}"; do |
78 |
+ ebegin "Compile testing ${dep}" |
79 |
+ perl -Mblib="${S}" -M"${dep} ()" -e1 |
80 |
+ eend $? || failed+=( "$dep" ) |
81 |
+ done |
82 |
+ if [[ ${failed[@]} ]]; then |
83 |
+ echo |
84 |
+ eerror "One or more modules failed compile:"; |
85 |
+ for dep in "${failed[@]}"; do |
86 |
+ eerror " ${dep}" |
87 |
+ done |
88 |
+ die "Failing due to module compilation errors"; |
89 |
+ fi |
90 |
+ if has "network" ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then |
91 |
+ perl-module_src_test |
92 |
+ else |
93 |
+ ewarn "Functional parts of these tests require network access" |
94 |
+ ewarn "For details, see:" |
95 |
+ ewarn "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/Bio-Das" |
96 |
+ fi |
97 |
+} |