public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libflatarray/
Date: Fri, 14 Feb 2020 06:22:40 +0000 (UTC)	[thread overview]
Message-ID: <1581661345.904db9101a31e21fe33c53a0e5edec6aababaf4b.juippis@gentoo> (raw)

commit:     904db9101a31e21fe33c53a0e5edec6aababaf4b
Author:     Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Fri Feb 14 05:30:00 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Feb 14 06:22:25 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=904db910

dev-libs/libflatarray: ebuild enhancements for 0.3.0

Bump to EAPI 7 and replace cmake-utils with cmake eclass. Also remove the doc
useflag and replace with example code. Furthermore, add correct test()
implementation.

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.3.0-r1.ebuild | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/dev-libs/libflatarray/libflatarray-0.3.0-r1.ebuild b/dev-libs/libflatarray/libflatarray-0.3.0-r1.ebuild
new file mode 100644
index 00000000000..5ce31c11e1d
--- /dev/null
+++ b/dev-libs/libflatarray/libflatarray-0.3.0-r1.ebuild
@@ -0,0 +1,48 @@
+# 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 test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	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
+}
+
+src_test() {
+	cmake_build check
+}


             reply	other threads:[~2020-02-14  6:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14  6:22 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-10-31  9:47 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libflatarray/ Joonas Niilola
2020-10-31  9:47 Joonas Niilola
2020-03-28 14:21 Joonas Niilola
2020-03-15 17:52 Joonas Niilola
2020-02-25  6:05 Joonas Niilola
2020-02-14  6:25 Joonas Niilola
2020-02-14  6:22 Joonas Niilola
2020-02-14  6:22 Joonas Niilola
2020-01-14  6:48 Joonas Niilola
2019-08-30  5:11 Slawek Lis
2018-06-25  4:44 Andreas Sturmlechner
2016-11-03 17:37 David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1581661345.904db9101a31e21fe33c53a0e5edec6aababaf4b.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox