commit:     c9a8ba47531ac23d81f312839a70720a9fb63bb9
Author:     Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Fri Feb 14 05:29:03 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Feb 14 06:22:16 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a8ba47

dev-libs/libflatarray: 0.2.0 ebuild enhancements

Bump to EAPI 7 and replace cmake-utils with cmake eclass. Also remove
the doc useflag and replace with example code.

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/libflatarray/libflatarray-0.2.0-r1.ebuild | 44 ++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/dev-libs/libflatarray/libflatarray-0.2.0-r1.ebuild 
b/dev-libs/libflatarray/libflatarray-0.2.0-r1.ebuild
new file mode 100644
index 00000000000..3b176cf62c3
--- /dev/null
+++ b/dev-libs/libflatarray/libflatarray-0.2.0-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake cuda
+
+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="http://www.libgeodecomp.org/archive/${P}.tar.bz2";
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cuda examples"
+RESTRICT="test"
+
+DEPEND=">=dev-libs/boost-1.48
+       cuda? ( dev-util/nvidia-cuda-toolkit )"
+
+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 -rf 
{} + || die
+       fi
+}

Reply via email to