summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-10-04 21:04:14 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2024-10-04 23:03:16 +0200
commite6506ad756ac97348d438a457119a19e2e4f8f14 (patch)
treeee3345909cc3debf9aa17497cecd982fb0a93c23 /net-libs
parentnet-libs/signon-oauth2: Prepare for IUSE qt6 USEdep droppage (diff)
downloadgentoo-e6506ad756ac97348d438a457119a19e2e4f8f14.tar.gz
gentoo-e6506ad756ac97348d438a457119a19e2e4f8f14.tar.bz2
gentoo-e6506ad756ac97348d438a457119a19e2e4f8f14.zip
net-libs/accounts-qml: Drop IUSE qt6, don't enable qt5 by default
Prepare for qt6 USEdep droppage in net-libs/accounts-qt and net-libs/signond. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/accounts-qml/accounts-qml-0.7_p20231028-r2.ebuild128
1 files changed, 128 insertions, 0 deletions
diff --git a/net-libs/accounts-qml/accounts-qml-0.7_p20231028-r2.ebuild b/net-libs/accounts-qml/accounts-qml-0.7_p20231028-r2.ebuild
new file mode 100644
index 000000000000..7ff302496953
--- /dev/null
+++ b/net-libs/accounts-qml/accounts-qml-0.7_p20231028-r2.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qmake-utils multibuild
+
+if [[ ${PV} = *9999* ]] ; then
+ EGIT_REPO_URI="https://gitlab.com/accounts-sso/accounts-qml-module.git/"
+ inherit git-r3
+else
+ COMMIT=05e79ebbbf3784a87f72b7be571070125c10dfe3
+ if [[ -n ${COMMIT} ]] ; then
+ SRC_URI="https://gitlab.com/accounts-sso/${PN}-module/-/archive/${COMMIT}/${PN}-module-${COMMIT}.tar.bz2 -> ${P}.tar.bz2"
+ S="${WORKDIR}/${PN}-module-${COMMIT}"
+ else
+ SRC_URI="
+ https://gitlab.com/accounts-sso/${PN}-module/-/archive/VERSION_${PV}/${PN}-module-VERSION_${PV}.tar.bz2
+ https://dev.gentoo.org/~asturm/distfiles/${P}-patches-1.tar.xz
+ "
+ S="${WORKDIR}/${PN}-module-VERSION_${PV}"
+ fi
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+fi
+
+DESCRIPTION="QML bindings for accounts-qt and signond"
+HOMEPAGE="https://accounts-sso.gitlab.io/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="doc qt5 test"
+
+# dbus problems
+RESTRICT="test"
+
+RDEPEND="
+ dev-qt/qtbase:6
+ dev-qt/qtdeclarative:6
+ >=net-libs/accounts-qt-1.17[qt5(-)?,qt6(+)]
+ >=net-libs/signond-8.61-r100[qt5(-)?,qt6(+)]
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtdeclarative:5
+ )
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-qt/qtbase:6[gui]
+ qt5? (
+ dev-qt/qtgui:5
+ dev-qt/qttest:5
+ )
+ )
+"
+BDEPEND="
+ doc? (
+ app-text/doxygen
+ || (
+ ( dev-qt/qttools:6[assistant,qdoc] )
+ (
+ dev-qt/qdoc:5
+ dev-qt/qthelp:5
+ )
+ )
+ )
+"
+
+DOCS=( README.md )
+
+pkg_setup() {
+ MULTIBUILD_VARIANTS=( $(usev qt5) qt6 )
+}
+
+src_prepare() {
+ default
+ rm -v doc/html/.gitignore || die
+ multibuild_copy_sources
+}
+
+src_configure() {
+ my_src_configure() {
+ cd "${BUILD_DIR}" || die
+
+ local myqmakeargs=(
+ CONFIG+=no_docs
+ PREFIX="${EPREFIX}"/usr
+ )
+
+ if [[ ${MULTIBUILD_VARIANT} == qt6 ]]; then
+ eqmake6 "${myqmakeargs[@]}"
+ else
+ eqmake5 "${myqmakeargs[@]}"
+ fi
+ }
+
+ multibuild_foreach_variant my_src_configure
+}
+
+src_compile() {
+ my_src_compile() {
+ emake -C "${BUILD_DIR}"
+ }
+
+ multibuild_foreach_variant my_src_compile
+
+ if use doc; then
+ local qtanybindir
+ if has_version "dev-qt/qttools:6[qdoc]"; then
+ qtanybindir="$(qt6_get_libdir)/qt6/bin/"
+ elif has_version "dev-qt/qdoc:5"; then
+ qtanybindir="$(qt5_get_bindir)"
+ else
+ eerror "dev-qt/qttools:6[qdoc] nor dev-qt/qdoc:5 available even though in deps(?)"
+ fi
+ ${qtanybindir}/qdoc doc/accounts-qml-module.qdocconf || die
+ fi
+}
+
+src_install() {
+ my_src_install() {
+ emake -C "${BUILD_DIR}" INSTALL_ROOT="${D}" install_subtargets
+ }
+
+ local QT_QPA_PLATFORM=offscreen
+ multibuild_foreach_variant my_src_install
+ use doc && local HTML_DOCS=( doc )
+ einstalldocs
+}