summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-01-23 22:12:13 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-01-23 22:12:13 +0000
commit221d53f1f9a543a824993deb543d2c2436a1e8b2 (patch)
tree3a9f06b81d3b474066ed81480c980a63d0bb73cf /eclass/perl-module.eclass
parentbump to 0.5 (diff)
downloadgentoo-2-221d53f1f9a543a824993deb543d2c2436a1e8b2.tar.gz
gentoo-2-221d53f1f9a543a824993deb543d2c2436a1e8b2.tar.bz2
gentoo-2-221d53f1f9a543a824993deb543d2c2436a1e8b2.zip
Add MODULE_A_EXT for g-cpan ease of use where upstream has other file extensions. Add reminder to document the variables later.
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r--eclass/perl-module.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 361a6ae8558b..d573a020be8a 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.127 2011/01/12 15:44:24 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.128 2011/01/23 22:12:13 robbat2 Exp $
#
# Author: Seemant Kulleen <seemant@gentoo.org>
@@ -54,11 +54,14 @@ DESCRIPTION="Based on the $ECLASS eclass"
LICENSE="${LICENSE:-|| ( Artistic GPL-1 GPL-2 GPL-3 )}"
+# TODO: Document variables: MODULE_VERSION, MODULE_A, MODULE_A_EXT,
+# MODULE_AUTHOR, MODULE_SECTION, GENTOO_DEPEND_ON_PERL, PREFER_BUILDPL
if [[ -n ${MY_PN} || -n ${MY_PV} || -n ${MODULE_VERSION} ]] ; then
: ${MY_P:=${MY_PN:-${PN}}-${MY_PV:-${MODULE_VERSION:-${PV}}}}
S=${MY_S:-${WORKDIR}/${MY_P}}
fi
-[[ -z "${SRC_URI}" && -z "${MODULE_A}" ]] && MODULE_A="${MY_P:-${P}}.tar.gz"
+[[ -z "${SRC_URI}" && -z "${MODULE_A}" ]] && \
+ MODULE_A="${MY_P:-${P}}.${MODULE_A_EXT:-tar.gz}"
[[ -z "${SRC_URI}" && -n "${MODULE_AUTHOR}" ]] && \
SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MODULE_SECTION:+${MODULE_SECTION}/}${MODULE_A}"
[[ -z "${HOMEPAGE}" ]] && \