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/files/, dev-libs/roct-thunk-interface/
Date: Mon, 14 Jan 2019 20:25:54
Message-Id: 1547497532.950f935be6030e5ea62f0b922927b0013b120c90.candrews@gentoo
1 commit: 950f935be6030e5ea62f0b922927b0013b120c90
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 14 03:54:40 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 14 20:25:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=950f935b
7
8 dev-libs/roct-thunk-interface: Radeon Open Compute Thunk Interface
9
10 Bug: https://bugs.gentoo.org/650804
11 Package-Manager: Portage-2.3.52, Repoman-2.3.12
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13
14 dev-libs/roct-thunk-interface/Manifest | 1 +
15 ...t-thunk-interface-2.0.0-correctly-install.patch | 288 +++++++++++++++++++++
16 dev-libs/roct-thunk-interface/metadata.xml | 22 ++
17 .../roct-thunk-interface-2.0.0.ebuild | 32 +++
18 4 files changed, 343 insertions(+)
19
20 diff --git a/dev-libs/roct-thunk-interface/Manifest b/dev-libs/roct-thunk-interface/Manifest
21 new file mode 100644
22 index 00000000000..5a78b9fd36a
23 --- /dev/null
24 +++ b/dev-libs/roct-thunk-interface/Manifest
25 @@ -0,0 +1 @@
26 +DIST roct-thunk-interface-2.0.0.tar.gz 1958218 BLAKE2B c1ba89cac9a18964e040e6b1e57a464216e7086c400e3360cfca6f376ac90b0b1afbb3a2a4d995581d1829ca57afe62bf6f2ac59cc103a48d384a8e52b1457d0 SHA512 7d2e35df2bec201bcc977328d7d36b921f76b57a0c54fc2332eb1faf3a722b6a3a1e3b1658e93b216ed68b965426c463a2dbf52a22af64ce1dcc9fad0f27ca9c
27
28 diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.0.0-correctly-install.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.0.0-correctly-install.patch
29 new file mode 100644
30 index 00000000000..8248c5f4b36
31 --- /dev/null
32 +++ b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.0.0-correctly-install.patch
33 @@ -0,0 +1,288 @@
34 +https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/25
35 +From c60501d7e69db24f5d880aace73662384ea90b27 Mon Sep 17 00:00:00 2001
36 +From: Andreas Schneider <asn@××××××××××.org>
37 +Date: Fri, 7 Sep 2018 10:30:05 +0200
38 +Subject: [PATCH 1/7] cmake: Do not mess with CMAKE_C_FLAGS
39 +
40 +---
41 + CMakeLists.txt | 11 +++--------
42 + 1 file changed, 3 insertions(+), 8 deletions(-)
43 +
44 +diff --git a/CMakeLists.txt b/CMakeLists.txt
45 +index cb2605b..8a0f362 100644
46 +--- a/CMakeLists.txt
47 ++++ b/CMakeLists.txt
48 +@@ -59,15 +59,9 @@ set ( BUILD_VERSION_STRING "${BUILD_VERSION_MAJOR}.${BUILD_VERSION_MINOR}.${BUIL
49 + #set ( CMAKE_VERBOSE_MAKEFILE on )
50 +
51 + ## Compiler flags
52 +-set ( CMAKE_C_FLAGS "-fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden" )
53 ++set (HSAKMT_C_FLAGS -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden)
54 + if ( "${CMAKE_C_COMPILER_VERSION}" STRGREATER "4.8.0")
55 +- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror" )
56 +-endif ()
57 +-
58 +-if ( "${CMAKE_BUILD_TYPE}" STREQUAL Release )
59 +- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2" )
60 +-else ()
61 +- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g" )
62 ++ set (HSAKMT_C_FLAGS ${HSAKMT_C_FLAGS} -Werror)
63 + endif ()
64 +
65 + set ( HSAKMT_LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/src/libhsakmt.ver" )
66 +@@ -96,6 +90,7 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/src )
67 +
68 + ## Add the library
69 + add_library ( ${HSAKMT_TARGET} SHARED ${HSAKMT_SRC} )
70 ++target_compile_options(${HSAKMT_TARGET} PRIVATE ${HSAKMT_C_FLAGS})
71 +
72 + ## Set the VERSION and SOVERSION values
73 + set_property ( TARGET ${HSAKMT_TARGET} PROPERTY VERSION "${LIB_VERSION_STRING}" )
74 +
75 +From d37b3e2e634a40192c113d9a8256f3d2aa24acfa Mon Sep 17 00:00:00 2001
76 +From: Andreas Schneider <asn@××××××××××.org>
77 +Date: Fri, 7 Sep 2018 10:31:59 +0200
78 +Subject: [PATCH 2/7] cmake: Do not mess with CMAKE_SHARED_LINKER_FLAGS
79 +
80 +---
81 + CMakeLists.txt | 3 ++-
82 + 1 file changed, 2 insertions(+), 1 deletion(-)
83 +
84 +diff --git a/CMakeLists.txt b/CMakeLists.txt
85 +index 8a0f362..a2a36cd 100644
86 +--- a/CMakeLists.txt
87 ++++ b/CMakeLists.txt
88 +@@ -67,7 +67,7 @@ endif ()
89 + set ( HSAKMT_LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/src/libhsakmt.ver" )
90 +
91 + ## Linker Flags
92 +-set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--version-script=${HSAKMT_LINKER_SCRIPT} -Wl,-soname=${HSAKMT_COMPONENT}.so.$(PROJECT_VERSION_MAJOR) -Wl,-z,nodelete -Wl,-no-undefined" )
93 ++set (HSAKMT_LINK_FLAGS "-Wl,--version-script=${HSAKMT_LINKER_SCRIPT} -Wl,-soname=${HSAKMT_COMPONENT}.so.$(PROJECT_VERSION_MAJOR) -Wl,-z,nodelete -Wl,-no-undefined" )
94 +
95 + ## Source files
96 + set ( HSAKMT_SRC "src/debug.c"
97 +@@ -91,6 +91,7 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/src )
98 + ## Add the library
99 + add_library ( ${HSAKMT_TARGET} SHARED ${HSAKMT_SRC} )
100 + target_compile_options(${HSAKMT_TARGET} PRIVATE ${HSAKMT_C_FLAGS})
101 ++set_property(TARGET ${HSAKMT_TARGET} PROPERTY LINK_FLAGS ${HSAKMT_LINK_FLAGS})
102 +
103 + ## Set the VERSION and SOVERSION values
104 + set_property ( TARGET ${HSAKMT_TARGET} PROPERTY VERSION "${LIB_VERSION_STRING}" )
105 +
106 +From 7f9ad94a9932319930f96d49a78fa9e741cd7292 Mon Sep 17 00:00:00 2001
107 +From: Andreas Schneider <asn@××××××××××.org>
108 +Date: Fri, 7 Sep 2018 10:41:04 +0200
109 +Subject: [PATCH 3/7] cmake: Use GNUInstallDirs for installtion
110 +
111 +This will allow distributions to install it correctly.
112 +---
113 + CMakeLists.txt | 13 ++++++++-----
114 + 1 file changed, 8 insertions(+), 5 deletions(-)
115 +
116 +diff --git a/CMakeLists.txt b/CMakeLists.txt
117 +index a2a36cd..58076fa 100644
118 +--- a/CMakeLists.txt
119 ++++ b/CMakeLists.txt
120 +@@ -111,8 +111,9 @@ endif ()
121 +
122 + ## Define default variable and variables for the optional build target hsakmt-dev
123 + set ( SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "Location of hsakmt source code." )
124 +-set ( CMAKE_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation directory." )
125 +-set ( CPACK_PACKAGING_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default packaging prefix." )
126 ++set ( HSAKMT_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation directory." )
127 ++set ( HSAKMT_INSTALL_LIBDIR "hsakmt/lib" CACHE STRING "Default installation directory." )
128 ++set ( HSAKMT_PACKAGING_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default packaging prefix." )
129 + set ( CPACK_GENERATOR "DEB;RPM" CACHE STRING "Default packaging generators." )
130 +
131 + ## Specify build, install and package targets hsakmt-dev
132 +@@ -121,9 +122,12 @@ configure_file ( hsakmt-dev.txt ${DEV_BUILD_DIR}/CMakeLists.txt @ONLY )
133 + add_custom_target ( build-dev
134 + COMMAND ${CMAKE_COMMAND}
135 + -DSOURCE_DIR="${SOURCE_DIR}"
136 +- -DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
137 ++ -DCMAKE_INSTALL_PREFIX="${HSAKMT_INSTALL_PREFIX}"
138 ++ -DCMAKE_INSTALL_LIBDIR="${HSAKMT_INSTALL_LIBDIR}"
139 + -DCPACK_RPM_PACKAGE_REQUIRES="hsakmt-roct"
140 +- -DCPACK_PACKAGING_INSTALL_PREFIX="${CPACK_PACKAGING_INSTALL_PREFIX}"
141 ++ -DCPACK_PACKAGING_INSTALL_PREFIX="${HSAKMT_PACKAGING_INSTALL_PREFIX}"
142 ++ COMMAND rm -rf *.deb *.rpm *.tar.gz
143 ++ COMMAND make package
144 + WORKING_DIRECTORY ${DEV_BUILD_DIR} )
145 +
146 + ## Custom targets for the devel package
147 +@@ -135,7 +139,6 @@ add_custom_target ( package-dev DEPENDS build-dev
148 +
149 + ## Add the install directives for the runtime library.
150 + install ( TARGETS ${HSAKMT_TARGET} DESTINATION ${CMAKE_INSTALL_LIBDIR} )
151 +-install ( FILES ${SOURCE_DIR}/LICENSE.md DESTINATION libhsakmt )
152 +
153 + ## Add the packaging directives for the runtime library.
154 + set ( CPACK_PACKAGE_NAME ${HSAKMT_PACKAGE} )
155 +
156 +From d3f841cf2c504c7af9735d27d4f4b9784754708d Mon Sep 17 00:00:00 2001
157 +From: Andreas Schneider <asn@××××××××××.org>
158 +Date: Fri, 7 Sep 2018 11:10:52 +0200
159 +Subject: [PATCH 4/7] cmake: Install header files
160 +
161 +---
162 + CMakeLists.txt | 8 ++++++++
163 + 1 file changed, 8 insertions(+)
164 +
165 +diff --git a/CMakeLists.txt b/CMakeLists.txt
166 +index 58076fa..81ec134 100644
167 +--- a/CMakeLists.txt
168 ++++ b/CMakeLists.txt
169 +@@ -140,6 +140,14 @@ add_custom_target ( package-dev DEPENDS build-dev
170 + ## Add the install directives for the runtime library.
171 + install ( TARGETS ${HSAKMT_TARGET} DESTINATION ${CMAKE_INSTALL_LIBDIR} )
172 +
173 ++install(FILES
174 ++ include/hsakmt.h
175 ++ include/hsakmttypes.h
176 ++ DESTINATION
177 ++ ${CMAKE_INSTALL_INCLUDEDIR}/libhsakmt
178 ++ COMPONENT
179 ++ ${HSAKMT_COMPONENT}-header)
180 ++
181 + ## Add the packaging directives for the runtime library.
182 + set ( CPACK_PACKAGE_NAME ${HSAKMT_PACKAGE} )
183 + set ( CPACK_PACKAGE_VENDOR "AMD" )
184 +
185 +From 66e43bab21ee2a8ba1eed59e6a5052eb2f0fc1b8 Mon Sep 17 00:00:00 2001
186 +From: Andreas Schneider <asn@××××××××××.org>
187 +Date: Fri, 7 Sep 2018 10:43:26 +0200
188 +Subject: [PATCH 5/7] cmake: Install the pkgconfig file
189 +
190 +---
191 + CMakeLists.txt | 6 ++++++
192 + 1 file changed, 6 insertions(+)
193 +
194 +diff --git a/CMakeLists.txt b/CMakeLists.txt
195 +index 81ec134..5482e02 100644
196 +--- a/CMakeLists.txt
197 ++++ b/CMakeLists.txt
198 +@@ -169,5 +169,11 @@ set ( CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/RPM/rpm_
199 +
200 + # CPACK_PACKAGING_INSTALL_PREFIX is needed in libhsakmt.pc.in
201 + configure_file ( libhsakmt.pc.in ${DEV_BUILD_DIR}/libhsakmt.pc @ONLY )
202 ++install(FILES
203 ++ ${DEV_BUILD_DIR}/libhsakmt.pc
204 ++ DESTINATION
205 ++ ${CMAKE_INSTALL_LIBDIR}/pkgconfig
206 ++ COMPONENT
207 ++ ${HSAKMT_COMPONENT}-pkgconfig)
208 +
209 + include ( CPack )
210 +
211 +From 5f1ed605a484e30c51954817b6d8712ab4c6046e Mon Sep 17 00:00:00 2001
212 +From: Andreas Schneider <asn@××××××××××.org>
213 +Date: Tue, 25 Sep 2018 18:47:57 +0200
214 +Subject: [PATCH 6/7] cmake: Do not strip targets in the release build
215 +
216 +Distributions want to generate debuginfo packages, do not strip them! If
217 +you want to do it during installation use 'make install/strip'!
218 +---
219 + CMakeLists.txt | 5 -----
220 + 1 file changed, 5 deletions(-)
221 +
222 +diff --git a/CMakeLists.txt b/CMakeLists.txt
223 +index 5482e02..f8f58cd 100644
224 +--- a/CMakeLists.txt
225 ++++ b/CMakeLists.txt
226 +@@ -104,11 +104,6 @@ target_link_libraries ( ${HSAKMT_TARGET}
227 + pthread rt numa ${PC_LIBPCI_LIBRARIES}
228 + )
229 +
230 +-## If the library is a release, strip the target library
231 +-if ( "${CMAKE_BUILD_TYPE}" STREQUAL Release )
232 +- add_custom_command ( TARGET ${HSAKMT_TARGET} POST_BUILD COMMAND ${CMAKE_STRIP} ${HSAKMT_COMPONENT}.so )
233 +-endif ()
234 +-
235 + ## Define default variable and variables for the optional build target hsakmt-dev
236 + set ( SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "Location of hsakmt source code." )
237 + set ( HSAKMT_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation directory." )
238 +
239 +From 86b29b265c1a91d2bc931453e4edac66a6d9da0d Mon Sep 17 00:00:00 2001
240 +From: Andreas Schneider <asn@××××××××××.org>
241 +Date: Tue, 25 Sep 2018 19:16:43 +0200
242 +Subject: [PATCH 7/7] cmake: Create cmake config file
243 +
244 +Another cmake project like hsa-runtime could just use:
245 +
246 +find_package(hsakmt REQUIRED 1.9.0)
247 +---
248 + CMakeLists.txt | 31 ++++++++++++++++++++++++++++++-
249 + hsakmt-config.cmake.in | 9 +++++++++
250 + 2 files changed, 39 insertions(+), 1 deletion(-)
251 + create mode 100644 hsakmt-config.cmake.in
252 +
253 +diff --git a/CMakeLists.txt b/CMakeLists.txt
254 +index f8f58cd..6e5a0fe 100644
255 +--- a/CMakeLists.txt
256 ++++ b/CMakeLists.txt
257 +@@ -30,7 +30,7 @@ set ( HSAKMT_PACKAGE "hsakmt-roct" )
258 + set ( HSAKMT_COMPONENT "lib${HSAKMT}" )
259 + set ( HSAKMT_TARGET "${HSAKMT}" )
260 +
261 +-project ( ${HSAKMT_TARGET} )
262 ++project ( ${HSAKMT_TARGET} VERSION 1.9.0)
263 +
264 + ## Set default module path if not already set
265 + if ( NOT DEFINED CMAKE_MODULE_PATH )
266 +@@ -44,6 +44,8 @@ include ( GNUInstallDirs )
267 + ## Setup the package version.
268 + get_version ( "1.0.0" )
269 +
270 ++# FIXME: The library version should not be tied to the project version!
271 ++# There are rules how to bump version numbers for libraries.
272 + set ( BUILD_VERSION_MAJOR ${VERSION_MAJOR} )
273 + set ( BUILD_VERSION_MINOR ${VERSION_MINOR} )
274 + set ( BUILD_VERSION_PATCH ${VERSION_PATCH} )
275 +@@ -171,4 +173,31 @@ install(FILES
276 + COMPONENT
277 + ${HSAKMT_COMPONENT}-pkgconfig)
278 +
279 ++# Create cmake configuration files
280 ++include(CMakePackageConfigHelpers)
281 ++
282 ++set(HSAKMT_LIBRARY_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
283 ++
284 ++set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME} CACHE INTERNAL "")
285 ++set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE INTERNAL "")
286 ++
287 ++configure_package_config_file(${PROJECT_NAME}-config.cmake.in
288 ++ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
289 ++ PATH_VARS
290 ++ INCLUDE_INSTALL_DIR LIB_INSTALL_DIR
291 ++ INSTALL_DESTINATION
292 ++ ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
293 ++
294 ++write_basic_package_version_file(${PROJECT_NAME}-config-version.cmake
295 ++ COMPATIBILITY
296 ++ AnyNewerVersion)
297 ++
298 ++install(FILES
299 ++ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
300 ++ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
301 ++ DESTINATION
302 ++ ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
303 ++ COMPONENT
304 ++ devel)
305 ++
306 + include ( CPack )
307 +diff --git a/hsakmt-config.cmake.in b/hsakmt-config.cmake.in
308 +new file mode 100644
309 +index 0000000..e6bad17
310 +--- /dev/null
311 ++++ b/hsakmt-config.cmake.in
312 +@@ -0,0 +1,9 @@
313 ++@PACKAGE_INIT@
314 ++
315 ++set_and_check(HSAKMT_INCLUDE_DIR @PACKAGE_LIB_INSTALL_DIR@)
316 ++set_and_check(HSAKMT_LIB_DIR @PACKAGE_LIB_INSTALL_DIR@)
317 ++
318 ++set(HSAKMT_LIBRARY @PACKAGE_LIB_INSTALL_DIR@/@HSAKMT_LIBRARY_NAME@)
319 ++set(HSAKMT_LIBRARIES @PACKAGE_LIB_INSTALL_DIR@/@HSAKMT_LIBRARY_NAME@)
320 ++
321 ++mark_as_advanced(HSAKMT_LIBRARY HSAKMT_INCLUDE_DIR)
322
323 diff --git a/dev-libs/roct-thunk-interface/metadata.xml b/dev-libs/roct-thunk-interface/metadata.xml
324 new file mode 100644
325 index 00000000000..9dd431e1fbf
326 --- /dev/null
327 +++ b/dev-libs/roct-thunk-interface/metadata.xml
328 @@ -0,0 +1,22 @@
329 +<?xml version="1.0" encoding="UTF-8"?>
330 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
331 +<pkgmetadata>
332 + <maintainer type="person">
333 + <email>candrews@g.o</email>
334 + <name>Craig Andrews</name>
335 + </maintainer>
336 + <maintainer type="person">
337 + <email>gentoo@××××××.net</email>
338 + <name>Wilfried Holzke</name>
339 + </maintainer>
340 + <maintainer type="project">
341 + <email>proxy-maint@g.o</email>
342 + <name>Proxy Maintainers</name>
343 + </maintainer>
344 + <upstream>
345 + <remote-id type="github">RadeonOpenCompute/ROCT-Thunk-Interface</remote-id>
346 + </upstream>
347 + <longdescription lang="en">
348 + Radeon Open Compute Thunk Interface
349 + </longdescription>
350 +</pkgmetadata>
351
352 diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-2.0.0.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.0.0.ebuild
353 new file mode 100644
354 index 00000000000..91642b3b2f1
355 --- /dev/null
356 +++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.0.0.ebuild
357 @@ -0,0 +1,32 @@
358 +# Copyright 1999-2018 Gentoo Authors
359 +# Distributed under the terms of the GNU General Public License v2
360 +
361 +EAPI=7
362 +
363 +inherit cmake-utils linux-info
364 +
365 +if [[ ${PV} == *9999 ]] ; then
366 + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/"
367 + inherit git-r3
368 +else
369 + SRC_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/roc-${PV}.tar.gz -> ${P}.tar.gz"
370 + S="${WORKDIR}/ROCT-Thunk-Interface-roc-${PV}"
371 + KEYWORDS="~amd64"
372 +fi
373 +PATCHES=(
374 + "${FILESDIR}/${P}-correctly-install.patch"
375 +)
376 +
377 +DESCRIPTION="Radeon Open Compute Thunk Interface"
378 +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface"
379 +CONFIG_CHECK="~HSA_AMD"
380 +LICENSE="MIT"
381 +SLOT="0/$(ver_cut 1-2)"
382 +
383 +RDEPEND="sys-process/numactl"
384 +DEPEND="${RDEPEND}"
385 +
386 +src_prepare() {
387 + sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die
388 + cmake-utils_src_prepare
389 +}