summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentfredric@gmail.com>2011-01-22 17:12:27 +1300
committerKent Fredric <kentfredric@gmail.com>2011-01-22 17:26:24 +1300
commit8ff3c88e8596cf0cf6a1513a7492927dae209ae8 (patch)
tree235eed3cf9fe9fb5df20eafe5cfcb3cb1e8e6b28 /eclass/perl-module.eclass
parent[import,fix] Net-Amazon-S3 from ::gentoo with ||Moose/CMOP fix (diff)
downloadperl-overlay-8ff3c88e8596cf0cf6a1513a7492927dae209ae8.tar.gz
perl-overlay-8ff3c88e8596cf0cf6a1513a7492927dae209ae8.tar.bz2
perl-overlay-8ff3c88e8596cf0cf6a1513a7492927dae209ae8.zip
Add a MODULE_DZIL_TRIAL flag to tweak S= to work with Dist-Zilla produced -TRIAL packages
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r--eclass/perl-module.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 1deab36d8..17a0af2d0 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -58,6 +58,11 @@ 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
+
+if [[ -n ${MODULE_DZIL_TRIAL} ]] ; then
+ S="${S%-TRIAL}";
+fi
+
[[ -z "${SRC_URI}" && -z "${MODULE_A}" ]] && MODULE_A="${MY_P:-${P}}.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}"