summaryrefslogtreecommitdiff
path: root/dev-libs/ocl-icd/ocl-icd-2.3.0-r100.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-07-12 09:02:45 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-07-12 09:02:45 +0100
commitda5ff141bbaa43e8e6b487a40decebfdcd5b331b (patch)
tree7b0d39aedd6c1f5b4c91a57d78431ce55e20bb23 /dev-libs/ocl-icd/ocl-icd-2.3.0-r100.ebuild
parentfc62d913970b1d0b6a6696ada5370befb66e1f63 (diff)
dev-libs/ocl-icd : user ruby27
Diffstat (limited to 'dev-libs/ocl-icd/ocl-icd-2.3.0-r100.ebuild')
-rw-r--r--dev-libs/ocl-icd/ocl-icd-2.3.0-r100.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/ocl-icd/ocl-icd-2.3.0-r100.ebuild b/dev-libs/ocl-icd/ocl-icd-2.3.0-r100.ebuild
new file mode 100644
index 00000000..5f85dbb1
--- /dev/null
+++ b/dev-libs/ocl-icd/ocl-icd-2.3.0-r100.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools flag-o-matic multilib-minimal
+
+DESCRIPTION="Alternative to vendor specific OpenCL ICD loaders"
+HOMEPAGE="https://github.com/OCL-dev/ocl-icd"
+SRC_URI="https://github.com/OCL-dev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Does nothing now but by keeping it here we avoid having to have virtual/opencl
+# handle ebuilds both with and without this flag.
+IUSE="+khronos-headers"
+
+BDEPEND="dev-lang/ruby:2.7
+ virtual/rubygems"
+DEPEND=">=dev-util/opencl-headers-2021.04.29"
+RDEPEND="${DEPEND}
+ !app-eselect/eselect-opencl
+ !dev-libs/opencl-icd-loader"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-new-headers.patch
+)
+
+src_prepare() {
+ replace-flags -Os -O2 # bug 646122
+
+ default
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # dev-util/opencl-headers ARE official Khronos Group headers, what this option
+ # does is disable the use of the bundled ones
+ ECONF_SOURCE="${S}" econf --enable-pthread-once --disable-official-khronos-headers
+}
+
+multilib_src_compile() {
+ emake RUBY="$(type -P ruby27)"
+}
+
+multilib_src_install() {
+ default
+
+ # Drop .la files
+ find "${ED}" -name '*.la' -delete || die
+}