From 64ab1d5d25a1ddeebabd52180e5736e7ad1a1ae3 Mon Sep 17 00:00:00 2001 From: Andreas Schäfer Date: Mon, 17 Mar 2014 07:41:54 +0100 Subject: added ebuild for libflatarray --- dev-libs/libflatarray/libflatarray-9999.ebuild | 52 ++++++++++++++++++++++++++ dev-libs/libflatarray/metadata.xml | 19 ++++++++++ 2 files changed, 71 insertions(+) create mode 100644 dev-libs/libflatarray/libflatarray-9999.ebuild create mode 100644 dev-libs/libflatarray/metadata.xml (limited to 'dev-libs/libflatarray') 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 @@ + + + + cluster + + 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. + + + gentryx@gmx.de + + + + Enables plugins for NVIDIA GPUs (e.g. CUDASimulator and CUDAStepper) + + + -- cgit v1.2.3-65-gdbad