media-libs/vulkan-loader: Update versioning scheme
authorPeter Levine <plevine457@gmail.com>
Mon, 21 Oct 2019 00:47:09 +0000 (20:47 -0400)
committerNick Sarnie <sarnex@gentoo.org>
Mon, 21 Oct 2019 22:48:18 +0000 (18:48 -0400)
Allow the live ebuild to be used as a template for all the others.
If SNAPSHOT_COMMIT is defined, it is used for a snapshot build.
Otherwise, PV is used for a standard release build.

Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Peter Levine <plevine457@gmail.com>
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
media-libs/vulkan-loader/vulkan-loader-9999.ebuild

index 6cb83e24e2299cf5979396ac20f2fd75ac35a0cb..29452cd21b5962dd42a0aa37e79b8f73e7810759 100644 (file)
@@ -9,10 +9,16 @@ if [[ "${PV}" == "9999" ]]; then
        EGIT_SUBMODULES=()
        inherit git-r3
 else
+       if [[ -z ${SNAPSHOT_COMMIT} ]]; then
+               MY_PV=v${PV}
+               MY_P=Vulkan-Loader-${PV}
+       else
+               MY_PV=${SNAPSHOT_COMMIT}
+               MY_P=Vulkan-Loader-${SNAPSHOT_COMMIT}
+       fi
        KEYWORDS="~amd64"
-       EGIT_COMMIT="979f925d939e4daa3c823bd2b9d46ca479481fe9"
-       SRC_URI="https://github.com/KhronosGroup/Vulkan-Loader/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
-       S="${WORKDIR}/Vulkan-Loader-${EGIT_COMMIT}"
+       SRC_URI="https://github.com/KhronosGroup/Vulkan-Loader/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+       S="${WORKDIR}"/${MY_P}
 fi
 
 inherit python-any-r1 cmake-multilib
@@ -26,7 +32,7 @@ IUSE="layers wayland X"
 
 PDEPEND="layers? ( media-libs/vulkan-layers:=[${MULTILIB_USEDEP}] )"
 DEPEND="${PYTHON_DEPS}
-       >=dev-util/vulkan-headers-1.1.114
+       >=dev-util/vulkan-headers-${PV}
        wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
        X? (
                x11-libs/libX11:=[${MULTILIB_USEDEP}]