gentoo-overlay/dev-libs/injeqt/injeqt-1.2_p20260805.ebuild
2026-10-13 20:05:13 +02:00

42 lines
1.1 KiB
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
# Snapshot of the qt6-port branch. Upstream (vogel/injeqt) has been dormant
# since 2017 and is still Qt5-only, so this pulls from the fork carrying the
# Qt6 port.
INJEQT_COMMIT="1baef61dac7068b7fdfdd216e6e478c36aac7294"
DESCRIPTION="Dependency injection framework for Qt6"
HOMEPAGE="https://github.com/legal-hkr/injeqt https://github.com/vogel/injeqt"
SRC_URI="https://github.com/legal-hkr/injeqt/archive/${INJEQT_COMMIT}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${INJEQT_COMMIT}"
LICENSE="LGPL-2.1+"
SLOT="0"
# Deliberately unkeyworded: this is an arbitrary commit off a development
# branch, not a release. Requires "**" in package.accept_keywords.
KEYWORDS=""
IUSE="examples test"
RESTRICT="!test? ( test )"
RDEPEND="dev-qt/qtbase:6"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DDISABLE_TESTS=$(usex test OFF ON)
-DDISABLE_EXAMPLES=$(usex examples OFF ON)
)
cmake_src_configure
}
src_test() {
# The suite is plain ctest and needs no display.
cmake_src_test
}