Install this version:
emerge -a =dev-libs/kdsingleapplication-1.2.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/kdsingleapplication-1.2.1
Or alternatively:
emerge --autounmask-write -a =dev-libs/kdsingleapplication-1.2.1
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake qmake-utils
DESCRIPTION="KDAB's helper class for single-instance policy applications"
HOMEPAGE="https://github.com/KDAB/KDSingleApplication"
SRC_URI="https://github.com/KDAB/KDSingleApplication/releases/download/v${PV}/kdsingleapplication-${PV}.tar.gz"
S="${WORKDIR}"/KDSingleApplication-${PV}
LICENSE="BSD MIT"
SLOT="0/$(ver_cut 1-2)" # ${PROJECT_NAME}_SOVERSION
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
IUSE="doc examples test"
RESTRICT="!test? ( test )"
DEPEND="dev-qt/qtbase:6[network,widgets]"
RDEPEND="${DEPEND}"
BDEPEND="
doc? (
app-text/doxygen[dot]
dev-qt/qttools:6[assistant]
)
examples? ( dev-util/patchelf )
"
src_configure() {
local mycmakeargs=(
-DINSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
-DKDSingleApplication_QT6=ON
-DKDSingleApplication_DOCS=$(usex doc)
-DKDSingleApplication_EXAMPLES=$(usex examples)
-DKDSingleApplication_TESTS=$(usex test)
)
use doc && mycmakeargs+=(
-DQHELPGEN_EXECUTABLE="$(qt6_get_libexecdir)/qhelpgenerator"
)
cmake_src_configure
}
src_install() {
if use doc; then
if use examples; then
rm -r "${BUILD_DIR}"/docs/api/html/examples || die
fi
local HTML_DOCS=( "${BUILD_DIR}"/docs/api/html/. )
fi
if use examples; then
patchelf --remove-rpath "${BUILD_DIR}"/bin/widgetsingleapplication || die
dobin "${BUILD_DIR}"/bin/widgetsingleapplication
fi
cmake_src_install
}
Manage flags for this package:
euse -i <flag> -p dev-libs/kdsingleapplication |
euse -E <flag> -p dev-libs/kdsingleapplication |
euse -D <flag> -p dev-libs/kdsingleapplication
dev-qt/qtbase:6[network,widgets]
dev-qt/qtbase:6[network,widgets]
doc? ( app-text/doxygen[dot] dev-qt/qttools:6[assistant] ) examples? ( dev-util/patchelf )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | kdsingleapplication-1.2.1.tar.gz | 87731 bytes | https://github.com/KDAB/KDSingleApplication/releases/download/v1.2.1/kdsingleapplication-1.2.1.tar.gz |