diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-05-04 12:02:00 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-05-04 12:02:00 +0100 |
commit | eab5731cdf11d4ae8cdf111461d46fd96c5bdd37 (patch) | |
tree | ce35c6d01b5ff5de95c3a20fef853b9a6518ad2e /dev-libs/opencl-clang | |
parent | b7ebc951da8800f711142f69d9d958bde67a112d (diff) |
gentoo resync : 04.05.2019
Diffstat (limited to 'dev-libs/opencl-clang')
-rw-r--r-- | dev-libs/opencl-clang/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/opencl-clang/files/opencl-clang-8.0.0-clang_library_dir.patch | 11 | ||||
-rw-r--r-- | dev-libs/opencl-clang/metadata.xml | 12 | ||||
-rw-r--r-- | dev-libs/opencl-clang/opencl-clang-8.0.0.ebuild | 34 |
4 files changed, 61 insertions, 0 deletions
diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest new file mode 100644 index 000000000000..e0a1c75f90f4 --- /dev/null +++ b/dev-libs/opencl-clang/Manifest @@ -0,0 +1,4 @@ +AUX opencl-clang-8.0.0-clang_library_dir.patch 468 BLAKE2B 09315ce9250920caf8c84853a5cf08506b01d91f7c993273be910b38f9c97f1f31e1042d75a111734eaa86fad771bed5b09c6c9001e253c71f26bd7c1e668dcd SHA512 c5a715c05c7bc7b904a46cac8d6a10f161da6d978401c5c60853a19dfb63c65690994bdc57fe327ee36bb5b6151a0018d6931c38553917f2dc82e9cef44e0b0d +DIST opencl-clang-8.0.0.tar.gz 40789 BLAKE2B baa559e90bf7f57cc59942c279b0488e306c7fd481582b213707d1cf0382f717965cd0fc7278e9c5a359847cead097243509a0730cd38f70fbbb2586c3145265 SHA512 4a353e2b28d54671be0eea00536c05093d358dec9950ea5b0732c8f46dd03bc29884487fb88f762f2c20311b928496c3b5729a8c6a72a7ce9caf30b23895340f +EBUILD opencl-clang-8.0.0.ebuild 794 BLAKE2B 83c4637eccfdf8133fcffe8b3aff6be4472aa9f4f08ef4eb2ff0bd818542eadf61aa0ccdf44a5a1230064b23b5d05159f7e0ef79c6f5e67aec4b10935f61b36f SHA512 092b54fff58beaa14daa3701b87381e8cda45d19334185be4fda1bab8175f1d5be81511397e268c7f2cd49aee682ea65980fd97bc4feec94e0f14a5d95c550d9 +MISC metadata.xml 329 BLAKE2B d50cf1fac225c2240bd4af19962089d9b7446549d9cc7067d860218e76013acfbc65f40abfffded01c098b06dd4c8a5688c94e40710ecdf6e7db71e05816498d SHA512 de4a3177f7091c00cd54f5eb52d8d88ae88d207ca72acd71c824220593d27ebdbf3673459ab48440373af19eb88603a5fcdd5956597d816927c9663be177eccb diff --git a/dev-libs/opencl-clang/files/opencl-clang-8.0.0-clang_library_dir.patch b/dev-libs/opencl-clang/files/opencl-clang-8.0.0-clang_library_dir.patch new file mode 100644 index 000000000000..54ca2510004b --- /dev/null +++ b/dev-libs/opencl-clang/files/opencl-clang-8.0.0-clang_library_dir.patch @@ -0,0 +1,11 @@ +--- a/cl_headers/CMakeLists.txt ++++ b/cl_headers/CMakeLists.txt +@@ -13,7 +13,7 @@ + + if(USE_PREBUILT_LLVM) + set(OPENCL_HEADERS_DIR +- "${LLVM_LIBRARY_DIRS}/clang/${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}/include/") ++ "${CLANG_LIBRARY_DIRS}/${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}/include/") + else(USE_PREBUILT_LLVM) + set(OPENCL_HEADERS_DIR "${CLANG_SOURCE_DIR}/lib/Headers") + endif(USE_PREBUILT_LLVM) diff --git a/dev-libs/opencl-clang/metadata.xml b/dev-libs/opencl-clang/metadata.xml new file mode 100644 index 000000000000..b4f521584bbd --- /dev/null +++ b/dev-libs/opencl-clang/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> + <upstream> + <remote-id type="github">intel/opencl-clang</remote-id> + </upstream> +</pkgmetadata> + diff --git a/dev-libs/opencl-clang/opencl-clang-8.0.0.ebuild b/dev-libs/opencl-clang/opencl-clang-8.0.0.ebuild new file mode 100644 index 000000000000..119d5523a020 --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-8.0.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-multilib llvm + +DESCRIPTION="OpenCL-oriented thin wrapper library around clang" +HOMEPAGE="https://github.com/intel/opencl-clang" +SRC_URI="https://github.com/intel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="UoI-NCSA" +SLOT="8" +KEYWORDS="~amd64" + +COMMON="sys-devel/clang:8=[${MULTILIB_USEDEP}]" +DEPEND="${COMMON} + dev-util/spirv-llvm-translator:8=[${MULTILIB_USEDEP}] + dev-vcs/git" +RDEPEND="${COMMON}" + +LLVM_MAX_SLOT=8 + +PATCHES=( + "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch +) + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)" + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang + ) + cmake-utils_src_configure +} |