Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/roct-thunk-interface/
Date: Tue, 18 May 2021 15:45:25
Message-Id: 1621350415.90b004d7d03fbc35511cb67ab9741cdb60ed3994.candrews@gentoo
1 commit: 90b004d7d03fbc35511cb67ab9741cdb60ed3994
2 Author: Wilfried Holzke <gentoo <AT> holzke <DOT> net>
3 AuthorDate: Thu May 13 13:07:00 2021 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 15:06:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90b004d7
7
8 dev-libs/roct-thunk-interface: Version bump to 4.2
9
10 Signed-off-by: Wilfried Holzke <gentoo <AT> holzke.net>
11 Package-Manager: Portage-3.0.18, Repoman-3.0.2
12 Closes: https://github.com/gentoo/gentoo/pull/20793
13 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
14
15 dev-libs/roct-thunk-interface/Manifest | 1 +
16 .../roct-thunk-interface-4.2.0.ebuild | 39 ++++++++++++++++++++++
17 2 files changed, 40 insertions(+)
18
19 diff --git a/dev-libs/roct-thunk-interface/Manifest b/dev-libs/roct-thunk-interface/Manifest
20 index d5b1d9ab69b..7ba4cb63707 100644
21 --- a/dev-libs/roct-thunk-interface/Manifest
22 +++ b/dev-libs/roct-thunk-interface/Manifest
23 @@ -1,2 +1,3 @@
24 DIST roct-thunk-interface-4.0.0.tar.gz 2694100 BLAKE2B 49ca128902335fc36d44b9e71d444a467bdd0b39ce0b487c70f1f68180fb4b564b10a65e26e41b71d5e66721c3086ec834aee2550246172965f2d611ce9a644a SHA512 cbb45c4372ce2620fce6ccbf94e8e7600256d12acf6721da9d22aeb619cec9d4e4e25354649b83fb322f8d369347c251ebb7242ff8fc3976cc3983de0d8e30a9
25 DIST roct-thunk-interface-4.1.0.tar.gz 2697077 BLAKE2B 6d5d35c57d73c7d23fe28f438421372c1dcd51b1bcbf8720dfc993ce56a4afb3cd2c5d14185f4424436db4ce6d1d48dd5f802d0fc24ea1dd78ceb5cff7604103 SHA512 adef8c6c8f375d6d402c1066859fdb45f1e938578011fa0008ad242e1365d3672c5cb02a50f98b6f2d760269b4ef46b33a77f237521b76afe42ac883c71ecd86
26 +DIST roct-thunk-interface-4.2.0.tar.gz 3162877 BLAKE2B 48196c2334a5514c17a5b6ca122f0beaf964040f1705bd60532e4379a01d8d6a9b462a7f74916d80841caa9d3a57d5b6e2fb030a9556a1305b879036f9bcec5f SHA512 007cd64e33bada7707f340bffddf6eb9531b0bd5227a5da522c0ff4f0e2efe4a113fc50bf52da19d58fef73008af70a352aad8b41387b327f2ba19b54ede9646
27
28 diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-4.2.0.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-4.2.0.ebuild
29 new file mode 100644
30 index 00000000000..16e23a2d974
31 --- /dev/null
32 +++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-4.2.0.ebuild
33 @@ -0,0 +1,39 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit cmake linux-info
40 +
41 +if [[ ${PV} == *9999 ]] ; then
42 + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/"
43 + inherit git-r3
44 +else
45 + SRC_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
46 + S="${WORKDIR}/ROCT-Thunk-Interface-rocm-${PV}"
47 + KEYWORDS="~amd64"
48 +fi
49 +
50 +DESCRIPTION="Radeon Open Compute Thunk Interface"
51 +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface"
52 +CONFIG_CHECK="~HSA_AMD ~HMM_MIRROR ~ZONE_DEVICE ~DRM_AMDGPU ~DRM_AMDGPU_USERPTR"
53 +LICENSE="MIT"
54 +SLOT="0/$(ver_cut 1-2)"
55 +
56 +RDEPEND="sys-process/numactl"
57 +DEPEND="${RDEPEND}"
58 +
59 +PATCHES=(
60 + "${FILESDIR}/roct-thunk-interface-4.1.0-append-flags.patch"
61 +)
62 +
63 +src_prepare() {
64 + sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die
65 + cmake_src_prepare
66 +}
67 +src_configure() {
68 + local mycmakeargs=(
69 + -DCPACK_PACKAGING_INSTALL_PREFIX="${EPREFIX}/usr"
70 + )
71 + cmake_src_configure
72 +}