diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-03-22 17:55:28 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-03-22 18:07:24 +0100 |
commit | a7bef6ecc72d1ae1ac5fd72cf48b6e9581348ab5 (patch) | |
tree | fc8c6cb2299a9e96cfae3226f8b4130380ba8436 /dev-libs/libclc | |
parent | dev-php/ming-php: Fix errors on src_prepare wrt eclass changes (diff) | |
download | gentoo-a7bef6ecc72d1ae1ac5fd72cf48b6e9581348ab5.tar.gz gentoo-a7bef6ecc72d1ae1ac5fd72cf48b6e9581348ab5.tar.bz2 gentoo-a7bef6ecc72d1ae1ac5fd72cf48b6e9581348ab5.zip |
dev-libs/libclc: Add 0.2.0_pre20180319 snapshot
Diffstat (limited to 'dev-libs/libclc')
-rw-r--r-- | dev-libs/libclc/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libclc/libclc-0.2.0_pre20180319.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-libs/libclc/Manifest b/dev-libs/libclc/Manifest index c3e6818dc03b..9699704dea23 100644 --- a/dev-libs/libclc/Manifest +++ b/dev-libs/libclc/Manifest @@ -2,3 +2,4 @@ DIST libclc-0.2.0_pre20160209.tar.xz 75756 BLAKE2B 9f093e67feecfb75caaaf4f53ec07 DIST libclc-0.2.0_pre20160921.tar.gz 127817 BLAKE2B 831bdc4a82d50ec33eb3199ef707fd84951b2b07cc8f6b1f166834240eab533d5f69dbe1d5d6c47cecd9f3c51618b96ad868c724e758fce2ec9d5f0915989f38 SHA512 5aae6010f32935c0b8fa510fc27cfd0be2df3d58d73cb5fb280d6758aafe54bd63a0137e59053aa81dca01ad2c5a0591ee1d4a83e3ef9a590a009a1a19062373 DIST libclc-0.2.0_pre20170118.tar.gz 130793 BLAKE2B 5083e821c5a0e481d3b6b638ac93c8c936972dcdb78e20a86de5f6873f300d7065e8aba242b332d4a91d494bb3a9e67f1f60a566bfbef78891d7c438bebbf41c SHA512 d94a58ebcafb7bbdbcded84574676537ae7b4ba86c7c2270cc1cd7aa3113104e018e53396b570e821c2fd473b6dd63677f59d990e36e15a7cdb43cdb96cd058c DIST libclc-0.2.0_pre20170929.tar.gz 138719 BLAKE2B 05a3d47626a5e1918f32510b1254f846c88c642f60920377dda73568d34656fecd53872ebc01114b2cc8b2161b196c89efe119bfd785875f723fcee4c1ce3662 SHA512 08f3a21fb1dc103a3b33980c420506fd142294b2d8b4a3eeb100ea55036fb87b9740a2489a0a9a5793d71ebb157e6f3ad7854d1916fc1fa472de72374cdeaea3 +DIST libclc-0.2.0_pre20180319.tar.gz 161608 BLAKE2B b8e4f2d475c0425cbe5b41a5ba3b7b40d14c045f5c23d007e87cdfedc7a01a8317218e5f3b881e944256f04b9fb68a130bff2a137e51cb961b3d5bb7f2e2261d SHA512 5a4130eeb416f90901b66708adc17c825baa757d00d983a12e217f36503e4ed5d208f3a49cc26d7f9b71134ee3d258748153bf52cf7769bcbc06ec0510087a36 diff --git a/dev-libs/libclc/libclc-0.2.0_pre20180319.ebuild b/dev-libs/libclc/libclc-0.2.0_pre20180319.ebuild new file mode 100644 index 000000000000..8f8f1a0ec232 --- /dev/null +++ b/dev-libs/libclc/libclc-0.2.0_pre20180319.ebuild @@ -0,0 +1,72 @@ +# 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="http://llvm.org/git/${PN}.git + https://github.com/llvm-mirror/${PN}.git" +EGIT_COMMIT="96d10f2e9ec4c87d6b8d91e01d4d061915413f3e" + +if [[ ${PV} = 9999* ]]; then + GIT_ECLASS="git-r3" + EXPERIMENTAL="true" +else + GIT_ECLASS="vcs-snapshot" +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 ~arm64 ~x86" +IUSE="" + +RDEPEND=" + || ( + 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=6 + +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() { + ./configure.py \ + --with-cxx-compiler="$(tc-getCXX)" \ + --with-llvm-config="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" \ + --prefix="${EPREFIX}/usr" || die +} + +src_compile() { + emake VERBOSE=1 +} |