public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sci-libs/clrng/
@ 2015-05-12 11:18 Justin Lecher
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher @ 2015-05-12 11:18 UTC (permalink / raw
  To: gentoo-commits

commit:     a467275a90784a34b8e43496edf8f2ced748e207
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Mon May 11 20:41:29 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon May 11 20:41:29 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=a467275a

sci-libs/clrng: Initial ebuild

Package-Manager: portage-2.2.14

 sci-libs/clrng/ChangeLog         |  9 +++++++
 sci-libs/clrng/clrng-9999.ebuild | 54 ++++++++++++++++++++++++++++++++++++++++
 sci-libs/clrng/metadata.xml      | 10 ++++++++
 3 files changed, 73 insertions(+)

diff --git a/sci-libs/clrng/ChangeLog b/sci-libs/clrng/ChangeLog
new file mode 100644
index 0000000..eb82a27
--- /dev/null
+++ b/sci-libs/clrng/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sci-libs/clrng
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*clrng-9999 (11 May 2015)
+
+  11 May 2015; Marius Brehler <marbre@linux.sungazer.de> +clrng-9999.ebuild,
+  +metadata.xml:
+  Initial ebuild

diff --git a/sci-libs/clrng/clrng-9999.ebuild b/sci-libs/clrng/clrng-9999.ebuild
new file mode 100644
index 0000000..fa1a830
--- /dev/null
+++ b/sci-libs/clrng/clrng-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cmake-utils
+
+MY_PN="clRNG"
+
+DESCRIPTION="A library for uniform random number generation in OpenCL"
+HOMEPAGE="https://github.com/clMathLibraries/clRNG"
+
+if [ ${PV} == "9999" ] ; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/clMathLibraries/${MY_PN}.git git://github.com/clMathLibraries/${MY_PN}.git"
+	S="${WORKDIR}/${P}/src"
+else
+	SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64"
+	S="${WORKDIR}/${MY_PN}-${PV}/src"
+fi
+
+LICENSE="BSD-2 BSD"
+SLOT="0"
+IUSE="+client test"
+
+RDEPEND="
+	>=sys-devel/gcc-4.8:*
+	virtual/opencl
+	|| ( >=dev-util/amdapp-2.9 dev-util/intel-ocl-sdk )
+	dev-libs/boost
+	"
+DEPEND="${RDEPEND}"
+
+# The tests only get compiled to an executable named Test, which is not recogniozed by cmake.
+# Therefore src_test() won't execute any test.
+RESTRICT="test"
+
+pkg_pretend() {
+	if [[ ${MERGE_TYPE} != binary ]]; then
+		if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]] ) ; then
+			die "Compilation with gcc older than 4.8 is not supported."
+		fi
+	fi
+}
+
+src_configure() {
+	local mycmakeargs=(
+		$(cmake-utils_use_build client CLIENT)
+		$(cmake-utils_use_build test TEST)
+	)
+	cmake-utils_src_configure
+}

diff --git a/sci-libs/clrng/metadata.xml b/sci-libs/clrng/metadata.xml
new file mode 100644
index 0000000..09f5008
--- /dev/null
+++ b/sci-libs/clrng/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>sci</herd>
+  <use>
+    <flag name="client">
+      Build a command line clRNG client program.
+    </flag>
+  </use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/sci:master commit in: sci-libs/clrng/
@ 2015-06-05 11:20 Justin Lecher
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher @ 2015-06-05 11:20 UTC (permalink / raw
  To: gentoo-commits

commit:     9bdc9d8f08188ec98c6950381dd4dcba688cc10a
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  5 11:17:42 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Jun  5 11:17:42 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=9bdc9d8f

sci-libs/clrng: Add github to remote-id in metadata.xml

Package-Manager: portage-2.2.20

 sci-libs/clrng/ChangeLog    | 3 +++
 sci-libs/clrng/metadata.xml | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/sci-libs/clrng/ChangeLog b/sci-libs/clrng/ChangeLog
index eb82a27..1e0a15e 100644
--- a/sci-libs/clrng/ChangeLog
+++ b/sci-libs/clrng/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  05 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
+  sci-libs/clrng: Add github to remote-id in metadata.xml
+
 *clrng-9999 (11 May 2015)
 
   11 May 2015; Marius Brehler <marbre@linux.sungazer.de> +clrng-9999.ebuild,

diff --git a/sci-libs/clrng/metadata.xml b/sci-libs/clrng/metadata.xml
index 09f5008..25fe2a5 100644
--- a/sci-libs/clrng/metadata.xml
+++ b/sci-libs/clrng/metadata.xml
@@ -7,4 +7,7 @@
       Build a command line clRNG client program.
     </flag>
   </use>
+  <upstream>
+    <remote-id type="github">clMathLibraries/clRNG</remote-id>
+  </upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-05 11:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-12 11:18 [gentoo-commits] proj/sci:master commit in: sci-libs/clrng/ Justin Lecher
  -- strict thread matches above, loose matches on Subject: below --
2015-06-05 11:20 Justin Lecher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox