From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B7CC11384B4 for ; Fri, 11 Dec 2015 21:05:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5ACA021C096; Fri, 11 Dec 2015 21:04:01 +0000 (UTC) Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8C61621C02A for ; Fri, 11 Dec 2015 21:03:57 +0000 (UTC) X-RZG-AUTH: :LWIAZ0WpaN8ZbZokUUbkjK1FlhWAPobRR6CE01MhpOKB+5jY/DVlPOa8rOHZrOuQs+JEAQ== X-RZG-CLASS-ID: mo00 Received: from pinacolada.akhuettel.de (88-133-183-17.hsi.glasfaser-ostbayern.de [88.133.183.17]) by smtp.strato.de (RZmta 37.14 AUTH) with ESMTPSA id L02fc5rBBL3tipp (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 11 Dec 2015 22:03:55 +0100 (CET) Received: by pinacolada.akhuettel.de (Postfix, from userid 1000) id 25BB430031A; Fri, 11 Dec 2015 22:03:55 +0100 (CET) From: dilfridge@gentoo.org To: gentoo-dev@lists.gentoo.org Cc: "Andreas K. Huettel (dilfridge)" Subject: [gentoo-dev] [PATCH 04/15] perl-module.eclass: Use default unpacking from EAPI=6 on Date: Fri, 11 Dec 2015 22:03:00 +0100 Message-Id: <1449867791-30513-4-git-send-email-dilfridge@gentoo.org> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1449867791-30513-1-git-send-email-dilfridge@gentoo.org> References: <201512112201.15354.dilfridge@gentoo.org> <1449867791-30513-1-git-send-email-dilfridge@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 02b82935-b8ad-4a9e-b0a9-50d93e9c3142 X-Archives-Hash: fddaebd5200076593d532a48c8690924 From: "Andreas K. Huettel (dilfridge)" --- eclass/perl-module.eclass | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 734de11..8caa981 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -15,9 +15,20 @@ # All exported functions from perl-functions.eclass (inherited here) # explicitly also belong to the interface of perl-module.eclass. -inherit eutils multiprocessing unpacker perl-functions +case "${EAPI:-0}" in + 5) + inherit eutils multiprocessing unpacker perl-functions + PERL_EXPF="src_unpack src_prepare src_configure src_compile src_test src_install" + ;; + 6) + inherit eutils multiprocessing perl-functions + PERL_EXPF="src_prepare src_configure src_compile src_test src_install" + ;; + *) + die "EAPI=${EAPI} is not supported by perl-module.eclass" + ;; +esac -PERL_EXPF="src_unpack src_prepare src_configure src_compile src_test src_install" case "${EAPI:-0}" in 5) @@ -116,7 +127,7 @@ pm_echovar="" # This function is to be called during the ebuild src_unpack() phase. perl-module_src_unpack() { debug-print-function $FUNCNAME "$@" - + [[ ${EAPI}==5 ]] || die "perl-module_src_unpack is banned in EAPI=6 or later" unpacker_src_unpack } -- 2.6.3