summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libflatarray')
-rw-r--r--dev-libs/libflatarray/Manifest1
-rw-r--r--dev-libs/libflatarray/libflatarray-0.4.0_pre20200314.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/libflatarray/Manifest b/dev-libs/libflatarray/Manifest
index af1a157d02f1..0548310a4f16 100644
--- a/dev-libs/libflatarray/Manifest
+++ b/dev-libs/libflatarray/Manifest
@@ -1,2 +1,3 @@
DIST libflatarray-0.2.0.tar.bz2 34193 BLAKE2B 8f409b097a0dfe037e9fdd1f8ed3b0ba86ef9ab816219b9357d119afa1c7236c0a467d9705fd5050ccbdc54ee40b811d2daee0a697f8ba720f037294d0305d52 SHA512 96050c08479429baf22a9694ca7354e1ab4fa892976d4098419e2863cac8e21aec586116a1702a5050753febd9b9321a14fc4da5d6487cf75a574562ec4d4647
DIST libflatarray-0.3.0.tar.bz2 104544 BLAKE2B 9ac490a526fbd71478ac569538bad28e01a1a91bd71d37e85bf89181e856e79b2dec6af5415f238e5f72fbbe57cda59ee87ebd79cd273887061e2bbb93a7ce31 SHA512 c58339cdadf98f552d2f1b440a293c48923f32fc43a5a06ee8b8a40835a5f6c21514f7a9efa0ff23930ab9fdda8d4389641ec83c589e1982dbf5a3f75d2ffd37
+DIST libflatarray-0.4.0_pre20200314.tar.gz 165804 BLAKE2B 593e26b4c67ca67143ac9fdfca697700ae4caff807bca0b50d7a2de05ad8dadb79c98f9db39b728fdf098cd8e948c99963d11cf95bbc31b6c0f485e81d9736e8 SHA512 3f78c0db04e3de637fd8ed938c2d4d88d1eb270fc6a95f2d1b0909c4a6df40720e77c2aedac5ba38be32f703600a075107000ba028b38739b4206b7498f66955
diff --git a/dev-libs/libflatarray/libflatarray-0.4.0_pre20200314.ebuild b/dev-libs/libflatarray/libflatarray-0.4.0_pre20200314.ebuild
new file mode 100644
index 000000000000..95122803d1b1
--- /dev/null
+++ b/dev-libs/libflatarray/libflatarray-0.4.0_pre20200314.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake cuda
+
+MY_COMMIT="c5d90fb37ef52dbe56f611979fbe120fa1303284"
+
+DESCRIPTION="Struct of arrays library with object oriented interface for C++"
+HOMEPAGE="
+ http://www.libgeodecomp.org/libflatarray.html
+ https://github.com/STEllAR-GROUP/libflatarray"
+SRC_URI="https://github.com/STEllAR-GROUP/libflatarray/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cuda examples test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ cuda? ( dev-util/nvidia-cuda-toolkit )"
+
+S="${WORKDIR}/libflatarray-${MY_COMMIT}"
+
+src_prepare() {
+ cmake_src_prepare
+ use cuda && cuda_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_CUDA=$(usex cuda)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}
+ dodoc -r examples/
+ dodoc -r "${WORKDIR}"/${P}_build/examples/
+ find "${ED}"/usr/share/doc/${PF} -iname "*cmake*" -exec rm -r {} + || die
+ fi
+}
+
+src_test() {
+ cmake_build check
+}