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 1E0EA138334 for ; Thu, 14 Jun 2018 14:32:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FB82E0954; Thu, 14 Jun 2018 14:32:27 +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 0CE0CE0985 for ; Thu, 14 Jun 2018 14:32:26 +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 618B9335C7E for ; Thu, 14 Jun 2018 14:32:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CDEA02CF for ; Thu, 14 Jun 2018 14:32:22 +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: <1528986732.f60fa1adf7f70561409f47dc241519b3e8b22fd4.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libclc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild X-VCS-Directories: dev-libs/libclc/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f60fa1adf7f70561409f47dc241519b3e8b22fd4 X-VCS-Branch: master Date: Thu, 14 Jun 2018 14:32:22 +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: f038577d-11f9-43b6-9f13-2a3b0071fae2 X-Archives-Hash: f9eb5cd715026463b3894be43afe8212 commit: f60fa1adf7f70561409f47dc241519b3e8b22fd4 Author: Jan Vesely gmail com> AuthorDate: Sun Jun 10 19:02:48 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jun 14 14:32:12 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f60fa1ad dev-libs/libclc: Make use of VIDEO_CARDS use flags Drop runtime depend on clang. Closes: https://bugs.gentoo.org/603454 dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild b/dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild index ee4e3e25904..41bd87a9922 100644 --- a/dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild +++ b/dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild @@ -31,17 +31,18 @@ fi LICENSE="|| ( MIT BSD )" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="" +IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_r600 video_cards_radeonsi" +IUSE="${IUSE_VIDEO_CARDS}" +REQUIRED_USE="|| ( ${IUSE_VIDEO_CARDS} )" -RDEPEND=" +DEPEND=" || ( sys-devel/clang:7 sys-devel/clang:6 sys-devel/clang:5 sys-devel/clang:4 >=sys-devel/clang-3.9:0 - )" -DEPEND="${RDEPEND} + ) ${PYTHON_DEPS}" LLVM_MAX_SLOT=7 @@ -63,10 +64,18 @@ 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" || die + --prefix="${EPREFIX}/usr" "${libclc_targets[@]}" || die } src_compile() {