38 lines
923 B
Bash
38 lines
923 B
Bash
# Copyright 2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake git-r3
|
|
|
|
# Upstream (vogel/injeqt) has been dormant since 2017 and is still Qt5-only,
|
|
# so this tracks the fork carrying the Qt6 port.
|
|
EGIT_REPO_URI="https://github.com/legal-hkr/injeqt.git"
|
|
EGIT_BRANCH="master"
|
|
|
|
DESCRIPTION="Dependency injection framework for Qt6 (live branch)"
|
|
HOMEPAGE="https://github.com/legal-hkr/injeqt https://github.com/vogel/injeqt"
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="0"
|
|
# Live ebuild: never keyworded. 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
|
|
}
|