summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-02-28 22:56:26 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-02-28 22:57:06 +0100
commit9c55a4ab2e1adb960521cd9c237fd5e79f987a62 (patch)
treee4c18bf4b93c0dd0a0e006dee5a3b3e832d82895 /x11-terms
parentdev-python/aiohttp: Remove old (diff)
downloadgentoo-9c55a4ab2e1adb960521cd9c237fd5e79f987a62.tar.gz
gentoo-9c55a4ab2e1adb960521cd9c237fd5e79f987a62.tar.bz2
gentoo-9c55a4ab2e1adb960521cd9c237fd5e79f987a62.zip
x11-terms/qterminal: Fix appdata installation path
Closes: https://bugs.gentoo.org/737626 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/qterminal/files/qterminal-0.16.1-appdata.patch11
-rw-r--r--x11-terms/qterminal/qterminal-0.16.1-r1.ebuild44
-rw-r--r--x11-terms/qterminal/qterminal-9999.ebuild4
3 files changed, 58 insertions, 1 deletions
diff --git a/x11-terms/qterminal/files/qterminal-0.16.1-appdata.patch b/x11-terms/qterminal/files/qterminal-0.16.1-appdata.patch
new file mode 100644
index 000000000000..fc3f370fa67a
--- /dev/null
+++ b/x11-terms/qterminal/files/qterminal-0.16.1-appdata.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt 2020-11-14 10:11:34.000000000 +0100
++++ b/CMakeLists.txt 2021-02-28 22:47:20.119110816 +0100
+@@ -215,7 +215,7 @@
+
+ install(FILES
+ qterminal.appdata.xml
+- DESTINATION "${CMAKE_INSTALL_DATADIR}/appdata"
++ DESTINATION "${CMAKE_INSTALL_DATADIR}/metainfo"
+ )
+
+ if(NOT APPLEBUNDLE)
diff --git a/x11-terms/qterminal/qterminal-0.16.1-r1.ebuild b/x11-terms/qterminal/qterminal-0.16.1-r1.ebuild
new file mode 100644
index 000000000000..1474704c16c9
--- /dev/null
+++ b/x11-terms/qterminal/qterminal-0.16.1-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake xdg-utils
+
+DESCRIPTION="Qt-based multitab terminal emulator"
+HOMEPAGE="https://lxqt.github.io/"
+
+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 ~arm ~arm64 ~ppc64 ~x86"
+fi
+
+LICENSE="GPL-2 GPL-2+"
+SLOT="0"
+
+BDEPEND=">=dev-util/lxqt-build-tools-0.8.0"
+DEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ x11-libs/libX11
+ ~x11-libs/qtermwidget-${PV}
+"
+RDEPEND="${DEPEND}
+ !lxqt-base/lxqt-l10n
+"
+
+PATCHES=( "${FILESDIR}/${P}-appdata.patch" )
+
+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 1b3cfd717846..07f53ab940a7 100644
--- a/x11-terms/qterminal/qterminal-9999.ebuild
+++ b/x11-terms/qterminal/qterminal-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -33,6 +33,8 @@ RDEPEND="${DEPEND}
!lxqt-base/lxqt-l10n
"
+PATCHES=( "${FILESDIR}/${PN}-0.16.1-appdata.patch" )
+
pkg_postinst() {
xdg_icon_cache_update
}