Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: perl-module.eclass
Date: Tue, 30 Sep 2008 08:28:48
Message-Id: E1Kkab7-00081U-6r@stork.gentoo.org
1 robbat2 08/09/30 08:28:45
2
3 Modified: perl-module.eclass
4 Log:
5 Add a little bit more magic into perl-module. Now has direct support for MY_P/MY_PN/MODULE_A to help simplify the ebuilds.
6
7 Revision Changes Path
8 1.112 eclass/perl-module.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module.eclass?rev=1.112&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module.eclass?rev=1.112&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module.eclass?r1=1.111&r2=1.112
13
14 Index: perl-module.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v
17 retrieving revision 1.111
18 retrieving revision 1.112
19 diff -p -w -b -B -u -u -r1.111 -r1.112
20 --- perl-module.eclass 6 Feb 2008 02:39:04 -0000 1.111
21 +++ perl-module.eclass 30 Sep 2008 08:28:44 -0000 1.112
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.111 2008/02/06 02:39:04 robbat2 Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.112 2008/09/30 08:28:44 robbat2 Exp $
27 #
28 # Author: Seemant Kulleen <seemant@g.o>
29 # Maintained by the Perl herd <perl@g.o>
30 @@ -87,10 +87,16 @@ EXPORT_FUNCTIONS pkg_setup pkg_preinst p
31 # 2007.10.17 robbat2
32 # Added the 'MODULE_AUTHOR' variable. Set it before inheriting the eclass
33 # and it will set your HOMEPAGE and SRC_URI correctly for a CPAN package.
34 +#
35 +# 2008.09.30 robbat2
36 +# MODULE_A enables variations other than .tar.gz easily. Also Use MY_P if set
37 +# for MODULE_A and MY_PN in HOMEPAGE, as suggested by tove.
38
39 +[ -z "${SRC_URI}" -a -z "${MODULE_A}" ] && MODULE_A="${MY_P:-${P}}.tar.gz"
40 [ -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ] && \
41 - SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION}/${P}.tar.gz"
42 -[ -z "${HOMEPAGE}" ] && HOMEPAGE="http://search.cpan.org/search?query=${PN}&mode=dist"
43 + SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION}/${MODULE_A}"
44 +[ -z "${HOMEPAGE}" ] && \
45 + HOMEPAGE="http://search.cpan.org/search?query=${MY_PN:-${PN}}&mode=dist"
46
47 SRC_PREP="no"
48 SRC_TEST="skip"