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/rocThrust/rocThrust-4.3.0-r2.ebuild | 77 ++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 sci-libs/rocThrust/rocThrust-4.3.0-r2.ebuild (limited to 'sci-libs/rocThrust/rocThrust-4.3.0-r2.ebuild') diff --git a/sci-libs/rocThrust/rocThrust-4.3.0-r2.ebuild b/sci-libs/rocThrust/rocThrust-4.3.0-r2.ebuild new file mode 100644 index 000000000000..ff4a85ba172d --- /dev/null +++ b/sci-libs/rocThrust/rocThrust-4.3.0-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="HIP back-end for the parallel algorithm library Thrust" +HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocThrust" +SRC_URI="https://github.com/ROCmSoftwarePlatform/rocThrust/archive/rocm-${PV}.tar.gz -> rocThrust-${PV}.tar.gz" + +LICENSE="Apache-2.0" +KEYWORDS="~amd64" +SLOT="0/$(ver_cut 1-2)" +IUSE="benchmark test" + +RESTRICT="!test? ( test )" + +RDEPEND="dev-util/hip + sci-libs/rocPRIM:${SLOT}" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" +BDEPEND=">=dev-util/cmake-3.22" + +S="${WORKDIR}/rocThrust-rocm-${PV}" + +PATCHES=( "${FILESDIR}/${PN}-4.0-operator_new.patch" + "${FILESDIR}/${P}-deprecate-hcc_detail.patch" ) + +src_prepare() { + sed -e "/PREFIX rocthrust/d" \ + -e "/DESTINATION/s:rocthrust/include/thrust:include/thrust:" \ + -e "/rocm_install_symlink_subdir(rocthrust)/d" \ + -e "/