dev-libs/kdsingleapplication: add 1.2.0

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli 2025-06-21 08:55:08 +02:00
parent 4c8682b187
commit 7c5d626c58
No known key found for this signature in database
GPG Key ID: 00F7AB331B0F097F
2 changed files with 57 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST kdsingleapplication-1.1.0.tar.gz 73558 BLAKE2B 26eda1d7a9a48f6167db9d2d7cd143ab45a08e96eef277cf1099c1ed24528f56ec54e8ab44671e7584937dc21d3437b15c033991e48fafd8b9fab10473e07864 SHA512 61b34a36b05c58ede881f38d78c767726f8e23dc230e292568013fa428f50ff674f7eb12bc4d76ceaa9ef444264b2e86d95ab14cc41c6a275bf917edb8832c1f
DIST kdsingleapplication-1.2.0.tar.gz 87265 BLAKE2B 64d3ba9f17551fb1547218419deaea2234fe1233a5a626449ff632f9b17235392bb34f6b296bca2fe3ef2b113ee0e412f328362cde8cfbea1769ae7d15af922a SHA512 2832f53b70258af1bfe9d66d67ab1c46be720ccab632d1b76353a171414cea00a03c576ad34eeefb2648330a311867f7fde7efb96b1f16159dc206f890bc1085

View File

@ -0,0 +1,56 @@
# Copyright 2024-2025 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"
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_bindir)/../libexec/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
}