From 82b1d9b8f7dcfb0d00af40cc8c99d4480b089a85 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sun, 26 Nov 2023 10:17:47 +0100 Subject: x11-themes/QGnomePlatform: Add missing rdep Thanks-to: daniel Thanks-to: Ionen Wolkens Closes: https://bugs.gentoo.org/918423 Signed-off-by: Pacho Ramos --- .../QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild | 71 --------------------- .../QGnomePlatform/QGnomePlatform-0.9.2-r5.ebuild | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 71 deletions(-) delete mode 100644 x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild create mode 100644 x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r5.ebuild diff --git a/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild b/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild deleted file mode 100644 index 2b400f2259e0..000000000000 --- a/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r4.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# 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" -} diff --git a/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r5.ebuild b/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r5.ebuild new file mode 100644 index 000000000000..1ae03e1cc387 --- /dev/null +++ b/x11-themes/QGnomePlatform/QGnomePlatform-0.9.2-r5.ebuild @@ -0,0 +1,72 @@ +# 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] + dev-qt/qtdeclarative:6= + 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" +} -- cgit v1.2.3-65-gdbad