Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libclc/
Date: Fri, 24 May 2019 22:23:13
Message-Id: 1558736445.b3e2846407b0e3f103f48a8a6b5c24bd00bac9ab.mgorny@gentoo
1 commit: b3e2846407b0e3f103f48a8a6b5c24bd00bac9ab
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 24 22:20:45 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 24 22:20:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3e28464
7
8 dev-libs/libclc: Drop old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-libs/libclc/Manifest | 1 -
13 dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild | 83 -------------------------
14 2 files changed, 84 deletions(-)
15
16 diff --git a/dev-libs/libclc/Manifest b/dev-libs/libclc/Manifest
17 index ba30fe4a6a6..c7f1e56b71a 100644
18 --- a/dev-libs/libclc/Manifest
19 +++ b/dev-libs/libclc/Manifest
20 @@ -1,2 +1 @@
21 -DIST libclc-0.2.0_pre20180915.tar.gz 170385 BLAKE2B 43a90347936be5ad383fe4e4b06523aac455596d6cb1fc58038811ea19b4f6ab2091ffc345e68ff2ad7f7f1615713085000711b31b9d1ad3911a85bc0db93d5b SHA512 5b8e68f7683d72390d8f9c263e15a54b4b4613b73eff2bf3881d7a35d6480468693a62dcaed159fd8421ae80768d6aaebcd6c33163b082c0a2cf15581d37dcab
22 DIST libclc-0.2.0_pre20190313.tar.gz 176803 BLAKE2B c9ecd5053685c2de89d92ae4e9cc9e9f8bee24ca05e5ddca6fffd0b45356b7d4a96b54d9bebf316624e0a49594a33ebb156ae6c4b963093bdc6c1067548b2bd0 SHA512 22813bcd76e77c018acbdf2a3d3d300c2996e169c17729726ae8a93c39f85033cfa1f6d43907a7c026451bcdfcce6fbdc64a202961492aa951ef1b818c3f9335
23
24 diff --git a/dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild b/dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild
25 deleted file mode 100644
26 index fb844443dd3..00000000000
27 --- a/dev-libs/libclc/libclc-0.2.0_pre20180915.ebuild
28 +++ /dev/null
29 @@ -1,83 +0,0 @@
30 -# Copyright 1999-2018 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=6
34 -PYTHON_COMPAT=( python2_7 python3_5 python3_6 )
35 -
36 -EGIT_REPO_URI="https://llvm.org/git/${PN}.git
37 - https://github.com/llvm-mirror/${PN}.git"
38 -EGIT_COMMIT="dabae5a2afb78cba0320a86e3f5f0b5dc83e077c"
39 -
40 -if [[ ${PV} = 9999* ]]; then
41 - GIT_ECLASS="git-r3"
42 - EXPERIMENTAL="true"
43 -else
44 - GIT_ECLASS=""
45 - S="${WORKDIR}/libclc-${EGIT_COMMIT}"
46 -fi
47 -
48 -inherit llvm prefix python-any-r1 toolchain-funcs ${GIT_ECLASS}
49 -
50 -DESCRIPTION="OpenCL C library"
51 -HOMEPAGE="http://libclc.llvm.org/"
52 -
53 -if [[ ${PV} = 9999* ]]; then
54 - SRC_URI="${SRC_PATCHES}"
55 -else
56 - SRC_URI="https://github.com/llvm-mirror/libclc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
57 - ${SRC_PATCHES}"
58 -fi
59 -
60 -LICENSE="|| ( MIT BSD )"
61 -SLOT="0"
62 -KEYWORDS="amd64 x86"
63 -IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_r600 video_cards_radeonsi"
64 -IUSE="${IUSE_VIDEO_CARDS}"
65 -REQUIRED_USE="|| ( ${IUSE_VIDEO_CARDS} )"
66 -
67 -DEPEND="
68 - || (
69 - sys-devel/clang:7
70 - sys-devel/clang:6
71 - sys-devel/clang:5
72 - sys-devel/clang:4
73 - >=sys-devel/clang-3.9:0
74 - )
75 - ${PYTHON_DEPS}"
76 -
77 -LLVM_MAX_SLOT=7
78 -
79 -llvm_check_deps() {
80 - has_version "sys-devel/clang:${LLVM_SLOT}"
81 -}
82 -
83 -src_prepare() {
84 - default
85 - if use prefix; then
86 - hprefixify configure.py
87 - fi
88 -}
89 -
90 -pkg_setup() {
91 - # we do not need llvm_pkg_setup
92 - python-any-r1_pkg_setup
93 -}
94 -
95 -src_configure() {
96 - local libclc_targets=()
97 -
98 - use video_cards_nvidia && libclc_targets+=("nvptx--" "nvptx64--" "nvptx--nvidiacl" "nvptx64--nvidiacl")
99 - use video_cards_r600 && libclc_targets+=("r600--")
100 - use video_cards_radeonsi && libclc_targets+=("amdgcn--" "amdgcn-mesa-mesa3d" "amdgcn--amdhsa")
101 -
102 - [[ ${#libclc_targets[@]} ]] || die "libclc target missing!"
103 -
104 - ./configure.py \
105 - --with-cxx-compiler="$(tc-getCXX)" \
106 - --with-llvm-config="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" \
107 - --prefix="${EPREFIX}/usr" "${libclc_targets[@]}" || die
108 -}
109 -
110 -src_compile() {
111 - emake VERBOSE=1
112 -}