From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EF1511396D9 for ; Sun, 15 Oct 2017 23:56:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E9332BC00A; Sun, 15 Oct 2017 23:56:16 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EFA392BC00A for ; Sun, 15 Oct 2017 23:56:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3E50333BE68 for ; Sun, 15 Oct 2017 23:56:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CCAF9317 for ; Sun, 15 Oct 2017 23:56:11 +0000 (UTC) From: "Kent Fredric" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kent Fredric" Message-ID: <1508111755.0d52ae38a34300eb38c5f7e0d789f4c2640ed47f.kentnl@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/CDDB/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/CDDB/CDDB-1.222.0-r2.ebuild X-VCS-Directories: dev-perl/CDDB/ X-VCS-Committer: kentnl X-VCS-Committer-Name: Kent Fredric X-VCS-Revision: 0d52ae38a34300eb38c5f7e0d789f4c2640ed47f X-VCS-Branch: master Date: Sun, 15 Oct 2017 23:56:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 554bb858-9828-42c6-bb24-4ca3be8a28fd X-Archives-Hash: a18f494cff5d6421ab33e41c90157d14 commit: 0d52ae38a34300eb38c5f7e0d789f4c2640ed47f Author: Kent Fredric gentoo org> AuthorDate: Sun Oct 15 23:53:50 2017 +0000 Commit: Kent Fredric gentoo org> CommitDate: Sun Oct 15 23:55:55 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d52ae38 dev-perl/CDDB: EAPI6 / Testing overhaul - EAPI6 - Add lots of missing deps - Add basic test capacity which doesn't require network IO - Document/advertise Network IO - Advertise optional dependencies Package-Manager: Portage-2.3.8, Repoman-2.3.3 dev-perl/CDDB/CDDB-1.222.0-r2.ebuild | 84 ++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/dev-perl/CDDB/CDDB-1.222.0-r2.ebuild b/dev-perl/CDDB/CDDB-1.222.0-r2.ebuild new file mode 100644 index 00000000000..b39c4d8b858 --- /dev/null +++ b/dev-perl/CDDB/CDDB-1.222.0-r2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=RCAPUTO +DIST_VERSION=1.222 +DIST_EXAMPLES=( "eg/*" ) +inherit perl-module + +DESCRIPTION="high-level interface to cddb/freedb protocol" + +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="test" + +RDEPEND=" + >=virtual/perl-Carp-1.260.0 + >=virtual/perl-Encode-2.510.0 + >=virtual/perl-IO-1.310.0 + >=virtual/perl-MIME-Base64-3.130.0 +" +DEPEND=" + >=virtual/perl-ExtUtils-MakeMaker-6.300.0 + test? ( + $RDEPEND + >=virtual/perl-Scalar-List-Utils-1.290.0 + >=virtual/perl-Test-Simple-0.980.0 + ) +" +optdep_installed() { + local chr=" " + has_version "${1}" && chr="I" + printf '[%s] %s\n' "${chr}" "${1}"; +} + +optdep_notice() { + elog "This package has support for optional features via the following packages" + elog "which you may want to install seperately:" + elog + elog " - Support for submitting disc changes via email:" + elog " $(optdep_installed ">=dev-perl/MailTools-2.40.0")" + elog " $(optdep_installed ">=virtual/perl-MIME-Base64-3.130.0")" + if use test; then + elog + elog "Additional tests may be performed automatically if the above packages" + elog "are pre-installed." + fi +} + +pkg_postinst() { + use test || optdep_notice +} + +src_test() { + optdep_notice + local MODULES=( + # https://rt.cpan.org/Ticket/Display.html?id=123290 + "CDDB 1.220" + ) + 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 + perl_rm_files t/release-pod-coverage.t t/release-pod-syntax.t t/000-report-versions.t + perl-module_src_test + else + ewarn "This package needs network access to run functional tests." + ewarn "For details, see:" + ewarn "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/CDDB" + fi +}