From e218d251836e9e1c67397d41f9c44403b28090c7 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Sat, 6 Aug 2022 17:39:09 +0800 Subject: sci-libs/rocThrust: relax SLOT dependency on dev-util/hip. dev-cpp/gtest should be in DEPEND. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Benda Xu --- sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild | 76 ++++++++++++++++++++++++++++ sci-libs/rocThrust/rocThrust-5.0.2.ebuild | 76 ---------------------------- 2 files changed, 76 insertions(+), 76 deletions(-) create mode 100644 sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild delete mode 100644 sci-libs/rocThrust/rocThrust-5.0.2.ebuild diff --git a/sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild b/sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild new file mode 100644 index 000000000000..41a056e51860 --- /dev/null +++ b/sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" ) + +src_prepare() { + sed -e "/PREFIX rocthrust/d" \ + -e "/DESTINATION/s:rocthrust/include/thrust:include/thrust:" \ + -e "/rocm_install_symlink_subdir(rocthrust)/d" \ + -e "/