dilfridge 14/09/27 20:54:42 Modified: ChangeLog perl-module.eclass Log: Deprecate EAPI=0,1,2,3 in perl-module.eclass with a big fat ewarn instead of making the ebuild fail
Revision Changes Path 1.1378 eclass/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1378&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1378&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1377&r2=1.1378 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v retrieving revision 1.1377 retrieving revision 1.1378 diff -u -r1.1377 -r1.1378 --- ChangeLog 27 Sep 2014 16:15:19 -0000 1.1377 +++ ChangeLog 27 Sep 2014 20:54:42 -0000 1.1378 @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1377 2014/09/27 16:15:19 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1378 2014/09/27 20:54:42 dilfridge Exp $ + + 27 Sep 2014; Andreas K. Huettel <dilfri...@gentoo.org> perl-module.eclass: + Deprecate EAPI=0,1,2,3 in perl-module.eclass with a big fat ewarn instead of + making the ebuild fail 27 Sep 2014; Pacho Ramos <pa...@gentoo.org> gnome-python-common-r1.eclass: Fix typo (#523856 by Kent Fredric) 1.141 eclass/perl-module.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.141&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.141&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?r1=1.140&r2=1.141 Index: perl-module.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v retrieving revision 1.140 retrieving revision 1.141 diff -u -r1.140 -r1.141 --- perl-module.eclass 19 Sep 2014 18:17:12 -0000 1.140 +++ perl-module.eclass 27 Sep 2014 20:54:42 -0000 1.141 @@ -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 @@ 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 @@ 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 }