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 8F593158089 for ; Fri, 10 Nov 2023 16:39:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A59132BC02E; Fri, 10 Nov 2023 16:39:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 858502BC02E for ; Fri, 10 Nov 2023 16:39:08 +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 961BF335D4B for ; Fri, 10 Nov 2023 16:39:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29FE81362 for ; Fri, 10 Nov 2023 16:39:06 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1699634340.55bd3be5fcacad3e535015abc9a11db2987691d6.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/QGnomePlatform/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild X-VCS-Directories: x11-themes/QGnomePlatform/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 55bd3be5fcacad3e535015abc9a11db2987691d6 X-VCS-Branch: master Date: Fri, 10 Nov 2023 16:39:06 +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: f37cdc01-cdf1-4173-adf5-82a122135cf8 X-Archives-Hash: 2ebad5892295c1991440e48c9624af67 commit: 55bd3be5fcacad3e535015abc9a11db2987691d6 Author: Pacho Ramos gentoo org> AuthorDate: Fri Nov 10 16:38:32 2023 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Fri Nov 10 16:39:00 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55bd3be5 x11-themes/QGnomePlatform: Support qt6 Signed-off-by: Pacho Ramos gentoo.org> .../QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild b/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild new file mode 100644 index 000000000000..2b400f2259e0 --- /dev/null +++ b/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +DESCRIPTION="A Qt Platform Theme aimed to accommodate GNOME settings" +HOMEPAGE="https://github.com/FedoraQt/QGnomePlatform" +SRC_URI="https://github.com/FedoraQt/QGnomePlatform/archive/${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="+qt5 qt6 minimal wayland" + +RDEPEND=" + qt5? ( + dev-qt/qtdbus:5= + >=dev-qt/qtquickcontrols2-5.15.2:5= + >=dev-qt/qtwidgets-5.15.2:5= + !minimal? ( kde-frameworks/qqc2-desktop-style:5= ) + wayland? ( dev-qt/qtwayland:5= ) + ) + qt6? ( + dev-qt/qtbase:6=[dbus,gui,widgets] + wayland? ( dev-qt/qtwayland:6= ) + ) + gnome-base/gsettings-desktop-schemas + sys-apps/xdg-desktop-portal + x11-libs/gtk+:3 + >=x11-themes/adwaita-qt-1.4.2 +" +DEPEND="${RDEPEND}" +BDEPEND="${RDEPEND}" + +src_configure() { + if use qt5; then + BUILD_DIR="${WORKDIR}/${PN}_qt5" + local mycmakeargs=( + -DUSE_QT6=OFF + -DDISABLE_DECORATION_SUPPORT="$(usex wayland false true)" + ) + cmake_src_configure + fi + if use qt6; then + BUILD_DIR="${WORKDIR}/${PN}_qt6" + local mycmakeargs=( + -DUSE_QT6=ON + -DDISABLE_DECORATION_SUPPORT="$(usex wayland false true)" + ) + cmake_src_configure + fi +} + +src_compile() { + local _d + for _d in "${WORKDIR}"/${PN}_qt*; do + cmake_src_compile -C "${_d}" + done +} + +src_install() { + local _d + for _d in "${WORKDIR}"/${PN}_qt*; do + cmake_src_install -C "${_d}" + done + + # https://github.com/FedoraQt/QGnomePlatform/pull/150#issuecomment-1689693729 + exeinto /etc/X11/xinit/xinitrc.d/ + doexe "${FILESDIR}/90-qgnomeplatform" +}