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 EB79B138334 for ; Sun, 16 Sep 2018 17:04:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9371EE096E; Sun, 16 Sep 2018 17:04:48 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 55A3EE08AD for ; Sun, 16 Sep 2018 17:04:48 +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 C6221335CD1 for ; Sun, 16 Sep 2018 17:04:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 48B483C6 for ; Sun, 16 Sep 2018 17:04:43 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1537117479.f337fc8751de6b1b3869a94f8e0a916f6da78c14.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libclc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libclc/Manifest dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild X-VCS-Directories: dev-libs/libclc/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f337fc8751de6b1b3869a94f8e0a916f6da78c14 X-VCS-Branch: master Date: Sun, 16 Sep 2018 17:04:43 +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-Archives-Salt: f4bcf286-11c9-432d-bb17-9f6a31f77f96 X-Archives-Hash: 11da8c3fee20904e38d968be08caf680 commit: f337fc8751de6b1b3869a94f8e0a916f6da78c14 Author: Jan Vesely gmail com> AuthorDate: Sun Sep 16 15:01:32 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Sep 16 17:04:39 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f337fc87 dev-libs/libclc: Bump snapshot to 20180915. Signed-off-by: Jan Vesely gmail.com> dev-libs/libclc/Manifest | 1 + dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild | 83 +++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/dev-libs/libclc/Manifest b/dev-libs/libclc/Manifest index f6fb7c25163..9ddddd29747 100644 --- a/dev-libs/libclc/Manifest +++ b/dev-libs/libclc/Manifest @@ -1,2 +1,3 @@ DIST libclc-0.2.0_pre20180319.tar.gz 161608 BLAKE2B b8e4f2d475c0425cbe5b41a5ba3b7b40d14c045f5c23d007e87cdfedc7a01a8317218e5f3b881e944256f04b9fb68a130bff2a137e51cb961b3d5bb7f2e2261d SHA512 5a4130eeb416f90901b66708adc17c825baa757d00d983a12e217f36503e4ed5d208f3a49cc26d7f9b71134ee3d258748153bf52cf7769bcbc06ec0510087a36 DIST libclc-0.2.0_pre20180610.tar.gz 170102 BLAKE2B 3f8c33a9961db34e68cebc328a88a71173000972b5540d099fa79fe89fd186b7f2f8791a86b45b1be135383d26a92fd4ccdc2827b5620b5f86f0b48467fc092f SHA512 0c75c3e7b81754c175c5c43614ad313cda2fa09a1865794c904675b8d2527f78ffa357178f7d4a471b52ac3d7d96b0184303439b69060df4bf482a01871fcb95 +DIST libclc-0.2.0_pre20180915.tar.gz 170385 BLAKE2B 43a90347936be5ad383fe4e4b06523aac455596d6cb1fc58038811ea19b4f6ab2091ffc345e68ff2ad7f7f1615713085000711b31b9d1ad3911a85bc0db93d5b SHA512 5b8e68f7683d72390d8f9c263e15a54b4b4613b73eff2bf3881d7a35d6480468693a62dcaed159fd8421ae80768d6aaebcd6c33163b082c0a2cf15581d37dcab diff --git a/dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild b/dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild new file mode 100644 index 00000000000..014415e2850 --- /dev/null +++ b/dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) + +EGIT_REPO_URI="https://llvm.org/git/${PN}.git + https://github.com/llvm-mirror/${PN}.git" +EGIT_COMMIT="dabae5a2afb78cba0320a86e3f5f0b5dc83e077c" + +if [[ ${PV} = 9999* ]]; then + GIT_ECLASS="git-r3" + EXPERIMENTAL="true" +else + GIT_ECLASS="" + S="${WORKDIR}/libclc-${EGIT_COMMIT}" +fi + +inherit llvm prefix python-any-r1 toolchain-funcs ${GIT_ECLASS} + +DESCRIPTION="OpenCL C library" +HOMEPAGE="http://libclc.llvm.org/" + +if [[ ${PV} = 9999* ]]; then + SRC_URI="${SRC_PATCHES}" +else + SRC_URI="https://github.com/llvm-mirror/libclc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz + ${SRC_PATCHES}" +fi + +LICENSE="|| ( MIT BSD )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_r600 video_cards_radeonsi" +IUSE="${IUSE_VIDEO_CARDS}" +REQUIRED_USE="|| ( ${IUSE_VIDEO_CARDS} )" + +DEPEND=" + || ( + sys-devel/clang:7 + sys-devel/clang:6 + sys-devel/clang:5 + sys-devel/clang:4 + >=sys-devel/clang-3.9:0 + ) + ${PYTHON_DEPS}" + +LLVM_MAX_SLOT=7 + +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +src_prepare() { + default + if use prefix; then + hprefixify configure.py + fi +} + +pkg_setup() { + # we do not need llvm_pkg_setup + python-any-r1_pkg_setup +} + +src_configure() { + local libclc_targets=() + + use video_cards_nvidia && libclc_targets+=("nvptx--" "nvptx64--" "nvptx--nvidiacl" "nvptx64--nvidiacl") + use video_cards_r600 && libclc_targets+=("r600--") + use video_cards_radeonsi && libclc_targets+=("amdgcn--" "amdgcn-mesa-mesa3d" "amdgcn--amdhsa") + + [[ ${#libclc_targets[@]} ]] || die "libclc target missing!" + + ./configure.py \ + --with-cxx-compiler="$(tc-getCXX)" \ + --with-llvm-config="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" \ + --prefix="${EPREFIX}/usr" "${libclc_targets[@]}" || die +} + +src_compile() { + emake VERBOSE=1 +}