[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/16: gnu: Add libclc.
From: |
guix-commits |
Subject: |
02/16: gnu: Add libclc. |
Date: |
Wed, 26 Jun 2019 10:33:47 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit a2cc25ab9634a6ac12e6e2ae2b73cd695b071c55
Author: Ricardo Wurmus <address@hidden>
Date: Mon Jun 24 14:03:57 2019 +0200
gnu: Add libclc.
* gnu/packages/llvm.scm (libclc): New variable.
---
gnu/packages/llvm.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 054b42d..732ffc0 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -31,6 +31,7 @@
#:use-module (guix packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
@@ -285,6 +286,44 @@ code analysis tools.")
use with Clang, targeting C++11, C++14 and above.")
(license license:expat)))
+(define-public libclc
+ (package
+ (name "libclc")
+ (version (package-version llvm))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/llvm/llvm-project.git")
+ (commit (string-append "llvmorg-" version))))
+ (sha256
+ (base32
+ "052h16wjcnqginzp7ki4il2xmm25v9nyk0wcz7cg03gbryhl7aqa"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags
+ (list (string-append "-DLLVM_CLANG="
+ (assoc-ref %build-inputs "clang")
+ "/bin/clang")
+ (string-append "-DPYTHON="
+ (assoc-ref %build-inputs "python")
+ "/bin/python3"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "libclc") #t)))))
+ (native-inputs
+ `(("clang" ,clang)
+ ("llvm" ,llvm)
+ ("python" ,python)))
+ (home-page "https://libclc.llvm.org")
+ (synopsis "Libraries for the OpenCL programming language")
+ (description
+ "This package provides an implementation of the OpenCL library
+requirements according to version 1.1 of the OpenCL specification.")
+ ;; Apache license 2.0 with LLVM exception
+ (license license:asl2.0)))
+
(define-public libomp
(package
(name "libomp")
- 04/16: gnu: Add mesa-opencl-icd., (continued)
- 04/16: gnu: Add mesa-opencl-icd., guix-commits, 2019/06/26
- 03/16: gnu: Add mesa-opencl., guix-commits, 2019/06/26
- 10/16: gnu: Add python-pytest-checkdocs., guix-commits, 2019/06/26
- 12/16: gnu: Add python-pytest-shutil., guix-commits, 2019/06/26
- 11/16: gnu: Add python-pytest-flake8., guix-commits, 2019/06/26
- 06/16: gnu: Add python-contextlib2., guix-commits, 2019/06/26
- 08/16: gnu: Add python-zipp., guix-commits, 2019/06/26
- 07/16: gnu: Add python-setuptools-git., guix-commits, 2019/06/26
- 09/16: gnu: Add python-importlib-metadata., guix-commits, 2019/06/26
- 14/16: gnu: Add python-pytest-virtualenv., guix-commits, 2019/06/26
- 02/16: gnu: Add libclc.,
guix-commits <=
- 13/16: gnu: Add python-pytest-fixture-config., guix-commits, 2019/06/26
- 16/16: gnu: python-pathpy: Update to 11.5.0., guix-commits, 2019/06/26
- 15/16: gnu: Add python-jaraco-packaging., guix-commits, 2019/06/26
- 01/16: gnu: libcxx: Update hash., guix-commits, 2019/06/26
- 05/16: gnu: Add python-pathlib2., guix-commits, 2019/06/26