summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Kanzenbach <kurt@kmk-computers.de>2020-10-09 19:03:57 +0200
committerJoonas Niilola <juippis@gentoo.org>2020-10-31 11:47:39 +0200
commit7bd4576263b2f5d3eded133630a6a48564e22ea1 (patch)
tree4ab68dbd71282d71896dd2c6adb579ce457d2741 /dev-libs/libflatarray
parentsys-cluster/hpx: Drop old (diff)
downloadgentoo-7bd4576263b2f5d3eded133630a6a48564e22ea1.tar.gz
gentoo-7bd4576263b2f5d3eded133630a6a48564e22ea1.tar.bz2
gentoo-7bd4576263b2f5d3eded133630a6a48564e22ea1.zip
dev-libs/libflatarray: Bump version to v0.4.0_pre20201009
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/libflatarray')
-rw-r--r--dev-libs/libflatarray/Manifest1
-rw-r--r--dev-libs/libflatarray/libflatarray-0.4.0_pre20201009.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/libflatarray/Manifest b/dev-libs/libflatarray/Manifest
index 436bbecce620..70abd695abb5 100644
--- a/dev-libs/libflatarray/Manifest
+++ b/dev-libs/libflatarray/Manifest
@@ -1 +1,2 @@
DIST libflatarray-0.4.0_pre20200314.tar.gz 165804 BLAKE2B 593e26b4c67ca67143ac9fdfca697700ae4caff807bca0b50d7a2de05ad8dadb79c98f9db39b728fdf098cd8e948c99963d11cf95bbc31b6c0f485e81d9736e8 SHA512 3f78c0db04e3de637fd8ed938c2d4d88d1eb270fc6a95f2d1b0909c4a6df40720e77c2aedac5ba38be32f703600a075107000ba028b38739b4206b7498f66955
+DIST libflatarray-0.4.0_pre20201009.tar.gz 166551 BLAKE2B 6e2a13b69a8cd21124c02c849956b85fed1c57d01e2b359044302573526d281b191454acbc0ef37355c0c7b5f8b34d48eed4ca0d5d44f75008040950cb570cbf SHA512 2d2111cdb0c5d80e2af04eb3b53e6aa0a3ca989809adc0e8ca654c31a46a3bcbd916eb0a5b5f9e86391e54a22bbefec3d1cbdbe0dbbd0c538da0130dcc7db562
diff --git a/dev-libs/libflatarray/libflatarray-0.4.0_pre20201009.ebuild b/dev-libs/libflatarray/libflatarray-0.4.0_pre20201009.ebuild
new file mode 100644
index 000000000000..89ce35e4b3e3
--- /dev/null
+++ b/dev-libs/libflatarray/libflatarray-0.4.0_pre20201009.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="c8df37f6ac73250998b90c397458469902d6d9b9"
+
+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
+}