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/
Date: Thu, 20 Feb 2020 15:22:23
Message-Id: 1582212085.45beb6304a0da674a66f7d233b259d577b5bf240.grozin@gentoo
1 commit: 45beb6304a0da674a66f7d233b259d577b5bf240
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 20 15:21:25 2020 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 20 15:21:25 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45beb630
7
8 x11-wm/lumina: bump to 1.6.0
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 x11-wm/lumina/Manifest | 1 +
14 x11-wm/lumina/lumina-1.6.0.ebuild | 96 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 97 insertions(+)
16
17 diff --git a/x11-wm/lumina/Manifest b/x11-wm/lumina/Manifest
18 index 05d06caf634..37814a5f787 100644
19 --- a/x11-wm/lumina/Manifest
20 +++ b/x11-wm/lumina/Manifest
21 @@ -1 +1,2 @@
22 DIST lumina-1.5.0.tar.gz 20657364 BLAKE2B 62b064e1be3ce69c078e68524e011a8ce4d61c680a4732da7992a7b72833363fceb0a0895a228ec9de7921d989253c70c518810b91c23226aded1f54b23b1aea SHA512 37106d71a9ba7188c4ded0614d2d4424f732519e11288ae312dfcd9a0b5b26dd31dfa812e74a96c0e3e0fb99fae4dc00806fd7a24183746688c72d997054af7d
23 +DIST lumina-1.6.0.tar.gz 20662000 BLAKE2B c016f07fb86333e792d6a0a0ddaa9ea09f322d6de69d099abf9340d7db6cb9e23624b62882579ba6c13eec71fcf663f1688424fd940cd7e09e625f6fcc4b281f SHA512 e923961568ab9cc32206386066daef8cd1fd2db2d5c3e260e5c1da1dcda39a516576418f607cefbe5a1c47d8684591d0e595fb344e7d6aa2859fc3b326e73e30
24
25 diff --git a/x11-wm/lumina/lumina-1.6.0.ebuild b/x11-wm/lumina/lumina-1.6.0.ebuild
26 new file mode 100644
27 index 00000000000..694ffeb7a01
28 --- /dev/null
29 +++ b/x11-wm/lumina/lumina-1.6.0.ebuild
30 @@ -0,0 +1,96 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +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"
36 +
37 +inherit qmake-utils l10n xdg-utils
38 +DESCRIPTION="Lumina desktop environment"
39 +HOMEPAGE="https://lumina-desktop.org/"
40 +SRC_URI="https://github.com/trueos/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="BSD"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="desktop-utils"
46 +
47 +COMMON_DEPEND="dev-qt/qtcore:5
48 + dev-qt/qtconcurrent:5
49 + dev-qt/qtmultimedia:5[widgets]
50 + dev-qt/qtsvg:5
51 + dev-qt/qtnetwork:5[ssl]
52 + dev-qt/qtwidgets:5
53 + dev-qt/qtx11extras:5
54 + dev-qt/qtgui:5
55 + dev-qt/qtdeclarative:5
56 + dev-qt/qtprintsupport:5
57 + dev-qt/qtdbus:5
58 + x11-libs/libxcb:0
59 + x11-libs/xcb-util
60 + x11-libs/xcb-util-image
61 + x11-libs/xcb-util-wm
62 + desktop-utils? ( app-text/poppler[qt5] )"
63 +
64 +DEPEND="$COMMON_DEPEND
65 + dev-qt/linguist-tools:5"
66 +
67 +RDEPEND="$COMMON_DEPEND
68 + sys-fs/inotify-tools
69 + x11-misc/numlockx
70 + x11-wm/fluxbox
71 + || ( x11-apps/xbacklight
72 + sys-power/acpilight )
73 + media-sound/alsa-utils
74 + sys-power/acpi
75 + app-admin/sysstat"
76 +
77 +S="${WORKDIR}/${P/_/-}"
78 +
79 +PATCHES=(
80 + "${FILESDIR}/1.2.0-desktop-files.patch"
81 +)
82 +
83 +DOCS=( README.md )
84 +
85 +src_prepare(){
86 + default
87 +
88 + if use !desktop-utils ; then
89 + rm -rf src-qt5/desktop-utils || die
90 + sed -e "/desktop-utils/d" -i src-qt5/src-qt5.pro || die
91 + fi
92 +
93 + l10n_find_plocales_changes "${S}/src-qt5/core/${PN}-desktop/i18n" "${PN}-desktop_" '.ts'
94 +}
95 +
96 +src_configure(){
97 + eqmake5 PREFIX="${EPREFIX}/usr" LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" \
98 + CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM=
99 +}
100 +
101 +src_install(){
102 + emake install INSTALL_ROOT="${D}"
103 + einstalldocs
104 + mkdir -p "${D}"/usr/share/icons/hicolor/64x64/apps || die "cannot create the icons dir"
105 + mv "${D}"/usr/share/icons/hicolor/scalable/apps/*.png "${D}"/usr/share/icons/hicolor/64x64/apps || die "cannot mv png icons"
106 + exeinto /etc/X11/Sessions
107 + newexe "${FILESDIR}/lumina-session" lumina ||die
108 +
109 + remove_locale() {
110 + rm -f "${ED%/}"/usr/share/${PN}-desktop/i18n/l*_${1}.qm
111 +
112 + }
113 + l10n_for_each_disabled_locale_do remove_locale
114 +}
115 +
116 +pkg_postinst() {
117 + xdg_desktop_database_update
118 + xdg_mimeinfo_database_update
119 + xdg_icon_cache_update
120 +}
121 +
122 +pkg_postrm() {
123 + xdg_desktop_database_update
124 + xdg_mimeinfo_database_update
125 + xdg_icon_cache_update
126 +}