From ee214ae774303f653814d19f79223b50c13f81b4 Mon Sep 17 00:00:00 2001 From: Peter Levine Date: Sun, 20 Oct 2019 20:47:09 -0400 Subject: [PATCH] media-libs/vulkan-loader: Update versioning scheme 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 Signed-off-by: Nick Sarnie --- media-libs/vulkan-loader/vulkan-loader-9999.ebuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild index 6cb83e24e229..29452cd21b59 100644 --- a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild +++ b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild @@ -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}] -- 2.26.2