1 |
commit: b32753ba763ba9c57b866bfadf4f97cf1a6a5e2d |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 22 20:22:51 2019 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 7 17:38:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b32753ba |
7 |
|
8 |
dev-libs/roct-thunk-interface: add -9999 version |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
.../roct-thunk-interface-9999.ebuild | 42 ++++++++++++++++++++++ |
14 |
1 file changed, 42 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-9999.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..28db57d3c71 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-9999.ebuild |
21 |
@@ -0,0 +1,42 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit cmake-utils linux-info |
28 |
+ |
29 |
+if [[ ${PV} == *9999 ]] ; then |
30 |
+ EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/" |
31 |
+ inherit git-r3 |
32 |
+else |
33 |
+ SRC_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/roc-${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ S="${WORKDIR}/ROCT-Thunk-Interface-roc-${PV}" |
35 |
+ KEYWORDS="~amd64" |
36 |
+fi |
37 |
+ |
38 |
+DESCRIPTION="Radeon Open Compute Thunk Interface" |
39 |
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" |
40 |
+CONFIG_CHECK="~HSA_AMD" |
41 |
+LICENSE="MIT" |
42 |
+SLOT="0/$(ver_cut 1-2)" |
43 |
+ |
44 |
+RDEPEND="sys-process/numactl |
45 |
+ sys-apps/pciutils" |
46 |
+DEPEND="${RDEPEND}" |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die |
50 |
+ cmake-utils_src_prepare |
51 |
+} |
52 |
+src_configure() { |
53 |
+ local mycmakeargs=( |
54 |
+ -DCPACK_PACKAGING_INSTALL_PREFIX=/usr |
55 |
+ ) |
56 |
+ cmake-utils_src_configure |
57 |
+} |
58 |
+src_compile() { |
59 |
+ cmake-utils_src_compile build-dev |
60 |
+} |
61 |
+src_install() { |
62 |
+ cmake-utils_src_install install-dev |
63 |
+} |