/[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.111 Revision 1.112
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.111 2008/02/06 02:39:04 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.112 2008/09/30 08:28:44 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
85# Added ${myconf} - bug #176818 85# Added ${myconf} - bug #176818
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#
91# 2008.09.30 robbat2
92# MODULE_A enables variations other than .tar.gz easily. Also Use MY_P if set
93# for MODULE_A and MY_PN in HOMEPAGE, as suggested by tove.
90 94
95[ -z "${SRC_URI}" -a -z "${MODULE_A}" ] && MODULE_A="${MY_P:-${P}}.tar.gz"
91[ -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ] && \ 96[ -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ] && \
92 SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION}/${P}.tar.gz" 97 SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION}/${MODULE_A}"
98[ -z "${HOMEPAGE}" ] && \
93[ -z "${HOMEPAGE}" ] && HOMEPAGE="http://search.cpan.org/search?query=${PN}&mode=dist" 99 HOMEPAGE="http://search.cpan.org/search?query=${MY_PN:-${PN}}&mode=dist"
94 100
95SRC_PREP="no" 101SRC_PREP="no"
96SRC_TEST="skip" 102SRC_TEST="skip"
97PREFER_BUILDPL="yes" 103PREFER_BUILDPL="yes"
98 104

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

  ViewVC Help
Powered by ViewVC 1.1.20