1 |
commit: 3f891881099584e9f4abaddc4765ba127d54cd4a |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 15 05:34:26 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 15 05:34:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f891881 |
7 |
|
8 |
dev-perl/Bio-Das: Fix tests w/o CGI-pm |
9 |
|
10 |
- Fence optional deps for CGI.pm |
11 |
- Add USE="examples" |
12 |
|
13 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
14 |
|
15 |
dev-perl/Bio-Das/Bio-Das-1.170.0-r2.ebuild | 22 +++++++++++++++++++++- |
16 |
1 file changed, 21 insertions(+), 1 deletion(-) |
17 |
|
18 |
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 |
19 |
index 9637c477fa2..fbd25fa1e00 100644 |
20 |
--- a/dev-perl/Bio-Das/Bio-Das-1.170.0-r2.ebuild |
21 |
+++ b/dev-perl/Bio-Das/Bio-Das-1.170.0-r2.ebuild |
22 |
@@ -5,6 +5,7 @@ EAPI=6 |
23 |
|
24 |
DIST_AUTHOR=LDS |
25 |
DIST_VERSION=1.17 |
26 |
+DIST_EXAMPLES=("eg/*") |
27 |
inherit perl-module |
28 |
|
29 |
DESCRIPTION="Interface to Distributed Annotation System" |
30 |
@@ -20,11 +21,27 @@ DEPEND=">=virtual/perl-IO-Compress-1.0 |
31 |
>=virtual/perl-MIME-Base64-2.12" |
32 |
RDEPEND="${DEPEND}" |
33 |
|
34 |
+optdep_notice() { |
35 |
+ local i |
36 |
+ elog "This package has several modules which may require additional dependencies" |
37 |
+ elog "to use. However, it is up to you to install them separately if you need this" |
38 |
+ elog "optional functionality:" |
39 |
+ elog |
40 |
+ i="$(if has_version 'dev-perl/CGI'; then echo '[I]'; else echo '[ ]'; fi)" |
41 |
+ elog " $i dev-perl/CGI" |
42 |
+ elog " - Running a reference DAS server driven by an AGP File via" |
43 |
+ elog " Bio::Das::AGPServer::Daemon" |
44 |
+ |
45 |
+ if use test; then |
46 |
+ elog |
47 |
+ elog "This module will perform additional tests if these dependencies are" |
48 |
+ elog "pre-installed" |
49 |
+ fi |
50 |
+} |
51 |
src_test() { |
52 |
local MODULES=( |
53 |
"Bio::Das ${DIST_VERSION}" |
54 |
"Bio::Das::AGPServer::Config 1.0" |
55 |
- "Bio::Das::AGPServer::Daemon" |
56 |
"Bio::Das::AGPServer::Parser" |
57 |
"Bio::Das::AGPServer::SQLStorage" |
58 |
"Bio::Das::AGPServer::SQLStorage::CSV::DB" |
59 |
@@ -49,6 +66,9 @@ src_test() { |
60 |
"Bio::Das::TypeHandler" |
61 |
"Bio::Das::Util 0.01" |
62 |
) |
63 |
+ has_version dev-perl/CGI && MODULES+=( |
64 |
+ "Bio::Das::AGPServer::Daemon" |
65 |
+ ) |
66 |
local failed=() |
67 |
for dep in "${MODULES[@]}"; do |
68 |
ebegin "Compile testing ${dep}" |