From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D2CD9138334 for ; Fri, 17 May 2019 07:57:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D3038E0899; Fri, 17 May 2019 07:57:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B707BE0899 for ; Fri, 17 May 2019 07:57:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 83168344918 for ; Fri, 17 May 2019 07:57:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 354C75E3 for ; Fri, 17 May 2019 07:57:35 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1558079836.188805e992e765bb55b7ae2bb2c9b4c44f53432b.alexxy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/ocl-icd/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/ocl-icd/ocl-icd-2.2.12-r1.ebuild X-VCS-Directories: dev-libs/ocl-icd/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: 188805e992e765bb55b7ae2bb2c9b4c44f53432b X-VCS-Branch: master Date: Fri, 17 May 2019 07:57:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 90f10b21-fd5b-4cfd-a3f8-626297940e30 X-Archives-Hash: 630385f1818428d8129080793ff46e68 commit: 188805e992e765bb55b7ae2bb2c9b4c44f53432b Author: Alexey Shvetsov gentoo org> AuthorDate: Fri May 17 07:56:53 2019 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Fri May 17 07:57:16 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=188805e9 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 gentoo.org> dev-libs/ocl-icd/ocl-icd-2.2.12-r1.ebuild | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) 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 00000000000..7bc7cd5195e --- /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} +}