diff options
author | Craig Andrews <candrews@gentoo.org> | 2019-07-25 15:45:30 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2019-08-07 13:38:45 -0400 |
commit | 8f1b624402f001aab885c4cb1f88d022f3ef25db (patch) | |
tree | b3496ddfab9045eda796c57b74c82b94381228d4 /dev-util/rocm-cmake/rocm-cmake-9999.ebuild | |
parent | dev-libs/rocr-runtime: add -9999 version (diff) | |
download | gentoo-8f1b624402f001aab885c4cb1f88d022f3ef25db.tar.gz gentoo-8f1b624402f001aab885c4cb1f88d022f3ef25db.tar.bz2 gentoo-8f1b624402f001aab885c4cb1f88d022f3ef25db.zip |
dev-util/rocm-cmake: Radeon Open Compute CMake Modules
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-util/rocm-cmake/rocm-cmake-9999.ebuild')
-rw-r--r-- | dev-util/rocm-cmake/rocm-cmake-9999.ebuild | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-util/rocm-cmake/rocm-cmake-9999.ebuild b/dev-util/rocm-cmake/rocm-cmake-9999.ebuild new file mode 100644 index 000000000000..eee840d3674b --- /dev/null +++ b/dev-util/rocm-cmake/rocm-cmake-9999.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +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/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute CMake Modules" +HOMEPAGE="https://github.com/RadeonOpenCompute/rocm-cmake" +LICENSE="MIT" +SLOT="0" +RESTRICT="test" + +src_prepare() { + sed -e "s:set(ROCM_INSTALL_LIBDIR lib):set(ROCM_INSTALL_LIBDIR $(get_libdir)):" -i "${S}/share/rocm/cmake/ROCMInstallTargets.cmake" || die + cmake-utils_src_prepare +} |