diff options
author | Kurt Kanzenbach <kurt@kmk-computers.de> | 2020-03-07 11:57:38 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-03-15 19:51:48 +0200 |
commit | 33bc65a5f0c0e74fdbba441040c21227caf8cbe2 (patch) | |
tree | f1efec64abfa01312decb78e347a0c517c1e792c /dev-libs/libflatarray/libflatarray-0.4.0_pre20200314.ebuild | |
parent | mail-mta/protonmail-bridge-bin: Fix Manifest (diff) | |
download | gentoo-33bc65a5f0c0e74fdbba441040c21227caf8cbe2.tar.gz gentoo-33bc65a5f0c0e74fdbba441040c21227caf8cbe2.tar.bz2 gentoo-33bc65a5f0c0e74fdbba441040c21227caf8cbe2.zip |
dev-libs/libflatarray: Add current version
This is needed as dependency for the current sci-libs/libgeodecomp version.
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/libflatarray/libflatarray-0.4.0_pre20200314.ebuild')
-rw-r--r-- | dev-libs/libflatarray/libflatarray-0.4.0_pre20200314.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
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 +} |