Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocThrust/
Date: Wed, 01 Feb 2023 09:53:39
Message-Id: 1675245177.55ce60f258524fe6eaccbc1ad8a74a48d6998f60.asturm@gentoo
1 commit: 55ce60f258524fe6eaccbc1ad8a74a48d6998f60
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 24 22:21:55 2023 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 09:52:57 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55ce60f2
7
8 sci-libs/rocThrust: drop 5.0.2-r1
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 sci-libs/rocThrust/Manifest | 1 -
13 sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild | 76 ----------------------------
14 2 files changed, 77 deletions(-)
15
16 diff --git a/sci-libs/rocThrust/Manifest b/sci-libs/rocThrust/Manifest
17 index db950e870078..586b8f1b9260 100644
18 --- a/sci-libs/rocThrust/Manifest
19 +++ b/sci-libs/rocThrust/Manifest
20 @@ -1,2 +1 @@
21 -DIST rocThrust-5.0.2.tar.gz 1183550 BLAKE2B 88021266dc9ffcb8f5e803acfe767c52aaa04b2348d0dcb204eb74bdf44ed26eb6d98f8d85324b90fe73228b52a0ad22686b87274c868ef19ec8ded825b58ea9 SHA512 3599b9498db392d480c08873d9e84ff1c05e5417e14e43e56f190fe4490873fec37c944a3c252942d6275a4fa4af85c82d39b62b0fdb5daa82023a2df8a3228f
22 DIST rocThrust-5.1.3.tar.gz 1186518 BLAKE2B 2defe71247915940917438d4f0d0a811dca7de39e5168248968fa9c165b81d94b0e20f3df9b84db1fbdcd2eb87942dec5d3adbbe1a699eb51eeb4e1b2f0a88d0 SHA512 189c70343a410cf3f3c1589ef24c68a38b5270d8780d15261a124b8250f279a3c3c7afef38e6310d57cb1741b3ee75f0b4ac0bb9dfcf4a4fb0e7e6c0516faf74
23
24 diff --git a/sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild b/sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild
25 deleted file mode 100644
26 index 41a056e51860..000000000000
27 --- a/sci-libs/rocThrust/rocThrust-5.0.2-r1.ebuild
28 +++ /dev/null
29 @@ -1,76 +0,0 @@
30 -# Copyright 1999-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=8
34 -
35 -inherit cmake
36 -
37 -DESCRIPTION="HIP back-end for the parallel algorithm library Thrust"
38 -HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocThrust"
39 -SRC_URI="https://github.com/ROCmSoftwarePlatform/rocThrust/archive/rocm-${PV}.tar.gz -> rocThrust-${PV}.tar.gz"
40 -
41 -LICENSE="Apache-2.0"
42 -KEYWORDS="~amd64"
43 -SLOT="0/$(ver_cut 1-2)"
44 -IUSE="benchmark test"
45 -
46 -RESTRICT="!test? ( test )"
47 -
48 -RDEPEND="dev-util/hip:=
49 - sci-libs/rocPRIM:${SLOT}"
50 -DEPEND="${RDEPEND}
51 - test? ( dev-cpp/gtest )"
52 -BDEPEND=">=dev-util/cmake-3.22"
53 -
54 -S="${WORKDIR}/rocThrust-rocm-${PV}"
55 -
56 -PATCHES=( "${FILESDIR}/${PN}-4.0-operator_new.patch" )
57 -
58 -src_prepare() {
59 - sed -e "/PREFIX rocthrust/d" \
60 - -e "/DESTINATION/s:rocthrust/include/thrust:include/thrust:" \
61 - -e "/rocm_install_symlink_subdir(rocthrust)/d" \
62 - -e "/<INSTALL_INTERFACE/s:rocthrust/include/:include/:" -i thrust/CMakeLists.txt || die
63 -
64 - sed -e "s:\${CMAKE_INSTALL_INCLUDEDIR}:&/rocthrust:" \
65 - -e "s:\${ROCM_INSTALL_LIBDIR}:\${CMAKE_INSTALL_LIBDIR}:" -i cmake/ROCMExportTargetsHeaderOnly.cmake || die
66 -
67 - # disable downloading googletest and googlebenchmark
68 - sed -r -e '/Downloading/{:a;N;/\n *\)$/!ba; d}' -i cmake/Dependencies.cmake || die
69 -
70 - # remove GIT dependency
71 - sed -r -e '/find_package\(Git/{:a;N;/\nendif/!ba; d}' -i cmake/Dependencies.cmake || die
72 -
73 - eapply_user
74 - cmake_src_prepare
75 -}
76 -
77 -src_configure() {
78 - # Grant access to the device
79 - addwrite /dev/kfd
80 - addpredict /dev/dri/
81 -
82 - # Compiler to use
83 - export CXX=hipcc
84 -
85 - local mycmakeargs=(
86 - -DBUILD_TEST=$(usex test ON OFF)
87 - -DBUILD_BENCHMARKS=$(usex benchmark ON OFF)
88 - ${AMDGPU_TARGETS+-DAMDGPU_TARGETS="${AMDGPU_TARGETS}"}
89 - )
90 -
91 - cmake_src_configure
92 -}
93 -
94 -src_test() {
95 - # Grant access to the device
96 - addwrite /dev/kfd
97 - addwrite /dev/dri/
98 - cmake_src_test
99 -}
100 -
101 -src_install() {
102 - cmake_src_install
103 -
104 - use benchmark && dobin "${BUILD_DIR}"/benchmarks/benchmark_thrust_bench
105 -}