mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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@kmk-computers.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
c9a8ba4753
commit
904db9101a
48
dev-libs/libflatarray/libflatarray-0.3.0-r1.ebuild
Normal file
48
dev-libs/libflatarray/libflatarray-0.3.0-r1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user