summaryrefslogtreecommitdiff
blob: 3d9de6be309d79ca36b6186fd4118083d75be7aa (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit cmake-utils

DESCRIPTION="Dependency injection framework for Qt5"
HOMEPAGE="https://github.com/vogel/injeqt"
SRC_URI="https://github.com/vogel/injeqt/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"

RDEPEND="
	>=dev-qt/qtcore-5.4.2:5
"
DEPEND="${RDEPEND}
	test? ( >=dev-qt/qttest-5.4.2:5 )
"

# https://github.com/vogel/injeqt/issues/18
RESTRICT=test

PATCHES=( "${FILESDIR}/${P}-gcc7.patch" )

src_configure() {
	local mycmakeargs=(
		-DDISABLE_EXAMPLES=ON
		-DDISABLE_TESTS=$(usex !test)
	)
	cmake-utils_src_configure
}