diff options
author | Benda Xu <heroxbd@gentoo.org> | 2022-05-02 10:52:14 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2022-05-02 10:54:19 +0800 |
commit | 3da277e90b2b2a1f9ec33c174e69049142771ecb (patch) | |
tree | d9d8ea2dbbf1ca10c677bc9ed52c678bd0d89d18 /dev-util | |
parent | dev-libs/libaio: add link to upstream bug (diff) | |
download | gentoo-3da277e90b2b2a1f9ec33c174e69049142771ecb.tar.gz gentoo-3da277e90b2b2a1f9ec33c174e69049142771ecb.tar.bz2 gentoo-3da277e90b2b2a1f9ec33c174e69049142771ecb.zip |
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@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/rocm-cmake/files/rocm-cmake-5.0.2-license.patch | 15 | ||||
-rw-r--r-- | dev-util/rocm-cmake/rocm-cmake-5.0.2-r1.ebuild (renamed from dev-util/rocm-cmake/rocm-cmake-5.0.2.ebuild) | 7 |
2 files changed, 21 insertions, 1 deletions
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 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 } |