1 |
commit: 3da277e90b2b2a1f9ec33c174e69049142771ecb |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 02:52:14 2022 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 02:54:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3da277e9 |
7 |
|
8 |
dev-util/rocm-cmake: do not install license files. |
9 |
|
10 |
In Gentoo, license are managed by einstalldocs. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/835834 |
13 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
14 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
15 |
|
16 |
dev-util/rocm-cmake/files/rocm-cmake-5.0.2-license.patch | 15 +++++++++++++++ |
17 |
...rocm-cmake-5.0.2.ebuild => rocm-cmake-5.0.2-r1.ebuild} | 7 ++++++- |
18 |
2 files changed, 21 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/dev-util/rocm-cmake/files/rocm-cmake-5.0.2-license.patch b/dev-util/rocm-cmake/files/rocm-cmake-5.0.2-license.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..b4a73e1bc2ed |
23 |
--- /dev/null |
24 |
+++ b/dev-util/rocm-cmake/files/rocm-cmake-5.0.2-license.patch |
25 |
@@ -0,0 +1,15 @@ |
26 |
+This is not needed. Gentoo automatically collect license files into |
27 |
+the documentation directory. |
28 |
+ |
29 |
+Index: rocm-cmake-rocm-5.0.2/share/rocm/cmake/ROCMCreatePackage.cmake |
30 |
+=================================================================== |
31 |
+--- rocm-cmake-rocm-5.0.2.orig/share/rocm/cmake/ROCMCreatePackage.cmake |
32 |
++++ rocm-cmake-rocm-5.0.2/share/rocm/cmake/ROCMCreatePackage.cmake |
33 |
+@@ -230,7 +230,6 @@ macro(rocm_create_package) |
34 |
+ ") |
35 |
+ endforeach() |
36 |
+ endif() |
37 |
+- rocm_setup_license(${PARSE_HEADER_ONLY}) |
38 |
+ if(PARSE_COMPONENTS) |
39 |
+ rocm_set_comp_cpackvar(PARSE_HEADER_ONLY "${PARSE_COMPONENTS}") |
40 |
+ endif() |
41 |
|
42 |
diff --git a/dev-util/rocm-cmake/rocm-cmake-5.0.2.ebuild b/dev-util/rocm-cmake/rocm-cmake-5.0.2-r1.ebuild |
43 |
similarity index 78% |
44 |
rename from dev-util/rocm-cmake/rocm-cmake-5.0.2.ebuild |
45 |
rename to dev-util/rocm-cmake/rocm-cmake-5.0.2-r1.ebuild |
46 |
index 947d1bfb9fc1..ac9cb2351f34 100644 |
47 |
--- a/dev-util/rocm-cmake/rocm-cmake-5.0.2.ebuild |
48 |
+++ b/dev-util/rocm-cmake/rocm-cmake-5.0.2-r1.ebuild |
49 |
@@ -20,7 +20,12 @@ LICENSE="MIT" |
50 |
SLOT="0/$(ver_cut 1-2)" |
51 |
RESTRICT="test" |
52 |
|
53 |
+PATCHES=( |
54 |
+ "${FILESDIR}"/${PN}-5.0.2-license.patch |
55 |
+) |
56 |
+ |
57 |
src_prepare() { |
58 |
- sed -e "s:set(ROCM_INSTALL_LIBDIR lib):set(ROCM_INSTALL_LIBDIR $(get_libdir)):" -i "${S}/share/rocm/cmake/ROCMInstallTargets.cmake" || die |
59 |
+ sed -e "/ROCM_INSTALL_LIBDIR/s:lib:$(get_libdir):" \ |
60 |
+ -i "${S}/share/rocm/cmake/ROCMInstallTargets.cmake" || die |
61 |
cmake_src_prepare |
62 |
} |