aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2014-03-17 07:41:54 +0100
committerAndreas Schäfer <gentryx@gmx.de>2014-03-17 07:41:54 +0100
commit64ab1d5d25a1ddeebabd52180e5736e7ad1a1ae3 (patch)
treee60d17d3f9e2b8d40d482f6d012da0f53c3b92a6 /dev-libs
parentsimplified path setting for access daemon (diff)
downloadsci-64ab1d5d25a1ddeebabd52180e5736e7ad1a1ae3.tar.gz
sci-64ab1d5d25a1ddeebabd52180e5736e7ad1a1ae3.tar.bz2
sci-64ab1d5d25a1ddeebabd52180e5736e7ad1a1ae3.zip
added ebuild for libflatarray
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libflatarray/libflatarray-9999.ebuild52
-rw-r--r--dev-libs/libflatarray/metadata.xml19
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-libs/libflatarray/libflatarray-9999.ebuild b/dev-libs/libflatarray/libflatarray-9999.ebuild
new file mode 100644
index 000000000..3c7c0691c
--- /dev/null
+++ b/dev-libs/libflatarray/libflatarray-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+if [ ${PV} == "9999" ] ; then
+ _SCM=mercurial
+ EHG_REPO_URI="http://bitbucket.org/gentryx/libflatarray"
+ SRC_URI=""
+ KEYWORDS=""
+ CMAKE_USE_DIR="${S}"
+else
+ SRC_URI="http://www.libgeodecomp.org/archive/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~ppc ~x86"
+ S="${WORKDIR}/${P}"
+fi
+
+inherit cmake-utils cuda ${_SCM}
+
+DESCRIPTION="Struct of arrays library with object oriented interface for C++"
+HOMEPAGE="http://www.libgeodecomp.org/libflatarray.html"
+
+SLOT="0"
+LICENSE="Boost-1.0"
+IUSE="cuda doc"
+
+RDEPEND="
+ >=dev-libs/boost-1.48
+ cuda? ( dev-util/nvidia-cuda-toolkit )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_with cuda CUDA)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ DOCS=( README )
+ cmake-utils_src_install
+}
+
+src_test() {
+ cmake-utils_src_make test
+}
diff --git a/dev-libs/libflatarray/metadata.xml b/dev-libs/libflatarray/metadata.xml
new file mode 100644
index 000000000..1217bd363
--- /dev/null
+++ b/dev-libs/libflatarray/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cluster</herd>
+ <longdescription>
+ LibGeoDecomp is a multi-dimensional C++ array class which provides
+ an object-oriented view (a.k.a. array of structs, AoS) while
+ internally storing data in a struct of arrays (SoA) manner. It
+ comes with utilities to move data to CUDA enabled GPUs.
+ </longdescription>
+ <maintainer>
+ <email>gentryx@gmx.de</email>
+ </maintainer>
+ <use>
+ <flag name="cuda">
+ Enables plugins for NVIDIA GPUs (e.g. CUDASimulator and CUDAStepper)
+ </flag>
+ </use>
+</pkgmetadata>