public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rocm-cmake/, dev-util/rocm-cmake/files/
Date: Mon,  2 May 2022 02:54:26 +0000 (UTC)	[thread overview]
Message-ID: <1651460059.3da277e90b2b2a1f9ec33c174e69049142771ecb.heroxbd@gentoo> (raw)

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
 }


                 reply	other threads:[~2022-05-02  2:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1651460059.3da277e90b2b2a1f9ec33c174e69049142771ecb.heroxbd@gentoo \
    --to=heroxbd@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox