summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2018-09-27 10:49:28 +0100
committerMarek Szuba <marecki@gentoo.org>2018-09-27 10:49:28 +0100
commit97e510e65b2aded95672ac055830d47603690b2f (patch)
tree5954021ced05cf508148bfe1803ab5876640fe32 /dev-libs/amdgpu-pro-opencl
parentdev-libs/beignet: run "eselect opencl" in pkg_postinst() (diff)
downloadgentoo-97e510e65b2aded95672ac055830d47603690b2f.tar.gz
gentoo-97e510e65b2aded95672ac055830d47603690b2f.tar.bz2
gentoo-97e510e65b2aded95672ac055830d47603690b2f.zip
dev-libs/amdgpu-pro-opencl: automate invoking "eselect opencl"
Instead of telling the user in pkg_postinst() to run it, just run it there outselves - with --use-old to honour possible earlier choices. Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'dev-libs/amdgpu-pro-opencl')
-rw-r--r--dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild12
-rw-r--r--dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild11
2 files changed, 11 insertions, 12 deletions
diff --git a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild
index fd8832619846..b9f388b4b18e 100644
--- a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild
+++ b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild
@@ -18,8 +18,11 @@ KEYWORDS="~amd64"
RESTRICT="mirror fetch strip"
-DEPEND="dev-util/patchelf"
-RDEPEND="dev-libs/ocl-icd"
+COMMON="app-eselect/eselect-opencl
+ dev-libs/ocl-icd"
+DEPEND="${COMMON}
+ dev-util/patchelf"
+RDEPEND="${COMMON}"
QA_PREBUILT="/opt/${SUPER_PN}/lib*/*"
@@ -74,8 +77,5 @@ pkg_postinst() {
ewarn "has become officially supported by Gentoo."
fi
- elog "AMD OpenCL driver relies on dev-libs/ocl-icd to work. To enable it, please run"
- elog ""
- elog " eselect opencl set ocl-icd"
- elog ""
+ "${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd
}
diff --git a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild
index 241e495069ac..03574c8b01e7 100644
--- a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild
+++ b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild
@@ -18,8 +18,10 @@ KEYWORDS="~amd64"
RESTRICT="mirror fetch strip"
-DEPEND=""
-RDEPEND="dev-libs/ocl-icd"
+COMMON="app-eselect/eselect-opencl
+ dev-libs/ocl-icd"
+DEPEND="${COMMON}"
+RDEPEND="${COMMON}"
QA_PREBUILT="/opt/${SUPER_PN}/lib*/*"
@@ -59,8 +61,5 @@ pkg_postinst() {
ewarn "has become officially supported by Gentoo."
fi
- elog "AMD OpenCL driver relies on dev-libs/ocl-icd to work. To enable it, please run"
- elog ""
- elog " eselect opencl set ocl-icd"
- elog ""
+ "${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd
}