/[gentoo-x86]/eclass/perl-module.eclass
Gentoo

Diff of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.110 Revision 1.111
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.110 2007/10/17 08:01:12 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.111 2008/02/06 02:39:04 robbat2 Exp $
4# 4#
5# Author: Seemant Kulleen <seemant@gentoo.org> 5# Author: Seemant Kulleen <seemant@gentoo.org>
6# Maintained by the Perl herd <perl@gentoo.org> 6# Maintained by the Perl herd <perl@gentoo.org>
7# 7#
8# The perl-module eclass is designed to allow easier installation of perl 8# The perl-module eclass is designed to allow easier installation of perl
86# 86#
87# 2007.10.17 robbat2 87# 2007.10.17 robbat2
88# Added the 'MODULE_AUTHOR' variable. Set it before inheriting the eclass 88# Added the 'MODULE_AUTHOR' variable. Set it before inheriting the eclass
89# and it will set your HOMEPAGE and SRC_URI correctly for a CPAN package. 89# and it will set your HOMEPAGE and SRC_URI correctly for a CPAN package.
90 90
91if [ -z "${HOMEPAGE}" -a -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ]; then 91[ -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ] && \
92 HOMEPAGE="http://search.cpan.org/~${MODULE_AUTHOR//\/*}/"
93 SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${P}.tar.gz" 92 SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION}/${P}.tar.gz"
94fi 93[ -z "${HOMEPAGE}" ] && HOMEPAGE="http://search.cpan.org/search?query=${PN}&mode=dist"
95 94
96SRC_PREP="no" 95SRC_PREP="no"
97SRC_TEST="skip" 96SRC_TEST="skip"
98PREFER_BUILDPL="yes" 97PREFER_BUILDPL="yes"
99 98

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111

  ViewVC Help
Powered by ViewVC 1.1.20