diff options
author | Craig Andrews <candrews@gentoo.org> | 2019-10-04 17:07:09 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2019-10-04 17:07:09 -0400 |
commit | 56880fb50d33dc2aa7d25bd2bfd2b7c466c253ce (patch) | |
tree | 11fefea22a0fb8e21fb0b8c817e1097f946e303a /dev-libs | |
parent | dev-util/rocm-cmake: 2.9.0 version bump (diff) | |
download | gentoo-56880fb50d33dc2aa7d25bd2bfd2b7c466c253ce.tar.gz gentoo-56880fb50d33dc2aa7d25bd2bfd2b7c466c253ce.tar.bz2 gentoo-56880fb50d33dc2aa7d25bd2bfd2b7c466c253ce.zip |
dev-libs/roct-thunk-interface: Set CPACK_PACKAGING_INSTALL_PREFIX
See: https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/40
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-libs')
3 files changed, 57 insertions, 6 deletions
diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0-r1.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0-r1.ebuild new file mode 100644 index 000000000000..84d01d8e830e --- /dev/null +++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils linux-info + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/" + inherit git-r3 +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/roc-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCT-Thunk-Interface-roc-${PV}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Thunk Interface" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" +CONFIG_CHECK="~NUMA ~HSA_AMD ~HMM_MIRROR ~ZONE_DEVICE" +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" + +RDEPEND="sys-process/numactl + sys-apps/pciutils" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die + cmake-utils_src_prepare +} +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/" + -DCPACK_PACKAGING_INSTALL_PREFIX="${EPREFIX}/usr" + ) + cmake-utils_src_configure +} +src_compile() { + cmake-utils_src_compile build-dev +} +src_install() { + cmake-utils_src_install install-dev +} diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0.ebuild index c69a7ea83301..759da3dcd08d 100644 --- a/dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0.ebuild +++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0.ebuild @@ -13,9 +13,6 @@ else S="${WORKDIR}/ROCT-Thunk-Interface-roc-${PV}" KEYWORDS="~amd64" fi -PATCHES=( - "${FILESDIR}/${PN}-2.6.0-pc-prefix.patch" -) DESCRIPTION="Radeon Open Compute Thunk Interface" HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" @@ -31,6 +28,13 @@ src_prepare() { sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die cmake-utils_src_prepare } +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/" + -DCPACK_PACKAGING_INSTALL_PREFIX="${EPREFIX}/usr/" + ) + cmake-utils_src_configure +} src_compile() { cmake-utils_src_compile build-dev } diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-9999.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-9999.ebuild index c69a7ea83301..84d01d8e830e 100644 --- a/dev-libs/roct-thunk-interface/roct-thunk-interface-9999.ebuild +++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-9999.ebuild @@ -13,9 +13,6 @@ else S="${WORKDIR}/ROCT-Thunk-Interface-roc-${PV}" KEYWORDS="~amd64" fi -PATCHES=( - "${FILESDIR}/${PN}-2.6.0-pc-prefix.patch" -) DESCRIPTION="Radeon Open Compute Thunk Interface" HOMEPAGE="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" @@ -31,6 +28,13 @@ src_prepare() { sed -e "s:get_version ( \"1.0.0\" ):get_version ( \"${PV}\" ):" -i CMakeLists.txt || die cmake-utils_src_prepare } +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/" + -DCPACK_PACKAGING_INSTALL_PREFIX="${EPREFIX}/usr" + ) + cmake-utils_src_configure +} src_compile() { cmake-utils_src_compile build-dev } |