From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D0085158090 for ; Mon, 2 May 2022 02:54:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06AA7E0A5E; Mon, 2 May 2022 02:54:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CD964E0A5E for ; Mon, 2 May 2022 02:54:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6AA8C3410C8 for ; Mon, 2 May 2022 02:54:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E1A8A344 for ; Mon, 2 May 2022 02:54:26 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1651460059.3da277e90b2b2a1f9ec33c174e69049142771ecb.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rocm-cmake/, dev-util/rocm-cmake/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rocm-cmake/files/rocm-cmake-5.0.2-license.patch dev-util/rocm-cmake/rocm-cmake-5.0.2-r1.ebuild dev-util/rocm-cmake/rocm-cmake-5.0.2.ebuild X-VCS-Directories: dev-util/rocm-cmake/files/ dev-util/rocm-cmake/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: 3da277e90b2b2a1f9ec33c174e69049142771ecb X-VCS-Branch: master Date: Mon, 2 May 2022 02:54:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f47a7b23-2ec0-4519-b4b1-703e342c50b2 X-Archives-Hash: bebbd4c5fa6601c89ff97a80bb6d4432 commit: 3da277e90b2b2a1f9ec33c174e69049142771ecb Author: Benda Xu gentoo org> AuthorDate: Mon May 2 02:52:14 2022 +0000 Commit: Benda XU gentoo 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 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 }