aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2014-03-17 07:48:02 +0100
committerAndreas Schäfer <gentryx@gmx.de>2014-03-17 07:48:02 +0100
commitaf361548291f21feee00965b0d95c98b53e7f996 (patch)
tree72e35c487310de22602210583faab1ab8bf219e9 /dev-libs
parentadded ebuild for libflatarray (diff)
downloadsci-af361548291f21feee00965b0d95c98b53e7f996.tar.gz
sci-af361548291f21feee00965b0d95c98b53e7f996.tar.bz2
sci-af361548291f21feee00965b0d95c98b53e7f996.zip
added ebuild for version 0.1.1
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libflatarray/libflatarray-0.1.1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/libflatarray/libflatarray-0.1.1.ebuild b/dev-libs/libflatarray/libflatarray-0.1.1.ebuild
new file mode 100644
index 000000000..3c7c0691c
--- /dev/null
+++ b/dev-libs/libflatarray/libflatarray-0.1.1.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
+}