mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-eselect/eselect-opencl: tree clean.
Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
DIST eselect-opencl-1.1.0-r1.tar.xz 3276 BLAKE2B d1475ebedbe29cbb0de054d170d7de62000445954006a46946fa58a7c75e9445fe6bc67c7da204a0e0364d6b3df043c42ab8bc29b2d50d4fe392f3c37d4e87f8 SHA512 b2be1e2035fda4e119f03e9ef84fbf1f09fc0bd5475d3fe30d2330dac76180930451d78dbb9e158c34dee9ce524076434254757b594e84dea96341e52ef13c14
|
||||
DIST opencl-cpp-headers.tar 716800 BLAKE2B 591bf2e36c8940a6a73da028ac74df4f64737ebce4686b961e6cc13336547590e91c05e6e24c0aab9000d2ab90261885571f3bf85e1797110865532738565586 SHA512 b04c653f213b3cc99f0bbe3c589cf8b2f8f6144d61a85a284a60de92fd5148ff3d45204b4c6a08c205fc307300743bcf4654be2b8b18dd970b5d645ac2eec2f5
|
||||
DIST opencl10.zip 21701 BLAKE2B 7b4e2fe1985e3e6374aa628ae34884b2d130bdd57c5e3af2d6849c32f72ef69b50471b3f8ecb6dc0e75ffc828a692cb84a8d99f0e8721dab8d2100f9380ce27e SHA512 ce3ad95d7314df4b55284d48c54fb7dfca0a218d0e36a732414b53dc7bdcc53199167b6810a3e3ebdd8abf91a4904acd471733b9130e3a38ec0b3e9ba918b691
|
||||
DIST opencl11.zip 25496 BLAKE2B abd8aefddb31408e71e36b8610cde7b568debca99e99f310e5b30de73778a18520e52c535d52f63596edf80f7dcda4f9fc6f7c300b4c560f5d79a3b851dcf88a SHA512 c66664e940a51ceb951a78895df87a5dc3139e76b3f847af43c54400d37f243a390b94aab290d32044e19bdba63d0ee8af94955af9a83326c7ab353242496fcc
|
||||
DIST opencl12.zip 33311 BLAKE2B 0f0c62856162ec1cfd42c1b53979079e0f8fd389fd2b3e05676e029705c29a65e3b84d6bc822aaedd9d15959bc07adfbd444aafb827f09f12b4dd625e868c902 SHA512 af7bb5865372a900a5b79086a54709abc99f6a3afe105adb6fdd276e30ef5c5be576421c206768e0b19e82f83e33727b6f246dfc71a0ee1d847e52d6db6130a8
|
||||
DIST opencl20.zip 34892 BLAKE2B a71a00a99825ebdde2ddba0c23de3af8880fb44ac235f399ed58936c9193ae79429219661daccac2d7d6daeb87c514308ec6b782db33899e60a2ae912d0876f7 SHA512 e4c6f68db91e0946de5a0f2aecd8fbc152f316350088a386cad9de37b377b6e8c362e93e3c2b09b3dce5f4659c753764ec8906b50a86a5107d2c29e6ffcfe71f
|
||||
DIST opencl21.zip 35514 BLAKE2B 21d23d9104712df47f7734b3c3b6f1669c88b5c75ca21fe6ad2ef21db83620c0585cc0b8d567d9fd7a755d579e7d291cf20577d025f857339ad191a1d65ee461 SHA512 2b6eafc26ff522407f06509197f5eefbb321806ac3f65bb881db4532da6c0e00b9c397468d55881578b116a1c8d05a0599f9f5727f62eb545394a2cecf5d95c0
|
||||
@@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit multilib
|
||||
|
||||
DESCRIPTION="Utility to change the OpenCL implementation being used"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
|
||||
# Source:
|
||||
# http://www.khronos.org/registry/cl/api/${CL_ABI}/opencl.h
|
||||
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_platform.h
|
||||
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.h
|
||||
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_ext.h
|
||||
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl.h
|
||||
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl_ext.h
|
||||
# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.hpp
|
||||
|
||||
# Using copy by Mario Kicherer #496418
|
||||
|
||||
SRC_URI="
|
||||
https://dev.gentoo.org/~xarthisius/distfiles/${P}-r1.tar.xz
|
||||
https://github.com/KhronosGroup/OpenCL-Headers/archive/opencl10.zip
|
||||
https://github.com/KhronosGroup/OpenCL-Headers/archive/opencl11.zip
|
||||
https://github.com/KhronosGroup/OpenCL-Headers/archive/opencl12.zip
|
||||
https://github.com/KhronosGroup/OpenCL-Headers/archive/opencl20.zip
|
||||
https://github.com/KhronosGroup/OpenCL-Headers/archive/opencl21.zip
|
||||
http://packages.gentooexperimental.org/opencl-cpp-headers.tar
|
||||
"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
app-arch/unzip
|
||||
app-arch/xz-utils"
|
||||
RDEPEND=">=app-admin/eselect-1.2.4"
|
||||
|
||||
pkg_postinst() {
|
||||
local impl="$(eselect opencl show)"
|
||||
if [[ -n "${impl}" && "${impl}" != '(none)' ]] ; then
|
||||
eselect opencl set "${impl}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/eselect/modules
|
||||
doins opencl.eselect
|
||||
#doman opencl.eselect.5
|
||||
|
||||
local headers=( opencl.h cl_platform.h cl.h cl_ext.h cl_gl.h cl_gl_ext.h cl_egl.h )
|
||||
|
||||
# We install all versions of OpenCL headers
|
||||
for CL_ABI in 1.0 1.1 1.2 2.0 2.1; do
|
||||
mkdir -p "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}"
|
||||
for f in ${headers[@]}; do
|
||||
cp "${WORKDIR}"/OpenCL-Headers-opencl${CL_ABI/./}/${f} "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/${f}" > /dev/null
|
||||
done
|
||||
done
|
||||
|
||||
for i in 1.1 1.2 2.1; do
|
||||
cp "${WORKDIR}"/$i/cl.hpp "${ED}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/"
|
||||
done
|
||||
# Create symlinks to newest. Maybe this should be switchable?
|
||||
for f in ${headers[@]}; do
|
||||
dosym "../../$(get_libdir)/OpenCL/global/include/CL-1.2/${f}" "/usr/include/CL/${f}"
|
||||
done
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>patrick@gentoo.org</email>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
Utility to switch OpenCL implementations between various providers.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">anyc/opencl-headers</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -642,11 +642,6 @@ dev-tex/crosstex
|
||||
# Bug #629272
|
||||
app-admin/apg
|
||||
|
||||
# Matt Turner <mattst88@gentoo.org> (2020-08-11)
|
||||
# No longer needed with virtual/opencl-3
|
||||
# Masked for removal in 30 days. Bug #728284
|
||||
app-eselect/eselect-opencl
|
||||
|
||||
# Matt Turner <mattst88@gentoo.org> (2020-08-11)
|
||||
# Replaced by media-libs/libglvnd.
|
||||
# Masked for removal in 30 days. Bug #728286
|
||||
|
||||
Reference in New Issue
Block a user