From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JMaBn-0008OI-Jd for garchives@archives.gentoo.org; Wed, 06 Feb 2008 02:39:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE6F5E0431; Wed, 6 Feb 2008 02:39:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8C10EE0431 for ; Wed, 6 Feb 2008 02:39:06 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id E27B36597F for ; Wed, 6 Feb 2008 02:39:05 +0000 (UTC) Received: from robbat2 by stork.gentoo.org with local (Exim 4.68) (envelope-from ) id 1JMaBk-0002Zq-Ps for gentoo-commits@lists.gentoo.org; Wed, 06 Feb 2008 02:39:04 +0000 From: "Robin H. Johnson (robbat2)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, robbat2@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: perl-module.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: perl-module.eclass X-VCS-Directories: eclass X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson Content-Type: text/plain; charset=utf8 Message-Id: Sender: "Robin H. Johnson" Date: Wed, 06 Feb 2008 02:39:04 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b7f873f2-f9d9-4682-9287-07343b07de11 X-Archives-Hash: 33a0a0595756b7f45395340e5af0059c robbat2 08/02/06 02:39:04 Modified: perl-module.eclass Log: Improve the automatic HOMEPAGE/SRC_URI code that is powered by MODULE_A= UTHOR. New variable MODULE_SECTION for some prolific authors, and also us= e the CPAN search as the homepage rather than the MODULE_AUTHOR page. Revision Changes Path 1.111 eclass/perl-module.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module= .eclass?rev=3D1.111&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module= .eclass?rev=3D1.111&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/perl-module= .eclass?r1=3D1.110&r2=3D1.111 Index: perl-module.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v retrieving revision 1.110 retrieving revision 1.111 diff -p -w -b -B -u -u -r1.110 -r1.111 --- perl-module.eclass 17 Oct 2007 08:01:12 -0000 1.110 +++ perl-module.eclass 6 Feb 2008 02:39:04 -0000 1.111 @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.110 200= 7/10/17 08:01:12 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.111 200= 8/02/06 02:39:04 robbat2 Exp $ # # Author: Seemant Kulleen # Maintained by the Perl herd @@ -88,10 +88,9 @@ EXPORT_FUNCTIONS pkg_setup pkg_preinst p # Added the 'MODULE_AUTHOR' variable. Set it before inheriting the eclas= s # and it will set your HOMEPAGE and SRC_URI correctly for a CPAN package= . =20 -if [ -z "${HOMEPAGE}" -a -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ]; the= n - HOMEPAGE=3D"http://search.cpan.org/~${MODULE_AUTHOR//\/*}/" - SRC_URI=3D"mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHO= R:0:2}/${MODULE_AUTHOR}/${P}.tar.gz" -fi +[ -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ] && \ + SRC_URI=3D"mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHO= R:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION}/${P}.tar.gz" +[ -z "${HOMEPAGE}" ] && HOMEPAGE=3D"http://search.cpan.org/search?query=3D= ${PN}&mode=3Ddist" =20 SRC_PREP=3D"no" SRC_TEST=3D"skip" --=20 gentoo-commits@lists.gentoo.org mailing list