summaryrefslogtreecommitdiff
path: root/dev-libs/zug/zug-0.1.1.ebuild
blob: 5daa480a025c2d22db2b1b5c745adf3b7da8e9fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Transducers for C++"
HOMEPAGE="https://sinusoid.es/zug/"
SRC_URI="https://github.com/arximboldi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv"
IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="
	test? ( <dev-cpp/catch-3:0 )
"

src_configure() {
	local mycmakeargs=(
		-DCCACHE=no
		-Dzug_BUILD_DOCS=OFF # Recheck if documentation is in a better state when bumping
		-Dzug_BUILD_EXAMPLES=OFF
		-Dzug_BUILD_TESTS=$(usex test)
	)

	cmake_src_configure
}

src_compile() {
	cmake_src_compile
	if use test; then
		cmake_build tests
	fi

}