From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7468B15808B for ; Fri, 4 Oct 2024 21:04:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0AA0AE29FA; Fri, 4 Oct 2024 21:04:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6570AE29FA for ; Fri, 4 Oct 2024 21:04:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C467343099 for ; Fri, 4 Oct 2024 21:04:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A4D862800 for ; Fri, 4 Oct 2024 21:04:07 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1728075796.87f36da5dddf3cfca9641605eacc4b799a1cb244.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/accounts-qt/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/accounts-qt/accounts-qt-1.17-r1.ebuild X-VCS-Directories: net-libs/accounts-qt/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 87f36da5dddf3cfca9641605eacc4b799a1cb244 X-VCS-Branch: master Date: Fri, 4 Oct 2024 21:04:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f3b61856-6383-4af3-82ec-40f97a1d96d7 X-Archives-Hash: 0a74a4b9560a05837409997bb4981d6e commit: 87f36da5dddf3cfca9641605eacc4b799a1cb244 Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Oct 4 19:07:01 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Oct 4 21:03:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87f36da5 net-libs/accounts-qt: Drop IUSE qt6, don't enable qt5 by default Signed-off-by: Andreas Sturmlechner gentoo.org> net-libs/accounts-qt/accounts-qt-1.17-r1.ebuild | 110 ++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/net-libs/accounts-qt/accounts-qt-1.17-r1.ebuild b/net-libs/accounts-qt/accounts-qt-1.17-r1.ebuild new file mode 100644 index 000000000000..204d29c1ff7d --- /dev/null +++ b/net-libs/accounts-qt/accounts-qt-1.17-r1.ebuild @@ -0,0 +1,110 @@ +# 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/lib${PN}.git/" + inherit git-r3 +else + SRC_URI="https://gitlab.com/accounts-sso/lib${PN}/-/archive/VERSION_${PV}/lib${PN}-VERSION_${PV}.tar.bz2 -> ${P}.tar.bz2" + S="${WORKDIR}/lib${PN}-VERSION_${PV}" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="Qt bindings for libaccounts-glib" +HOMEPAGE="https://accounts-sso.gitlab.io" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="doc qt5 test" + +# dbus problems +RESTRICT="test" + +RDEPEND=" + dev-libs/glib:2 + dev-qt/qtbase:6[xml] + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtxml:5 + ) + >=net-libs/libaccounts-glib-1.23:= +" +DEPEND="${RDEPEND} + test? ( qt5? ( dev-qt/qttest:5 ) ) +" +BDEPEND=" + doc? ( + app-text/doxygen[dot] + || ( + dev-qt/qttools:6[assistant] + dev-qt/qthelp:5 + ) + ) +" + +PATCHES=( "${FILESDIR}/${PN}-1.16-libdir.patch" ) + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usev qt5) qt6 ) +} + +src_prepare() { + default + + local qhelpgeneratorpath + if has_version "dev-qt/qttools:6[assistant]"; then + qhelpgeneratorpath="$(qt6_get_libdir)/qt6/libexec" + elif has_version "dev-qt/qthelp:5"; then + qhelpgeneratorpath="$(qt5_get_bindir)" + else + eerror "dev-qt/qttools:6[assistant] nor dev-qt/qthelp:5 available even though in deps(?)" + fi + + sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" \ + -i doc/doc.pri || die + sed -e "/QHG_LOCATION/s|qhelpgenerator|${qhelpgeneratorpath}/&|" \ + -i doc/doxy.conf || die + if ! use doc; then + sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die + fi + if ! use test; then + sed -e '/^SUBDIRS/s/tests//' \ + -i accounts-qt.pro || die "couldn't disable tests" + fi + + multibuild_copy_sources +} + +src_configure() { + my_src_configure() { + cd "${BUILD_DIR}" || die + + if [[ ${MULTIBUILD_VARIANT} == qt6 ]]; then + eqmake6 PREFIX="${EPREFIX}"/usr LIBDIR=$(get_libdir) + else + eqmake5 PREFIX="${EPREFIX}"/usr LIBDIR=$(get_libdir) + fi + } + + multibuild_foreach_variant my_src_configure +} + +src_compile() { + my_src_compile() { + emake -C "${BUILD_DIR}" + } + + multibuild_foreach_variant my_src_compile +} + +src_install() { + my_src_install() { + emake -C "${BUILD_DIR}" INSTALL_ROOT="${D}" install + } + + multibuild_foreach_variant my_src_install +}