summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2014-09-27 20:54:42 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2014-09-27 20:54:42 +0000
commitadf1540484dc2f309f788b7d3d93b3b158335f98 (patch)
treec786d9e5cdd458228c1a90b5a57a0e1b62a6d70d /eclass/perl-module.eclass
parentExported control knob for transformers depend. (diff)
downloadgentoo-2-adf1540484dc2f309f788b7d3d93b3b158335f98.tar.gz
gentoo-2-adf1540484dc2f309f788b7d3d93b3b158335f98.tar.bz2
gentoo-2-adf1540484dc2f309f788b7d3d93b3b158335f98.zip
Deprecate EAPI=0,1,2,3 in perl-module.eclass with a big fat ewarn instead of making the ebuild fail
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r--eclass/perl-module.eclass20
1 files changed, 17 insertions, 3 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index c826e3de3ba6..5b9e45381464 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.140 2014/09/19 18:17:12 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.141 2014/09/27 20:54:42 dilfridge Exp $
# @ECLASS: perl-module.eclass
# @MAINTAINER:
@@ -18,10 +18,10 @@ inherit eutils multiprocessing unpacker
PERL_EXPF="src_unpack src_compile src_test src_install"
case "${EAPI:-0}" in
- 0)
+ 0|1)
PERL_EXPF+=" pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm"
;;
- 4|5)
+ 2|3|4|5)
PERL_EXPF+=" src_prepare src_configure"
[[ ${CATEGORY} == "perl-core" ]] && \
PERL_EXPF+=" pkg_postinst pkg_postrm"
@@ -87,6 +87,20 @@ perlinfo_done=false
perl-module_src_unpack() {
debug-print-function $FUNCNAME "$@"
+
+ case "${EAPI:-0}" in
+ 4|5)
+ ;;
+ *)
+ ewarn
+ ewarn "******************************************************************"
+ ewarn "Support for EAPI=${EAPI:-0} in perl-module.eclass will be removed"
+ ewarn "on 1/Nov/2014. Please fix your overlay ebuilds to use EAPI=5."
+ ewarn "******************************************************************"
+ ewarn
+ ;;
+ esac
+
unpacker_src_unpack
has src_prepare ${PERL_EXPF} || perl-module_src_prepare
}