public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-util/rocm-cmake/, dev-util/rocm-cmake/files/
@ 2022-05-02  2:54 Benda XU
  0 siblings, 0 replies; only message in thread
From: Benda XU @ 2022-05-02  2:54 UTC (permalink / raw
  To: gentoo-commits

commit:     3da277e90b2b2a1f9ec33c174e69049142771ecb
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon May  2 02:52:14 2022 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon May  2 02:54:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3da277e9

dev-util/rocm-cmake: do not install license files.

In Gentoo, license are managed by einstalldocs.

Closes: https://bugs.gentoo.org/835834
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 dev-util/rocm-cmake/files/rocm-cmake-5.0.2-license.patch  | 15 +++++++++++++++
 ...rocm-cmake-5.0.2.ebuild => rocm-cmake-5.0.2-r1.ebuild} |  7 ++++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

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
new file mode 100644
index 000000000000..b4a73e1bc2ed
--- /dev/null
+++ b/dev-util/rocm-cmake/files/rocm-cmake-5.0.2-license.patch
@@ -0,0 +1,15 @@
+This is not needed. Gentoo automatically collect license files into
+the documentation directory.
+
+Index: rocm-cmake-rocm-5.0.2/share/rocm/cmake/ROCMCreatePackage.cmake
+===================================================================
+--- rocm-cmake-rocm-5.0.2.orig/share/rocm/cmake/ROCMCreatePackage.cmake
++++ rocm-cmake-rocm-5.0.2/share/rocm/cmake/ROCMCreatePackage.cmake
+@@ -230,7 +230,6 @@ macro(rocm_create_package)
+             ")
+         endforeach()
+     endif()
+-    rocm_setup_license(${PARSE_HEADER_ONLY})
+     if(PARSE_COMPONENTS)
+         rocm_set_comp_cpackvar(PARSE_HEADER_ONLY "${PARSE_COMPONENTS}")
+     endif()

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
similarity index 78%
rename from dev-util/rocm-cmake/rocm-cmake-5.0.2.ebuild
rename to dev-util/rocm-cmake/rocm-cmake-5.0.2-r1.ebuild
index 947d1bfb9fc1..ac9cb2351f34 100644
--- a/dev-util/rocm-cmake/rocm-cmake-5.0.2.ebuild
+++ b/dev-util/rocm-cmake/rocm-cmake-5.0.2-r1.ebuild
@@ -20,7 +20,12 @@ LICENSE="MIT"
 SLOT="0/$(ver_cut 1-2)"
 RESTRICT="test"
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-5.0.2-license.patch
+)
+
 src_prepare() {
-	sed -e "s:set(ROCM_INSTALL_LIBDIR lib):set(ROCM_INSTALL_LIBDIR $(get_libdir)):" -i "${S}/share/rocm/cmake/ROCMInstallTargets.cmake" || die
+	sed -e "/ROCM_INSTALL_LIBDIR/s:lib:$(get_libdir):" \
+		-i "${S}/share/rocm/cmake/ROCMInstallTargets.cmake" || die
 	cmake_src_prepare
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-02  2:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-02  2:54 [gentoo-commits] repo/gentoo:master commit in: dev-util/rocm-cmake/, dev-util/rocm-cmake/files/ Benda XU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox