From: Peter Levine Date: Mon, 21 Oct 2019 01:35:35 +0000 (-0400) Subject: dev-util/vulkan-headers: Update versioning scheme X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=665e6f88f1e6c8b1838e4169038dfca8935fcfb0;p=gentoo.git dev-util/vulkan-headers: 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 --- diff --git a/dev-util/vulkan-headers/vulkan-headers-9999.ebuild b/dev-util/vulkan-headers/vulkan-headers-9999.ebuild index 46c065902b60..5c5a041b9c22 100644 --- a/dev-util/vulkan-headers/vulkan-headers-9999.ebuild +++ b/dev-util/vulkan-headers/vulkan-headers-9999.ebuild @@ -9,10 +9,16 @@ if [[ "${PV}" == "9999" ]]; then EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-Headers.git" inherit git-r3 else - EGIT_COMMIT="b1577d5fbd5424c863710aa156aaafa77cae3de8" + if [[ -z ${SNAPSHOT_COMMIT} ]]; then + MY_PV=v${PV} + MY_P=Vulkan-Headers-${PV} + else + MY_PV=${SNAPSHOT_COMMIT} + MY_P=Vulkan-Headers-${SNAPSHOT_COMMIT} + fi KEYWORDS="~amd64 ~x86" - SRC_URI="https://github.com/KhronosGroup/Vulkan-Headers/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/Vulkan-Headers-${EGIT_COMMIT}" + SRC_URI="https://github.com/KhronosGroup/Vulkan-Headers/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}"/${MY_P} fi DESCRIPTION="Vulkan Header files and API registry"