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/rocr-runtime/
Date: Tue, 20 Aug 2019 18:25:24
Message-Id: 1566325495.d7bd5c1f06f791d5d354ca75100ed64204eea8bd.candrews@gentoo
1 commit: d7bd5c1f06f791d5d354ca75100ed64204eea8bd
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 20 18:24:55 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 20 18:24:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7bd5c1f
7
8 dev-libs/rocr-runtime: Add nonfree flag for optional HSA image support
9
10 Package-Manager: Portage-2.3.72, Repoman-2.3.17
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 dev-libs/rocr-runtime/metadata.xml | 3 +++
14 dev-libs/rocr-runtime/rocr-runtime-2.7.0.ebuild | 7 +++++--
15 dev-libs/rocr-runtime/rocr-runtime-9999.ebuild | 9 ++++++---
16 3 files changed, 14 insertions(+), 5 deletions(-)
17
18 diff --git a/dev-libs/rocr-runtime/metadata.xml b/dev-libs/rocr-runtime/metadata.xml
19 index d53b83185ad..53844ebc13e 100644
20 --- a/dev-libs/rocr-runtime/metadata.xml
21 +++ b/dev-libs/rocr-runtime/metadata.xml
22 @@ -15,4 +15,7 @@
23 <longdescription lang="en">
24 Radeon Open Compute Platform Runtime
25 </longdescription>
26 + <use>
27 + <flag name="nonfree">Enables HSA image support using <pkg>dev-libs/hsa-ext-rocr</pkg></flag>
28 + </use>
29 </pkgmetadata>
30
31 diff --git a/dev-libs/rocr-runtime/rocr-runtime-2.7.0.ebuild b/dev-libs/rocr-runtime/rocr-runtime-2.7.0.ebuild
32 index b2fdce8bee3..507d471dc10 100644
33 --- a/dev-libs/rocr-runtime/rocr-runtime-2.7.0.ebuild
34 +++ b/dev-libs/rocr-runtime/rocr-runtime-2.7.0.ebuild
35 @@ -23,9 +23,12 @@ PATCHES=(
36
37 LICENSE="MIT"
38 SLOT="0/$(ver_cut 1-2)"
39 +IUSE="nonfree"
40
41 -RDEPEND="sys-process/numactl"
42 -DEPEND="${RDEPEND}
43 +COMMON_DEPEND="sys-process/numactl"
44 +RDEPEND="${COMMON_DEPEND}
45 + nonfree? ( dev-libs/hsa-ext-rocr )"
46 +DEPEND="${COMMON_DEPEND}
47 >=dev-libs/roct-thunk-interface-${PV}"
48
49 src_prepare() {
50
51 diff --git a/dev-libs/rocr-runtime/rocr-runtime-9999.ebuild b/dev-libs/rocr-runtime/rocr-runtime-9999.ebuild
52 index a31193337a6..6a89ca2901e 100644
53 --- a/dev-libs/rocr-runtime/rocr-runtime-9999.ebuild
54 +++ b/dev-libs/rocr-runtime/rocr-runtime-9999.ebuild
55 @@ -20,10 +20,13 @@ HOMEPAGE="https://github.com/RadeonOpenCompute/ROCR-Runtime"
56
57 LICENSE="MIT"
58 SLOT="0/$(ver_cut 1-2)"
59 +IUSE="nonfree"
60
61 -RDEPEND="sys-process/numactl"
62 -DEPEND="${RDEPEND}
63 - dev-libs/roct-thunk-interface"
64 +COMMON_DEPEND="sys-process/numactl"
65 +RDEPEND="${COMMON_DEPEND}
66 + nonfree? ( dev-libs/hsa-ext-rocr )"
67 +DEPEND="${COMMON_DEPEND}
68 + >=dev-libs/roct-thunk-interface-${PV}"
69
70 src_prepare() {
71 sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die