dev-lang/perl: Ensure PATCH_BASE is common between -9999 and not
authorKent Fredric <kentnl@gentoo.org>
Sun, 21 May 2017 13:24:16 +0000 (01:24 +1200)
committerKent Fredric <kentnl@gentoo.org>
Sun, 21 May 2017 15:04:58 +0000 (03:04 +1200)
This is because we don't need to update the patches as often as perl
updates, because the patch set tends to be portable across versions.

This prevents us from needing a new patch tarball simply because we
changed version.

Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-lang/perl/perl-5.26.9999.ebuild

index c2fddc553e74bf23d5ce0269532b7025bd945077..908abf6dd82517d8201d6b5848630c90e7e7d09a 100644 (file)
@@ -7,6 +7,7 @@ inherit eutils alternatives flag-o-matic toolchain-funcs multilib multiprocessin
 
 PATCH_VER=1
 CROSS_VER=1.1.4
+PATCH_BASE="perl-5.25.11-patches-${PATCH_VER}"
 
 DIST_AUTHOR=XSAWYERX
 
@@ -21,14 +22,12 @@ if [[ "${PV##*.}" == "9999" ]]; then
        # Devel Releases are not ABI-intercompatible
        SUBSLOT="${DIST_VERSION}"
        MY_P="perl-${DIST_VERSION/_rc/-RC}"
-       PATCH_BASE="perl-5.25.11-patches-${PATCH_VER}"
        MY_PV="${DIST_VERSION%_rc*}"
 else
        # First 2 digits only
        SHORT_PV="${PV%.*}"
        SUBSLOT="${SHORT_PV}"
        MY_P="perl-${PV/_rc/-RC}"
-       PATCH_BASE="${MY_P}-patches-${PATCH_VER}"
        MY_PV="${PV%_rc*}"
 fi