mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
dev-qt/kdsingleapplication: new package, add 1.1.0
Co-developed-by: parona on matrix Signed-off-by: tastytea <gentoo@tastytea.de>
This commit is contained in:
1
dev-qt/kdsingleapplication/Manifest
Normal file
1
dev-qt/kdsingleapplication/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST kdsingleapplication-1.1.0.tar.gz 73558 BLAKE2B 26eda1d7a9a48f6167db9d2d7cd143ab45a08e96eef277cf1099c1ed24528f56ec54e8ab44671e7584937dc21d3437b15c033991e48fafd8b9fab10473e07864 SHA512 61b34a36b05c58ede881f38d78c767726f8e23dc230e292568013fa428f50ff674f7eb12bc4d76ceaa9ef444264b2e86d95ab14cc41c6a275bf917edb8832c1f
|
||||
92
dev-qt/kdsingleapplication/kdsingleapplication-1.1.0.ebuild
Normal file
92
dev-qt/kdsingleapplication/kdsingleapplication-1.1.0.ebuild
Normal file
@@ -0,0 +1,92 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake multibuild
|
||||
|
||||
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"
|
||||
|
||||
LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="doc examples test qt6"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtwidgets:5
|
||||
qt6? (
|
||||
dev-qt/qtbase:6[network,widgets]
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
doc? (
|
||||
app-text/doxygen
|
||||
)
|
||||
examples? (
|
||||
dev-util/patchelf
|
||||
)
|
||||
dev-qt/qttest:5
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
MULTIBUILD_VARIANTS=( qt5 $(usev qt6) )
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
myconfigure() {
|
||||
local mycmakeargs=(
|
||||
-DINSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||
)
|
||||
if [[ ${MULTIBUILD_VARIANT} == qt6 ]]; then
|
||||
mycmakeargs+=(
|
||||
-DKDSingleApplication_DOCS=OFF
|
||||
-DKDSingleApplication_EXAMPLES=OFF
|
||||
-DKDSingleApplication_QT6=ON
|
||||
-DKDSingleApplication_TESTS=OFF
|
||||
)
|
||||
else
|
||||
mycmakeargs+=(
|
||||
-DKDSingleApplication_DOCS=$(usex doc)
|
||||
-DKDSingleApplication_EXAMPLES=$(usex examples)
|
||||
-DKDSingleApplication_QT6=OFF
|
||||
-DKDSingleApplication_TESTS=$(usex test)
|
||||
)
|
||||
fi
|
||||
cmake_src_configure
|
||||
}
|
||||
multibuild_foreach_variant myconfigure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant cmake_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
mytest() {
|
||||
[[ ${MULTIBUILD_VARIANT} == qt5 ]] && cmake_src_test
|
||||
}
|
||||
multibuild_foreach_variant mytest
|
||||
}
|
||||
|
||||
src_install() {
|
||||
myinstall() {
|
||||
cmake_src_install
|
||||
if [[ ${MULTIBUILD_VARIANT} == qt5 ]]; then
|
||||
rm -rf "${BUILD_DIR}"/docs/api/html/examples || die
|
||||
use doc && HTML_DOCS="${BUILD_DIR}/docs/api/html/*"
|
||||
if use examples; then
|
||||
patchelf --remove-rpath "${BUILD_DIR}"/bin/widgetsingleapplication || die
|
||||
dobin "${BUILD_DIR}"/bin/widgetsingleapplication
|
||||
fi
|
||||
fi
|
||||
}
|
||||
multibuild_foreach_variant myinstall
|
||||
einstalldocs
|
||||
}
|
||||
11
dev-qt/kdsingleapplication/metadata.xml
Normal file
11
dev-qt/kdsingleapplication/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>tastytea</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">KDAB/KDSingleApplication</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user