summaryrefslogtreecommitdiff
blob: c9daf0fc90aa38aaa073a8bad28e3bc438f002b5 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

RESTRICT="!test? ( test )"

inherit cmake

DESCRIPTION="Cross-platform tools for working with chess engines"
HOMEPAGE="https://cutechess.com/ https://github.com/cutechess/"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test qt5"

RDEPEND="qt5? (
		dev-qt/qtwidgets:5
		dev-qt/qtsvg:5
		dev-qt/qtprintsupport:5
		dev-qt/qtconcurrent:5
		)
	!qt5? ( dev-qt/qtbase:6
		dev-qt/qtsvg:6
		dev-qt/qt5compat:6
		)
	"
DEPEND="${RDEPEND}
	qt5? ( test? ( dev-qt/qttest:5 ) )
	"

src_configure() {
	use test || mycmakeargs=( "-DWITH_TESTS=OFF" )
	use qt5 && mycmakeargs+=( "-DCMAKE_DISABLE_FIND_PACKAGE_Qt6=True" )
	cmake_src_configure
}