From 752d6256e5204b958b0ef7905675a940b5e9172f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 May 2022 16:42:50 +0300 Subject: gentoo resync : 12.05.2022 --- sci-libs/hipCUB/hipCUB-4.3.0-r1.ebuild | 74 ++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 sci-libs/hipCUB/hipCUB-4.3.0-r1.ebuild (limited to 'sci-libs/hipCUB/hipCUB-4.3.0-r1.ebuild') diff --git a/sci-libs/hipCUB/hipCUB-4.3.0-r1.ebuild b/sci-libs/hipCUB/hipCUB-4.3.0-r1.ebuild new file mode 100644 index 000000000000..65b61c2352cc --- /dev/null +++ b/sci-libs/hipCUB/hipCUB-4.3.0-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Wrapper of rocPRIM or CUB for GPU parallel primitives" +HOMEPAGE="https://github.com/ROCmSoftwarePlatform/hipCUB" +SRC_URI="https://github.com/ROCmSoftwarePlatform/hipCUB/archive/rocm-${PV}.tar.gz -> hipCUB-${PV}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64" +SLOT="0/$(ver_cut 1-2)" +IUSE="benchmark test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-util/hip + sci-libs/rocPRIM:${SLOT} + benchmark? ( dev-cpp/benchmark )" +DEPEND="${RDEPEND}" +BDEPEND="test? ( dev-cpp/gtest )" + +S="${WORKDIR}/hipCUB-rocm-${PV}" + +PATCHES="${FILESDIR}/${PN}-4.3.0-add-memory-header.patch" + +src_prepare() { + sed -e "/PREFIX hipcub/d" \ + -e "/DESTINATION/s:hipcub/include/:include/:" \ + -e "/rocm_install_symlink_subdir(hipcub)/d" \ + -e "/