diff options
author | Matt Turner <mattst88@gentoo.org> | 2020-03-15 13:09:42 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2020-03-15 14:28:02 -0700 |
commit | 5daea9c2505d4170edd2600a7c2fc63a1aec100a (patch) | |
tree | d80e9131df6b95435beb2cb94c1862deb28f36b7 /dev-util | |
parent | dev-util/spirv-headers: 9999 cleanup, cmake.eclass (diff) | |
download | gentoo-5daea9c2505d4170edd2600a7c2fc63a1aec100a.tar.gz gentoo-5daea9c2505d4170edd2600a7c2fc63a1aec100a.tar.bz2 gentoo-5daea9c2505d4170edd2600a7c2fc63a1aec100a.zip |
dev-util/spirv-tools: 9999 cleanup, cmake.eclass
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/spirv-tools/spirv-tools-9999.ebuild | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/dev-util/spirv-tools/spirv-tools-9999.ebuild b/dev-util/spirv-tools/spirv-tools-9999.ebuild index 0d2943714b8e..8110b4fa3ded 100644 --- a/dev-util/spirv-tools/spirv-tools-9999.ebuild +++ b/dev-util/spirv-tools/spirv-tools-9999.ebuild @@ -2,14 +2,23 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + +MY_PN=SPIRV-Tools +CMAKE_ECLASS="cmake" PYTHON_COMPAT=( python3_{6,7} ) +inherit cmake-multilib python-any-r1 -inherit cmake-multilib cmake-utils git-r3 python-any-r1 +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~ppc64 ~x86" + S="${WORKDIR}"/${MY_PN}-${PV} +fi DESCRIPTION="Provides an API and commands for processing SPIR-V modules" HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools" -EGIT_REPO_URI="https://github.com/KhronosGroup/SPIRV-Tools.git" -SRC_URI="" LICENSE="Apache-2.0" SLOT="0" @@ -28,13 +37,5 @@ multilib_src_configure() { "-DSPIRV_WERROR=OFF" ) - cmake-utils_src_configure -} - -multilib_src_install() { - cmake-utils_src_install - - # create a header file with the commit hash of the current revision - # vulkan-tools needs this to build - echo "${EGIT_VERSION}" > "${D}/usr/include/${PN}/${PN}-commit.h" || die + cmake_src_configure } |