Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/lumina/, x11-wm/lumina/files/
Date: Sun, 05 Dec 2021 06:30:52
Message-Id: 1638685823.bab789f4412b8938a09bd6a18ad3a4dad44b8fbe.grozin@gentoo
1 commit: bab789f4412b8938a09bd6a18ad3a4dad44b8fbe
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 5 06:30:23 2021 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 5 06:30:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bab789f4
7
8 x11-wm/lumina: bump to 1.6.1
9
10 Closes: https://bugs.gentoo.org/823792
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
13
14 x11-wm/lumina/Manifest | 1 +
15 x11-wm/lumina/files/1.6.1-chmod.patch | 13 ++++
16 x11-wm/lumina/files/1.6.1-desktop-files.patch | 33 ++++++++++
17 x11-wm/lumina/lumina-1.6.1.ebuild | 90 +++++++++++++++++++++++++++
18 4 files changed, 137 insertions(+)
19
20 diff --git a/x11-wm/lumina/Manifest b/x11-wm/lumina/Manifest
21 index 03c66fda5166..1f5a99c7b878 100644
22 --- a/x11-wm/lumina/Manifest
23 +++ b/x11-wm/lumina/Manifest
24 @@ -1 +1,2 @@
25 DIST lumina-1.6.0.tar.gz 20662000 BLAKE2B c016f07fb86333e792d6a0a0ddaa9ea09f322d6de69d099abf9340d7db6cb9e23624b62882579ba6c13eec71fcf663f1688424fd940cd7e09e625f6fcc4b281f SHA512 e923961568ab9cc32206386066daef8cd1fd2db2d5c3e260e5c1da1dcda39a516576418f607cefbe5a1c47d8684591d0e595fb344e7d6aa2859fc3b326e73e30
26 +DIST lumina-1.6.1.tar.gz 20614263 BLAKE2B c0ad6a48d06ec9b2c0856a673319cb6a022416465e5f15fce47aac62d7e1817dc8b01acc7c55eaf3664217f2f27ef1b4d7a603a355cd9e22b707b481b322783a SHA512 ff4a77812e8d91478cbfd123ddc545e5a4aaabf3d9f96e6dedc769eb9490e4ac372c4243dca9444cdf986886c08e2eaa587470c9bc8a5a00bbe10ff80ad64c96
27
28 diff --git a/x11-wm/lumina/files/1.6.1-chmod.patch b/x11-wm/lumina/files/1.6.1-chmod.patch
29 new file mode 100644
30 index 000000000000..ca6460eb2dda
31 --- /dev/null
32 +++ b/x11-wm/lumina/files/1.6.1-chmod.patch
33 @@ -0,0 +1,13 @@
34 +diff -r -U3 lumina-1.6.1.orig/src-qt5/core/lumina-checkpass/lumina-checkpass.pro lumina-1.6.1/src-qt5/core/lumina-checkpass/lumina-checkpass.pro
35 +--- lumina-1.6.1.orig/src-qt5/core/lumina-checkpass/lumina-checkpass.pro 2021-10-03 02:05:49.000000000 +0700
36 ++++ lumina-1.6.1/src-qt5/core/lumina-checkpass/lumina-checkpass.pro 2021-12-05 12:55:00.656682056 +0700
37 +@@ -12,7 +12,7 @@
38 +
39 + SOURCES += main.c
40 +
41 +-perms.path = $$DESTDIR$${PREFIX}/sbin
42 +-perms.extra = "chmod 4555 $$DESTDIR$${PREFIX}/sbin/lumina-checkpass"
43 ++#perms.path = $$DESTDIR$${PREFIX}/sbin
44 ++#perms.extra = "chmod 4555 $$DESTDIR$${PREFIX}/sbin/lumina-checkpass"
45 +
46 + INSTALLS += target perms
47
48 diff --git a/x11-wm/lumina/files/1.6.1-desktop-files.patch b/x11-wm/lumina/files/1.6.1-desktop-files.patch
49 new file mode 100644
50 index 000000000000..33a7165b5901
51 --- /dev/null
52 +++ b/x11-wm/lumina/files/1.6.1-desktop-files.patch
53 @@ -0,0 +1,33 @@
54 +diff -r -U3 lumina-1.6.1.orig/src-qt5/core/lumina-info/lumina-info.desktop lumina-1.6.1/src-qt5/core/lumina-info/lumina-info.desktop
55 +--- lumina-1.6.1.orig/src-qt5/core/lumina-info/lumina-info.desktop 2021-10-03 02:05:49.000000000 +0700
56 ++++ lumina-1.6.1/src-qt5/core/lumina-info/lumina-info.desktop 2021-12-05 11:42:18.142573885 +0700
57 +@@ -5,7 +5,7 @@
58 + Type=Application
59 + StartupNotify=true
60 + Categories=System;
61 +-OnlyShowIn=Lumina;
62 ++OnlyShowIn=X-Lumina;
63 + Name=Desktop Information
64 + Name[pt]=Informações do ambiente de trabalho
65 + GenericName=Version and Legal Information
66 +diff -r -U3 lumina-1.6.1.orig/src-qt5/core/lumina-info/lumina-support.desktop lumina-1.6.1/src-qt5/core/lumina-info/lumina-support.desktop
67 +--- lumina-1.6.1.orig/src-qt5/core/lumina-info/lumina-support.desktop 2021-10-03 02:05:49.000000000 +0700
68 ++++ lumina-1.6.1/src-qt5/core/lumina-info/lumina-support.desktop 2021-12-05 11:41:50.668573204 +0700
69 +@@ -3,7 +3,7 @@
70 + URL=https://t.me/luminadesktop
71 + Icon=Lumina-DE
72 + Categories=System;
73 +-OnlyShowIn=Lumina;
74 ++OnlyShowIn=X-Lumina;
75 + Name=Community Support
76 + Name[pt]=Suporte da comunidade
77 + GenericName=Get Desktop Help
78 +diff -r -U3 lumina-1.6.1.orig/src-qt5/core-utils/lumina-config/lumina-config.desktop lumina-1.6.1/src-qt5/core-utils/lumina-config/lumina-config.desktop
79 +--- lumina-1.6.1.orig/src-qt5/core-utils/lumina-config/lumina-config.desktop 2021-10-03 02:05:49.000000000 +0700
80 ++++ lumina-1.6.1/src-qt5/core-utils/lumina-config/lumina-config.desktop 2021-12-05 11:42:58.002574873 +0700
81 +@@ -9,4 +9,4 @@
82 + Name[pt]=Configurar ambiente de trabalho
83 + Comment=Modify the desktop
84 + Comment[pt]=Modificar ambiente de trabalho
85 +-OnlyShowIn=Lumina;
86 ++OnlyShowIn=X-Lumina;
87
88 diff --git a/x11-wm/lumina/lumina-1.6.1.ebuild b/x11-wm/lumina/lumina-1.6.1.ebuild
89 new file mode 100644
90 index 000000000000..3992057d88a8
91 --- /dev/null
92 +++ b/x11-wm/lumina/lumina-1.6.1.ebuild
93 @@ -0,0 +1,90 @@
94 +# Copyright 1999-2021 Gentoo Authors
95 +# Distributed under the terms of the GNU General Public License v2
96 +
97 +EAPI=8
98 +
99 +PLOCALES="af ar az bg bn bs ca cs cy da de el en_AU en_GB en_ZA es et eu fa fi fr fr_CA fur gl he hi hr hu id is it ja ka ko lt lv mk mn ms mt nb ne nl pa pl pt pt_BR ro ru sa sk sl sr sv sw ta tg th tr uk ur uz vi zh_CN zh_HK zh_TW zu"
100 +inherit plocale qmake-utils xdg
101 +
102 +DESCRIPTION="Lumina desktop environment"
103 +HOMEPAGE="https://lumina-desktop.org/"
104 +SRC_URI="https://github.com/trueos/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
105 +
106 +LICENSE="BSD"
107 +SLOT="0"
108 +KEYWORDS="~amd64 ~x86"
109 +IUSE="desktop-utils"
110 +
111 +DEPEND="
112 + dev-qt/qtconcurrent:5
113 + dev-qt/qtcore:5
114 + dev-qt/qtdbus:5
115 + dev-qt/qtdeclarative:5
116 + dev-qt/qtgui:5
117 + dev-qt/qtmultimedia:5[widgets]
118 + dev-qt/qtnetwork:5[ssl]
119 + dev-qt/qtprintsupport:5
120 + dev-qt/qtsvg:5
121 + dev-qt/qtwidgets:5
122 + dev-qt/qtx11extras:5
123 + x11-libs/libxcb:0
124 + x11-libs/xcb-util
125 + x11-libs/xcb-util-image
126 + x11-libs/xcb-util-wm
127 + desktop-utils? ( app-text/poppler[qt5] )"
128 +
129 +RDEPEND="${DEPEND}
130 + app-admin/sysstat
131 + media-sound/alsa-utils
132 + sys-fs/inotify-tools
133 + sys-power/acpi
134 + || (
135 + x11-apps/xbacklight
136 + sys-power/acpilight
137 + )
138 + x11-misc/numlockx
139 + x11-wm/fluxbox"
140 +
141 +BDEPEND="
142 + dev-qt/linguist-tools:5"
143 +
144 +S="${WORKDIR}/${P/_/-}"
145 +
146 +PATCHES=(
147 + "${FILESDIR}/1.6.1-desktop-files.patch"
148 + "${FILESDIR}/1.6.1-chmod.patch"
149 +)
150 +
151 +DOCS=( README.md )
152 +
153 +src_prepare() {
154 + default
155 +
156 + if ! use desktop-utils ; then
157 + rm -rf src-qt5/desktop-utils || die
158 + sed -e "/desktop-utils/d" -i src-qt5/src-qt5.pro || die
159 + fi
160 +
161 + plocale_find_changes "${S}/src-qt5/core/${PN}-desktop/i18n" "${PN}-desktop_" '.ts'
162 +}
163 +
164 +src_configure() {
165 + eqmake5 PREFIX="${EPREFIX}/usr" LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" \
166 + CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM=
167 +}
168 +
169 +src_install() {
170 + emake install INSTALL_ROOT="${D}"
171 + einstalldocs
172 + chmod 4555 "${D}"/usr/sbin/lumina-checkpass
173 + mkdir -p "${D}"/usr/share/icons/hicolor/64x64/apps || die "cannot create the icons dir"
174 + mv "${D}"/usr/share/icons/hicolor/scalable/apps/*.png "${D}"/usr/share/icons/hicolor/64x64/apps || die "cannot mv png icons"
175 + exeinto /etc/X11/Sessions
176 + newexe "${FILESDIR}/lumina-session" lumina ||die
177 +
178 + remove_locale() {
179 + rm -f "${ED}"/usr/share/${PN}-desktop/i18n/l*_${1}.qm
180 +
181 + }
182 + plocale_for_each_disabled_locale remove_locale
183 +}