Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog perl-module.eclass
Date: Sat, 27 Sep 2014 20:54:47
Message-Id: 20140927205442.E36F46711@oystercatcher.gentoo.org
1 dilfridge 14/09/27 20:54:42
2
3 Modified: ChangeLog perl-module.eclass
4 Log:
5 Deprecate EAPI=0,1,2,3 in perl-module.eclass with a big fat ewarn instead of making the ebuild fail
6
7 Revision Changes Path
8 1.1378 eclass/ChangeLog
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1378&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1378&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1377&r2=1.1378
13
14 Index: ChangeLog
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
17 retrieving revision 1.1377
18 retrieving revision 1.1378
19 diff -u -r1.1377 -r1.1378
20 --- ChangeLog 27 Sep 2014 16:15:19 -0000 1.1377
21 +++ ChangeLog 27 Sep 2014 20:54:42 -0000 1.1378
22 @@ -1,6 +1,10 @@
23 # ChangeLog for eclass directory
24 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1377 2014/09/27 16:15:19 pacho Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1378 2014/09/27 20:54:42 dilfridge Exp $
27 +
28 + 27 Sep 2014; Andreas K. Huettel <dilfridge@g.o> perl-module.eclass:
29 + Deprecate EAPI=0,1,2,3 in perl-module.eclass with a big fat ewarn instead of
30 + making the ebuild fail
31
32 27 Sep 2014; Pacho Ramos <pacho@g.o> gnome-python-common-r1.eclass:
33 Fix typo (#523856 by Kent Fredric)
34
35
36
37 1.141 eclass/perl-module.eclass
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.141&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.141&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?r1=1.140&r2=1.141
42
43 Index: perl-module.eclass
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v
46 retrieving revision 1.140
47 retrieving revision 1.141
48 diff -u -r1.140 -r1.141
49 --- perl-module.eclass 19 Sep 2014 18:17:12 -0000 1.140
50 +++ perl-module.eclass 27 Sep 2014 20:54:42 -0000 1.141
51 @@ -1,6 +1,6 @@
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 -# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.140 2014/09/19 18:17:12 dilfridge Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.141 2014/09/27 20:54:42 dilfridge Exp $
56
57 # @ECLASS: perl-module.eclass
58 # @MAINTAINER:
59 @@ -18,10 +18,10 @@
60 PERL_EXPF="src_unpack src_compile src_test src_install"
61
62 case "${EAPI:-0}" in
63 - 0)
64 + 0|1)
65 PERL_EXPF+=" pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm"
66 ;;
67 - 4|5)
68 + 2|3|4|5)
69 PERL_EXPF+=" src_prepare src_configure"
70 [[ ${CATEGORY} == "perl-core" ]] && \
71 PERL_EXPF+=" pkg_postinst pkg_postrm"
72 @@ -87,6 +87,20 @@
73
74 perl-module_src_unpack() {
75 debug-print-function $FUNCNAME "$@"
76 +
77 + case "${EAPI:-0}" in
78 + 4|5)
79 + ;;
80 + *)
81 + ewarn
82 + ewarn "******************************************************************"
83 + ewarn "Support for EAPI=${EAPI:-0} in perl-module.eclass will be removed"
84 + ewarn "on 1/Nov/2014. Please fix your overlay ebuilds to use EAPI=5."
85 + ewarn "******************************************************************"
86 + ewarn
87 + ;;
88 + esac
89 +
90 unpacker_src_unpack
91 has src_prepare ${PERL_EXPF} || perl-module_src_prepare
92 }