From add81caa1244d119a0b288e88c8137d9e53e574c Mon Sep 17 00:00:00 2001 From: Jimi Huotari Date: Fri, 28 Jun 2024 12:12:53 +0300 Subject: [PATCH 1/2] x11-terms/qterminal: depend on 'layer-shell-qt' and 'libcanberra' While 'kde-plasma/layer-shell-qt' is required at build-time, there seems to be some automagic going with 'media-libs/libcanberra'. Closes: https://bugs.gentoo.org/935055 Signed-off-by: Jimi Huotari --- x11-terms/qterminal/qterminal-2.0.1-r1.ebuild | 48 +++++++++++++++++++ x11-terms/qterminal/qterminal-9999.ebuild | 2 + 2 files changed, 50 insertions(+) create mode 100644 x11-terms/qterminal/qterminal-2.0.1-r1.ebuild diff --git a/x11-terms/qterminal/qterminal-2.0.1-r1.ebuild b/x11-terms/qterminal/qterminal-2.0.1-r1.ebuild new file mode 100644 index 0000000000000..9737d91112014 --- /dev/null +++ b/x11-terms/qterminal/qterminal-2.0.1-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg-utils + +DESCRIPTION="Qt-based multitab terminal emulator" +HOMEPAGE="https://lxqt-project.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/lxqt/${PN}.git" +else + SRC_URI="https://github.com/lxqt/${PN}/releases/download/${PV}/${P}.tar.xz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-2 GPL-2+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=">=dev-util/lxqt-build-tools-2.0.0" +DEPEND=" + >=dev-qt/qtbase-6.6:6[dbus,gui,widgets,X] + kde-plasma/layer-shell-qt:6 + media-libs/libcanberra + x11-libs/libX11 + ~x11-libs/qtermwidget-${PV}:= +" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/x11-terms/qterminal/qterminal-9999.ebuild b/x11-terms/qterminal/qterminal-9999.ebuild index 14dfb83303bef..9737d91112014 100644 --- a/x11-terms/qterminal/qterminal-9999.ebuild +++ b/x11-terms/qterminal/qterminal-9999.ebuild @@ -24,6 +24,8 @@ RESTRICT="!test? ( test )" BDEPEND=">=dev-util/lxqt-build-tools-2.0.0" DEPEND=" >=dev-qt/qtbase-6.6:6[dbus,gui,widgets,X] + kde-plasma/layer-shell-qt:6 + media-libs/libcanberra x11-libs/libX11 ~x11-libs/qtermwidget-${PV}:= " From e401a80ec29c00523709a90012553573f262a209 Mon Sep 17 00:00:00 2001 From: Jimi Huotari Date: Fri, 28 Jun 2024 12:33:41 +0300 Subject: [PATCH 2/2] x11-terms/qterminal: drop 2.0.1 Signed-off-by: Jimi Huotari --- x11-terms/qterminal/qterminal-2.0.1.ebuild | 46 ---------------------- 1 file changed, 46 deletions(-) delete mode 100644 x11-terms/qterminal/qterminal-2.0.1.ebuild diff --git a/x11-terms/qterminal/qterminal-2.0.1.ebuild b/x11-terms/qterminal/qterminal-2.0.1.ebuild deleted file mode 100644 index 14dfb83303bef..0000000000000 --- a/x11-terms/qterminal/qterminal-2.0.1.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake xdg-utils - -DESCRIPTION="Qt-based multitab terminal emulator" -HOMEPAGE="https://lxqt-project.org/" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/lxqt/${PN}.git" -else - SRC_URI="https://github.com/lxqt/${PN}/releases/download/${PV}/${P}.tar.xz" - KEYWORDS="~amd64" -fi - -LICENSE="GPL-2 GPL-2+" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -BDEPEND=">=dev-util/lxqt-build-tools-2.0.0" -DEPEND=" - >=dev-qt/qtbase-6.6:6[dbus,gui,widgets,X] - x11-libs/libX11 - ~x11-libs/qtermwidget-${PV}:= -" -RDEPEND="${DEPEND}" - -src_configure() { - local mycmakeargs=( - -DBUILD_TESTS=$(usex test) - ) - - cmake_src_configure -} - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -}