You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/injeqt/injeqt-1.2.0.ebuild

39 lines
738 B

# Copyright 1999-2021 Gentoo Authors
# 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"
"${FILESDIR}/${PN}-1.2.0-no-Werror.patch"
)
src_configure() {
local mycmakeargs=(
-DDISABLE_EXAMPLES=ON
-DDISABLE_TESTS=$(usex !test)
)
cmake-utils_src_configure
}