summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2019-10-20 20:47:09 -0400
committerNick Sarnie <sarnex@gentoo.org>2019-10-21 18:48:18 -0400
commitee214ae774303f653814d19f79223b50c13f81b4 (patch)
tree8863026c4fc78b76c1e5f8c860bdca5227f49d26 /media-libs/vulkan-loader/vulkan-loader-9999.ebuild
parentmedia-libs/vulkan-loader: Update to EAPI 7 (diff)
downloadgentoo-ee214ae774303f653814d19f79223b50c13f81b4.tar.gz
gentoo-ee214ae774303f653814d19f79223b50c13f81b4.tar.bz2
gentoo-ee214ae774303f653814d19f79223b50c13f81b4.zip
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 <plevine457@gmail.com> Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'media-libs/vulkan-loader/vulkan-loader-9999.ebuild')
-rw-r--r--media-libs/vulkan-loader/vulkan-loader-9999.ebuild14
1 files 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}]