diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-01-13 21:17:51 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-14 20:23:14 +0100 |
commit | 7a550418fb1a11ceceaed553ef6e12c28eedd805 (patch) | |
tree | 1dd08965b3d87e943855cf094a72e5260c342112 /dev-build | |
parent | Move {dev-util → dev-build}/ignition-cmake (diff) | |
download | gentoo-7a550418fb1a11ceceaed553ef6e12c28eedd805.tar.gz gentoo-7a550418fb1a11ceceaed553ef6e12c28eedd805.tar.bz2 gentoo-7a550418fb1a11ceceaed553ef6e12c28eedd805.zip |
Move {dev-util → dev-build}/rocm-cmake
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-build')
-rw-r--r-- | dev-build/rocm-cmake/Manifest | 2 | ||||
-rw-r--r-- | dev-build/rocm-cmake/files/rocm-cmake-5.0.2-license.patch | 15 | ||||
-rw-r--r-- | dev-build/rocm-cmake/metadata.xml | 15 | ||||
-rw-r--r-- | dev-build/rocm-cmake/rocm-cmake-5.4.3.ebuild | 31 | ||||
-rw-r--r-- | dev-build/rocm-cmake/rocm-cmake-5.7.1.ebuild | 31 |
5 files changed, 94 insertions, 0 deletions
diff --git a/dev-build/rocm-cmake/Manifest b/dev-build/rocm-cmake/Manifest new file mode 100644 index 000000000000..cc6276d1b333 --- /dev/null +++ b/dev-build/rocm-cmake/Manifest @@ -0,0 +1,2 @@ +DIST rocm-cmake-5.4.3.tar.gz 46215 BLAKE2B ecdf93829ae77c1046157e4c8f219b74ebd30798e11be5fd270fe8dd568cbe5bbf25abdafbe18b0dcb185d97ca535a9aa2a1dfb7d973d17f167776b120f553d3 SHA512 fe039ea5bcab142c8cd3723aa570253f13f03fe5c500b0828275cc246a034ed52b9b7a47994e4caf72ae0402acf4e73e80b28224cc7874d85f94fd8e0e42947c +DIST rocm-cmake-5.7.1.tar.gz 50940 BLAKE2B f3a36cedfc15af69819b576bf8f8bdfe7b49e5dd1d4db57f707295f14a8d64904745f454fc211b28adfde369c82cb42a061c05b6675679e11a3946f6ebfea6d5 SHA512 1265ed8e23a04f9cff57b43f815e8fbbb1a3f200bc040e01ceaa92c322088c9ef04da795b09d732c6466dc9a3fefc505b8b474d3f18f55cff491758aa53a6e6b diff --git a/dev-build/rocm-cmake/files/rocm-cmake-5.0.2-license.patch b/dev-build/rocm-cmake/files/rocm-cmake-5.0.2-license.patch new file mode 100644 index 000000000000..b4a73e1bc2ed --- /dev/null +++ b/dev-build/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-build/rocm-cmake/metadata.xml b/dev-build/rocm-cmake/metadata.xml new file mode 100644 index 000000000000..e13f2f7b5728 --- /dev/null +++ b/dev-build/rocm-cmake/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <maintainer type="person"> + <email>candrews@gentoo.org</email> + <name>Craig Andrews</name> + </maintainer> + <upstream> + <remote-id type="github">RadeonOpenCompute/rocm-cmake</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-build/rocm-cmake/rocm-cmake-5.4.3.ebuild b/dev-build/rocm-cmake/rocm-cmake-5.4.3.ebuild new file mode 100644 index 000000000000..706498981138 --- /dev/null +++ b/dev-build/rocm-cmake/rocm-cmake-5.4.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/rocm-cmake/" + inherit git-r3 +else + SRC_URI="https://github.com/RadeonOpenCompute/rocm-cmake/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/rocm-cmake-rocm-${PV}" +fi + +DESCRIPTION="Radeon Open Compute CMake Modules" +HOMEPAGE="https://github.com/RadeonOpenCompute/rocm-cmake" +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-5.0.2-license.patch +) + +src_prepare() { + sed -e "/ROCM_INSTALL_LIBDIR/s:lib:$(get_libdir):" \ + -i "${S}/share/rocm/cmake/ROCMInstallTargets.cmake" || die + cmake_src_prepare +} diff --git a/dev-build/rocm-cmake/rocm-cmake-5.7.1.ebuild b/dev-build/rocm-cmake/rocm-cmake-5.7.1.ebuild new file mode 100644 index 000000000000..706498981138 --- /dev/null +++ b/dev-build/rocm-cmake/rocm-cmake-5.7.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/rocm-cmake/" + inherit git-r3 +else + SRC_URI="https://github.com/RadeonOpenCompute/rocm-cmake/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/rocm-cmake-rocm-${PV}" +fi + +DESCRIPTION="Radeon Open Compute CMake Modules" +HOMEPAGE="https://github.com/RadeonOpenCompute/rocm-cmake" +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-5.0.2-license.patch +) + +src_prepare() { + sed -e "/ROCM_INSTALL_LIBDIR/s:lib:$(get_libdir):" \ + -i "${S}/share/rocm/cmake/ROCMInstallTargets.cmake" || die + cmake_src_prepare +} |