commit:     56880fb50d33dc2aa7d25bd2bfd2b7c466c253ce
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  4 21:07:09 2019 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Fri Oct  4 21:07:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56880fb5

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 <AT> gentoo.org>

 ...rface-2.9.0.ebuild => roct-thunk-interface-2.9.0-r1.ebuild} | 10 +++++++---
 .../roct-thunk-interface/roct-thunk-interface-2.9.0.ebuild     | 10 +++++++---
 dev-libs/roct-thunk-interface/roct-thunk-interface-9999.ebuild | 10 +++++++---
 3 files changed, 21 insertions(+), 9 deletions(-)

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-r1.ebuild
similarity index 85%
copy from dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0.ebuild
copy to dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0-r1.ebuild
index c69a7ea8330..84d01d8e830 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-r1.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-2.9.0.ebuild 
b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.9.0.ebuild
index c69a7ea8330..759da3dcd08 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 c69a7ea8330..84d01d8e830 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
 }

Reply via email to