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
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
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
+}