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: Sun, 23 Jan 2011 22:12:24
Message-Id: 20110123221214.019ED20054@flycatcher.gentoo.org
1 robbat2 11/01/23 22:12:13
2
3 Modified: perl-module.eclass
4 Log:
5 Add MODULE_A_EXT for g-cpan ease of use where upstream has other file extensions. Add reminder to document the variables later.
6
7 Revision Changes Path
8 1.128 eclass/perl-module.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.128&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?rev=1.128&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/perl-module.eclass?r1=1.127&r2=1.128
13
14 Index: perl-module.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v
17 retrieving revision 1.127
18 retrieving revision 1.128
19 diff -p -w -b -B -u -u -r1.127 -r1.128
20 --- perl-module.eclass 12 Jan 2011 15:44:24 -0000 1.127
21 +++ perl-module.eclass 23 Jan 2011 22:12:13 -0000 1.128
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2009 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.127 2011/01/12 15:44:24 tove Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.128 2011/01/23 22:12:13 robbat2 Exp $
27 #
28 # Author: Seemant Kulleen <seemant@g.o>
29
30 @@ -54,11 +54,14 @@ DESCRIPTION="Based on the $ECLASS eclass
31
32 LICENSE="${LICENSE:-|| ( Artistic GPL-1 GPL-2 GPL-3 )}"
33
34 +# TODO: Document variables: MODULE_VERSION, MODULE_A, MODULE_A_EXT,
35 +# MODULE_AUTHOR, MODULE_SECTION, GENTOO_DEPEND_ON_PERL, PREFER_BUILDPL
36 if [[ -n ${MY_PN} || -n ${MY_PV} || -n ${MODULE_VERSION} ]] ; then
37 : ${MY_P:=${MY_PN:-${PN}}-${MY_PV:-${MODULE_VERSION:-${PV}}}}
38 S=${MY_S:-${WORKDIR}/${MY_P}}
39 fi
40 -[[ -z "${SRC_URI}" && -z "${MODULE_A}" ]] && MODULE_A="${MY_P:-${P}}.tar.gz"
41 +[[ -z "${SRC_URI}" && -z "${MODULE_A}" ]] && \
42 + MODULE_A="${MY_P:-${P}}.${MODULE_A_EXT:-tar.gz}"
43 [[ -z "${SRC_URI}" && -n "${MODULE_AUTHOR}" ]] && \
44 SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION:+${MODULE_SECTION}/}${MODULE_A}"
45 [[ -z "${HOMEPAGE}" ]] && \