dev-java/openjdk-bin: Change versioning scheme to use patch version
authorJames Le Cuirot <chewi@gentoo.org>
Fri, 19 Oct 2018 12:17:21 +0000 (13:17 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Fri, 19 Oct 2018 12:17:21 +0000 (13:17 +0100)
I realised the next version would be something like 11.0.1+13, which
would be a downgrade. Sorry for the churn, folks. It was only up there
briefly.

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-java/openjdk-bin/openjdk-bin-11_p28.ebuild [moved from dev-java/openjdk-bin/openjdk-bin-11.28.ebuild with 97% similarity]

similarity index 97%
rename from dev-java/openjdk-bin/openjdk-bin-11.28.ebuild
rename to dev-java/openjdk-bin/openjdk-bin-11_p28.ebuild
index 8e5764d5a3165a2158852d80be308ef36106c73b..bb324e59cec07e0312f4c84729b36760e71e3e82 100644 (file)
@@ -7,12 +7,12 @@ inherit java-vm-2
 
 abi_uri() {
        echo "${2-$1}? (
-                       https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}-jdk_${1}_linux_hotspot_${PV//./_}.tar.gz
+                       https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}-jdk_${1}_linux_hotspot_${MY_PV//[.+]/_}.tar.gz
                )"
 }
 
-SLOT=${PV%%.*}
-MY_PV=${PV/./+}
+MY_PV=${PV/_p/+}
+SLOT=${MY_PV%%[.+]*}
 
 SRC_URI="
        $(abi_uri x64 amd64)