diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2019-05-17 10:56:53 +0300 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2019-05-17 10:57:16 +0300 |
commit | 188805e992e765bb55b7ae2bb2c9b4c44f53432b (patch) | |
tree | 2f09432fd9b92fd80f2635e22dfa0117957d8a26 /dev-libs/ocl-icd | |
parent | app-crypt/heimdal: security bump to 7.6.0 (diff) | |
download | gentoo-188805e992e765bb55b7ae2bb2c9b4c44f53432b.tar.gz gentoo-188805e992e765bb55b7ae2bb2c9b4c44f53432b.tar.bz2 gentoo-188805e992e765bb55b7ae2bb2c9b4c44f53432b.zip |
dev-libs/ocl-icd: Version bump drop old ruby, add new one
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'dev-libs/ocl-icd')
-rw-r--r-- | dev-libs/ocl-icd/ocl-icd-2.2.12-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/ocl-icd/ocl-icd-2.2.12-r1.ebuild b/dev-libs/ocl-icd/ocl-icd-2.2.12-r1.ebuild new file mode 100644 index 000000000000..7bc7cd5195e1 --- /dev/null +++ b/dev-libs/ocl-icd/ocl-icd-2.2.12-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby24 ruby25 ruby26" +inherit autotools flag-o-matic multilib-minimal ruby-single + +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" + +IUSE="+khronos-headers" + +BDEPEND="${RUBY_DEPS}" +RDEPEND="app-eselect/eselect-opencl" + +src_prepare() { + replace-flags -Os -O2 # bug 646122 + + default + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf --enable-pthread-once +} + +multilib_src_install() { + default + + # Drop .la files + find "${D}" -name '*.la' -delete || die + + OCL_DIR="/usr/$(get_libdir)/OpenCL/vendors/ocl-icd" + dodir ${OCL_DIR}/{,include} + + # Install vendor library + mv -f "${D}/usr/$(get_libdir)"/libOpenCL* "${ED}${OCL_DIR}" || die "Can't install vendor library" + + # Install vendor headers + if use khronos-headers; then + cp -r "${S}/khronos-headers/CL" "${ED}${OCL_DIR}/include" || die "Can't install vendor headers" + fi +} + +pkg_postinst() { + eselect opencl set --use-old ${PN} +} |