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: | Wed, 06 Feb 2008 02:39:08 |
Message-Id: | E1JMaBk-0002Zq-Ps@stork.gentoo.org |
1 | robbat2 08/02/06 02:39:04 |
2 | |
3 | Modified: perl-module.eclass |
4 | Log: |
5 | Improve the automatic HOMEPAGE/SRC_URI code that is powered by MODULE_AUTHOR. New variable MODULE_SECTION for some prolific authors, and also use the CPAN search as the homepage rather than the MODULE_AUTHOR page. |
6 | |
7 | Revision Changes Path |
8 | 1.111 eclass/perl-module.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module.eclass?rev=1.111&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module.eclass?rev=1.111&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module.eclass?r1=1.110&r2=1.111 |
13 | |
14 | Index: perl-module.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v |
17 | retrieving revision 1.110 |
18 | retrieving revision 1.111 |
19 | diff -p -w -b -B -u -u -r1.110 -r1.111 |
20 | --- perl-module.eclass 17 Oct 2007 08:01:12 -0000 1.110 |
21 | +++ perl-module.eclass 6 Feb 2008 02:39:04 -0000 1.111 |
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.110 2007/10/17 08:01:12 robbat2 Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.111 2008/02/06 02:39:04 robbat2 Exp $ |
27 | # |
28 | # Author: Seemant Kulleen <seemant@g.o> |
29 | # Maintained by the Perl herd <perl@g.o> |
30 | @@ -88,10 +88,9 @@ EXPORT_FUNCTIONS pkg_setup pkg_preinst p |
31 | # Added the 'MODULE_AUTHOR' variable. Set it before inheriting the eclass |
32 | # and it will set your HOMEPAGE and SRC_URI correctly for a CPAN package. |
33 | |
34 | -if [ -z "${HOMEPAGE}" -a -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ]; then |
35 | - HOMEPAGE="http://search.cpan.org/~${MODULE_AUTHOR//\/*}/" |
36 | - SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${P}.tar.gz" |
37 | -fi |
38 | +[ -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ] && \ |
39 | + SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION}/${P}.tar.gz" |
40 | +[ -z "${HOMEPAGE}" ] && HOMEPAGE="http://search.cpan.org/search?query=${PN}&mode=dist" |
41 | |
42 | SRC_PREP="no" |
43 | SRC_TEST="skip" |
44 | |
45 | |
46 | |
47 | -- |
48 | gentoo-commits@l.g.o mailing list |