diff options
author | Kent Fredric <kentnl@gentoo.org> | 2017-05-22 01:44:29 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2017-05-22 03:05:00 +1200 |
commit | 50d3d23d9c063541f9adce95d4dc7d3e3a4c7042 (patch) | |
tree | c08c745f466ec2e3ae192ab00b0227c25caf842a /dev-lang | |
parent | dev-lang/perl: Fix subslot/MY_PV computation from DIST_VERSION (diff) | |
download | gentoo-50d3d23d9c063541f9adce95d4dc7d3e3a4c7042.tar.gz gentoo-50d3d23d9c063541f9adce95d4dc7d3e3a4c7042.tar.bz2 gentoo-50d3d23d9c063541f9adce95d4dc7d3e3a4c7042.zip |
dev-lang/perl: Commonize SHORT_PV/MY_P/MY_PV calculation
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/perl/perl-5.26.9999.ebuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/dev-lang/perl/perl-5.26.9999.ebuild b/dev-lang/perl/perl-5.26.9999.ebuild index 5162f5484709..58540d5d313e 100644 --- a/dev-lang/perl/perl-5.26.9999.ebuild +++ b/dev-lang/perl/perl-5.26.9999.ebuild @@ -19,18 +19,19 @@ PERL_BIN_OLDVERSEN="" PERL_OLDVERSEN="5.26.0-RC1 5.25.12 5.25.11 5.24.2 5.24.1 5.24.0 5.22.3 5.22.2 5.22.1 5.22.0" if [[ "${PV##*.}" == "9999" ]]; then DIST_VERSION=5.26.0-RC1 - SHORT_PV="${DIST_VERSION%.*}" # Devel Releases are not ABI-intercompatible + # remove only trailing RC SUBSLOT="${DIST_VERSION%-RC*}" - MY_P="perl-${DIST_VERSION/_rc/-RC}" - MY_PV="${DIST_VERSION%-RC*}" else + DIST_VERSION="${PV/_rc/-RC}" # First 2 digits only - SHORT_PV="${PV%.*}" - SUBSLOT="${SHORT_PV}" - MY_P="perl-${PV/_rc/-RC}" - MY_PV="${PV%_rc*}" + SUBSLOT="${DIST_VERSION%.*}" fi +SHORT_PV="${DIST_VERSION%.*}" +# Used only in tar paths +MY_P="perl-${DIST_VERSION}" +# Used in library paths +MY_PV="${DIST_VERSION%-RC*}" DESCRIPTION="Larry Wall's Practical Extraction and Report Language" |