diff options
author | Peter Levine <plevine457@gmail.com> | 2019-10-20 21:35:35 -0400 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2019-10-21 18:48:19 -0400 |
commit | 665e6f88f1e6c8b1838e4169038dfca8935fcfb0 (patch) | |
tree | bb1af190a9373aa366b147c4827f29a2c11a52c9 /dev-util/vulkan-headers | |
parent | dev-util/vulkan-headers: Update to EAPI 7 (diff) | |
download | gentoo-665e6f88f1e6c8b1838e4169038dfca8935fcfb0.tar.gz gentoo-665e6f88f1e6c8b1838e4169038dfca8935fcfb0.tar.bz2 gentoo-665e6f88f1e6c8b1838e4169038dfca8935fcfb0.zip |
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 <plevine457@gmail.com>
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'dev-util/vulkan-headers')
-rw-r--r-- | dev-util/vulkan-headers/vulkan-headers-9999.ebuild | 12 |
1 files changed, 9 insertions, 3 deletions
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" |