summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentfredric@gmail.com>2015-06-21 12:24:35 +1200
committerKent Fredric <kentfredric@gmail.com>2015-06-21 12:24:35 +1200
commit4789b645559d63cf8ec771d76cd66f9fd7937db0 (patch)
tree86fb555979246153a9519f14277658d6ba60a11d /eclass/perl-module.eclass
parent[eclass] Add perl-version.eclass which can turn normalised forms into floats (diff)
downloadperl-overlay-4789b645559d63cf8ec771d76cd66f9fd7937db0.tar.gz
perl-overlay-4789b645559d63cf8ec771d76cd66f9fd7937db0.tar.bz2
perl-overlay-4789b645559d63cf8ec771d76cd66f9fd7937db0.zip
[eclass] perl-module.eclass can now guess MODULE_VERSION from PV using perl-version-denormalize + MODULE_VERSION_SCHEME
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 f714e13cd..3c7702c57 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -38,6 +38,11 @@ yes)
;;
esac
+if [[ -z "${MODULE_VERSION}" && -n "${MODULE_VERSION_SCHEME}" ]]; then
+ inherit perl-version
+ MODULE_VERSION=$( perl-version-denormalize ${MY_PV:-${PV}} $MODULE_VERSION_SCHEME )
+fi
+
case "${PERL_EXPORT_PHASE_FUNCTIONS:-yes}" in
yes)
EXPORT_FUNCTIONS ${PERL_EXPF}