diff options
author | Julien Roy <julien@jroy.ca> | 2021-12-10 09:47:31 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2021-12-10 09:47:31 -0500 |
commit | b53d370a5949e25284a51e2275bdbd280c944b1a (patch) | |
tree | 1b69aad321266eb5aead6b7f04d38ec7d6d3e0a0 /dev-libs/roct-thunk-interface/roct-thunk-interface-4.5.0.ebuild | |
parent | 4f6b9f9cffc45a82b0535b546576b1ae22bc72b4 (diff) | |
download | MrRoy-Overlay-b53d370a5949e25284a51e2275bdbd280c944b1a.tar.gz MrRoy-Overlay-b53d370a5949e25284a51e2275bdbd280c944b1a.tar.bz2 MrRoy-Overlay-b53d370a5949e25284a51e2275bdbd280c944b1a.zip |
Added dev-libs/roct-thunk-interface-4.5.0/9999
Diffstat (limited to 'dev-libs/roct-thunk-interface/roct-thunk-interface-4.5.0.ebuild')
-rw-r--r-- | dev-libs/roct-thunk-interface/roct-thunk-interface-4.5.0.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-4.5.0.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-4.5.0.ebuild new file mode 100644 index 0000000..b8ab41b --- /dev/null +++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-4.5.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake linux-info + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/" + inherit git-r3 +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCT-Thunk-Interface-rocm-${PV}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Thunk Interface" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" +CONFIG_CHECK="~HSA_AMD ~HMM_MIRROR ~ZONE_DEVICE ~DRM_AMDGPU ~DRM_AMDGPU_USERPTR" +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" + +RDEPEND="sys-process/numactl" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die + cmake_src_prepare +} +src_configure() { + local mycmakeargs=( + -DCPACK_PACKAGING_INSTALL_PREFIX="${EPREFIX}/usr" + ) + cmake_src_configure +} + |