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

47 lines
1.3 KiB
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
# Snapshot of the fork's master, where the Qt6 port was merged. Upstream
# (vogel/injeqt) has been dormant since 2017 and is still Qt5-only.
INJEQT_COMMIT="ead195f75b52d03c72b35ae0044f0ee55de428a1"
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
}
pkg_postinst() {
elog "The soname is libinjeqt.so.2 from this version on. The Qt5 build"
elog "carried libinjeqt.so.1, and the two cannot stand in for one another,"
elog "so anything linked against the old one needs rebuilding."
}