summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2017-10-13 17:30:57 +1300
committerKent Fredric <kentnl@gentoo.org>2017-10-13 17:57:06 +1300
commit352b2996d7149d0dec9b16fb45002f6bbc01fef6 (patch)
tree767d2fb3910ab9f2f0be6d588d1c401f6fdd46a4 /dev-perl/Ace
parentvirtual/perl-Time-HiRes: stable 1.974.100-r1 for ppc, bug #630610 (diff)
downloadgentoo-352b2996d7149d0dec9b16fb45002f6bbc01fef6.tar.gz
gentoo-352b2996d7149d0dec9b16fb45002f6bbc01fef6.tar.bz2
gentoo-352b2996d7149d0dec9b16fb45002f6bbc01fef6.zip
dev-perl/Ace: Add tests & XS & RPC
- EAPI6ify - Add basic compile tests - Add missing dependencies discovered by tests - Build XS support - Build RPC support - Fence network tests better Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-perl/Ace')
-rw-r--r--dev-perl/Ace/Ace-1.920.0-r2.ebuild96
1 files changed, 96 insertions, 0 deletions
diff --git a/dev-perl/Ace/Ace-1.920.0-r2.ebuild b/dev-perl/Ace/Ace-1.920.0-r2.ebuild
new file mode 100644
index 000000000000..d08d72d1c779
--- /dev/null
+++ b/dev-perl/Ace/Ace-1.920.0-r2.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_NAME=AcePerl
+DIST_AUTHOR=LDS
+DIST_VERSION=1.92
+DIST_EXAMPLES=("examples/*")
+inherit perl-module
+
+DESCRIPTION="Object-Oriented Access to ACEDB Databases"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="virtual/perl-Digest-MD5
+ dev-perl/Cache-Cache
+ dev-perl/GD
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i 's/", "1")/", "3")/' "${S}/Makefile.PL" || die "Can't patch config"
+ perl-module_src_prepare
+}
+src_test() {
+ local MODULES=(
+ "Ace ${DIST_VERSION}"
+ "Ace::Freesubs 1.00"
+ "Ace::Graphics::Fk" # NO VERSION
+ "Ace::Graphics::Glyph"
+ "Ace::Graphics::Glyph::anchored_arrow"
+ "Ace::Graphics::Glyph::arrow"
+ "Ace::Graphics::Glyph::box"
+ "Ace::Graphics::Glyph::crossbox"
+ "Ace::Graphics::Glyph::dot"
+ "Ace::Graphics::Glyph::ex"
+ "Ace::Graphics::Glyph::graded_segments"
+ "Ace::Graphics::Glyph::group"
+ "Ace::Graphics::Glyph::line"
+ "Ace::Graphics::Glyph::primers"
+ "Ace::Graphics::Glyph::segments"
+ "Ace::Graphics::Glyph::span"
+ "Ace::Graphics::Glyph::toomany"
+ "Ace::Graphics::Glyph::transcript"
+ "Ace::Graphics::Glyph::triangle"
+ "Ace::Graphics::GlyphFactory"
+ "Ace::Graphics::Panel"
+ "Ace::Graphics::Track"
+ "Ace::Iterator 1.51"
+ "Ace::Local 1.05"
+ "Ace::Model 1.51"
+ "Ace::Object 1.66"
+ "Ace::Object::Wormbase"
+ "Ace::RPC 1.00"
+ "Ace::Sequence 1.51"
+ "Ace::Sequence::Feature"
+ "Ace::Sequence::FeatureList"
+ "Ace::Sequence::GappedAlignment 1.20"
+ "Ace::Sequence::Gene"
+ "Ace::Sequence::Homol"
+ "Ace::Sequence::Multi"
+ "Ace::Sequence::Transcript"
+ "Ace::SocketServer 1.01"
+ "GFF::Filehandle"
+# Need Ace::Browser
+# "Ace::Browser::AceSubs ${DIST_VERSION}"
+# "Ace::Browser::GeneSubs ${DIST_VERSION}"
+# "Ace::Browser::SearchSubs ${DIST_VERSION}"
+# "Ace::Browser::SiteDefs ${DIST_VERSION}"
+# "Ace::Browser::TreeSubs ${DIST_VERSION}"
+ )
+ local failed=()
+ for dep in "${MODULES[@]}"; do
+ ebegin "Compile testing ${dep}"
+ perl -Mblib="${S}" -M"${dep} ()" -e1
+ eend $? || failed+=( "$dep" )
+ done
+ if [[ ${failed[@]} ]]; then
+ echo
+ eerror "One or more modules failed compile:";
+ for dep in "${failed[@]}"; do
+ eerror " ${dep}"
+ done
+ die "Failing due to module compilation errors";
+ fi
+ if ! has "network" "${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}"; then
+ ewarn "This package needs network access to run its full test suite"
+ ewarn "For details, see:"
+ ewarn "https://wiki.gentoo.org/wiki/Project:Perl/maint-nodes/dev-perl/Ace"
+ else
+ perl-module_src_test
+ fi
+}