summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Niels Ole Salscheider <olesalscheider@exherbo.org> 2016-05-14 13:14:40 +0200
committerAvatar Niels Ole Salscheider <olesalscheider@exherbo.org> 2016-05-14 13:47:47 +0200
commit2a5157c49e218daecc4b2cd87bf7c760b0ed5e04 (patch)
tree8191b51fcdfed14abe5a49523642abc21080ba6b
parent28350fbc8d79bfcbc42973f8f5893e26259bad48 (diff)
downloadscientific-2a5157c49e218daecc4b2cd87bf7c760b0ed5e04.tar.gz
scientific-2a5157c49e218daecc4b2cd87bf7c760b0ed5e04.tar.xz
libclc: Exlibify, add snapshot
-rw-r--r--packages/dev-libs/libclc/libclc-0_pre20160209.exheres-07
-rw-r--r--packages/dev-libs/libclc/libclc-scm.exheres-029
-rw-r--r--packages/dev-libs/libclc/libclc.exlib42
3 files changed, 51 insertions, 27 deletions
diff --git a/packages/dev-libs/libclc/libclc-0_pre20160209.exheres-0 b/packages/dev-libs/libclc/libclc-0_pre20160209.exheres-0
new file mode 100644
index 0000000..942b553
--- /dev/null
+++ b/packages/dev-libs/libclc/libclc-0_pre20160209.exheres-0
@@ -0,0 +1,7 @@
+# Copyright 2016 Niels Ole Salscheider <olesalscheider@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require libclc
+
+PLATFORMS="~amd64 ~x86"
+
diff --git a/packages/dev-libs/libclc/libclc-scm.exheres-0 b/packages/dev-libs/libclc/libclc-scm.exheres-0
index c2a1f84..942b553 100644
--- a/packages/dev-libs/libclc/libclc-scm.exheres-0
+++ b/packages/dev-libs/libclc/libclc-scm.exheres-0
@@ -1,32 +1,7 @@
-# Copyright 2013 Niels Ole Salscheider
+# Copyright 2016 Niels Ole Salscheider <olesalscheider@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
-SCM_REPOSITORY="http://llvm.org/git/libclc.git"
+require libclc
-require scm-git
-
-SUMMARY="libclc is an implementation of the library requirements of the OpenCL C programming language"
-HOMEPAGE="http://libclc.llvm.org/"
-
-LICENCES="|| ( UoI-NCSA MIT )"
-SLOT="0"
PLATFORMS="~amd64 ~x86"
-MYOPTIONS=""
-
-DEPENDENCIES="
- build:
- dev-lang/python:*
- build+run:
- dev-lang/clang[>=3.5]
- dev-lang/llvm[>=3.5]
-"
-
-src_configure()
-{
- edo ./configure.py \
- --prefix=/usr \
- --includedir=/usr/$(exhost --target)/include \
- --libexecdir=/usr/$(exhost --target)/lib/clc \
- --pkgconfigdir=/usr/$(exhost --target)/lib/pkgconfig
-}
diff --git a/packages/dev-libs/libclc/libclc.exlib b/packages/dev-libs/libclc/libclc.exlib
new file mode 100644
index 0000000..cd597a0
--- /dev/null
+++ b/packages/dev-libs/libclc/libclc.exlib
@@ -0,0 +1,42 @@
+# Copyright 2013-2016 Niels Ole Salscheider <olesalscheider@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+export_exlib_phases src_configure
+
+if ever is_scm ; then
+ SCM_REPOSITORY="http://llvm.org/git/libclc.git"
+ require scm-git
+else
+ DOWNLOADS="https://dev.exherbo.org/distfiles/${PNV}.tar.xz"
+fi
+
+SUMMARY="libclc is an implementation of the library requirements of the OpenCL C programming language"
+HOMEPAGE="http://libclc.llvm.org/"
+
+LICENCES="|| ( UoI-NCSA MIT )"
+SLOT="0"
+MYOPTIONS=""
+
+if ever is_scm ; then
+ LLVM_MIN_VER=3.9
+else
+ LLVM_MIN_VER=3.7
+fi
+
+DEPENDENCIES="
+ build:
+ dev-lang/python:*
+ build+run:
+ dev-lang/clang[>=${LLVM_MIN_VER}]
+ dev-lang/llvm[>=${LLVM_MIN_VER}]
+"
+
+libclc_src_configure()
+{
+ edo ./configure.py \
+ --prefix=/usr \
+ --includedir=/usr/$(exhost --target)/include \
+ --libexecdir=/usr/$(exhost --target)/lib/clc \
+ --pkgconfigdir=/usr/$(exhost --target)/lib/pkgconfig
+}
+