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: Wed, 29 Nov 2017 13:05:27
Message-Id: 1511960679.a55a77655834144b9b70a89b7ec31b597abadb0c.grozin@gentoo
1 commit: a55a77655834144b9b70a89b7ec31b597abadb0c
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 29 13:04:39 2017 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 29 13:04:39 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a55a7765
7
8 x11-wm/lumina: bump to 1.4.0_p1
9
10 Package-Manager: Portage-2.3.14, Repoman-2.3.6
11
12 x11-wm/lumina/Manifest | 1 +
13 x11-wm/lumina/lumina-1.4.0_p1.ebuild | 98 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 99 insertions(+)
15
16 diff --git a/x11-wm/lumina/Manifest b/x11-wm/lumina/Manifest
17 index 800254c3727..0523a2e91ba 100644
18 --- a/x11-wm/lumina/Manifest
19 +++ b/x11-wm/lumina/Manifest
20 @@ -1,2 +1,3 @@
21 DIST lumina-1.3.0_p1.tar.gz 86451718 BLAKE2B 7834fad1541144524fc44d5e2cc1af21e82878c05f0cc2da4cf90f8f7e51614f535bab1bcb81c6d5929e14b2fa7ba7df8e66e53a9a81b55c973511f3b3e7cc17 SHA512 93fb195f26984a2ba6e62dbe1ea619e4ab8e936d1cf1d335db8a7e51058c9be8d3e389146259f8229fb5dc6477610dcc2e1278c4e2a348f27904a318ba095707
22 DIST lumina-1.4.0.tar.gz 22489118 BLAKE2B 547d062826a6b253cb361db3fb030c182485d335dea3baff7e30f1331c67fbffca619dbee4688f79ac04ff04e5ef2ceeae0c1146d18730a25b7d01125bc62fd3 SHA512 7243fc366a851832d9431df8ae8cac0f70a7bc92bed1282e78e5775c6593d799a07e2cac7042d770c8d6c4758bb142523027d67227a2282b47ed945b0e617cb0
23 +DIST lumina-1.4.0_p1.tar.gz 22489599 BLAKE2B 0c183763dae0ca046fa5d1cebc184a7ba5987113a12f72285e5dabfe25ca763683a23cb76889673ac3c2817feb2233e8b7da9fefed41040f91b0bb01d8ce03ae SHA512 340079832f4f6c9c9c70f11d7743b7c7db6772897f6411a966bf2bd77124bab1fbac8f5751164fb8a08a12c4443f515aaee76b117b4f959263eeaa98dbcbe41e
24
25 diff --git a/x11-wm/lumina/lumina-1.4.0_p1.ebuild b/x11-wm/lumina/lumina-1.4.0_p1.ebuild
26 new file mode 100644
27 index 00000000000..4bab7adf10b
28 --- /dev/null
29 +++ b/x11-wm/lumina/lumina-1.4.0_p1.ebuild
30 @@ -0,0 +1,98 @@
31 +# Copyright 1999-2017 Gentoo Foundation
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 gnome2-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
52 + dev-qt/qtwidgets:5
53 + dev-qt/qtx11extras:5
54 + dev-qt/qtgui:5
55 + dev-qt/qtdeclarative:5
56 + x11-libs/libxcb:0
57 + x11-libs/xcb-util
58 + x11-libs/xcb-util-image
59 + x11-libs/xcb-util-wm
60 + desktop-utils? ( app-text/poppler[qt5] )"
61 +
62 +DEPEND="$COMMON_DEPEND
63 + dev-qt/linguist-tools:5"
64 +
65 +RDEPEND="$COMMON_DEPEND
66 + sys-fs/inotify-tools
67 + x11-misc/numlockx
68 + x11-wm/fluxbox
69 + || ( x11-apps/xbacklight
70 + sys-power/acpilight )
71 + media-sound/alsa-utils
72 + sys-power/acpi
73 + app-admin/sysstat"
74 +
75 +S="${WORKDIR}/${P/_/-}"
76 +
77 +PATCHES=(
78 + "${FILESDIR}/1.2.0-desktop-files.patch"
79 + "${FILESDIR}/1.3.0-OS-detect.patch"
80 + "${FILESDIR}/1.4.0-poppler.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 + DESTDIR="${D}" CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM=
99 +}
100 +
101 +src_install(){
102 + # A hack to avoid sandbox violation and install liblthemeengine*.so to the correct places
103 + emake install INSTALL_ROOT="${D}"
104 + rm "${ED%/}"/${PN}-* "${ED%/}"/start-${PN}-desktop "${ED%/}"/liblthemeengine*.so "${ED%/}"/lthemeengine || die
105 + mv "${D}/${D}/etc" "${D}/etc" || die
106 + mv "${D}/${D}/usr/bin" "${D}/usr/bin" || die
107 + mv "${D}/${D}/usr/share" "${D}/usr/share" || die
108 + rm -rf "${D}/var" || die
109 + mv "${ED%/}"/etc/luminaDesktop.conf{.dist,} || die
110 + einstalldocs
111 +
112 + remove_locale() {
113 + rm -f "${D}"/usr/share/${PN}-desktop/i18n/l*_${1}.qm
114 + }
115 + l10n_for_each_disabled_locale_do remove_locale
116 +}
117 +
118 +pkg_postinst() {
119 + xdg_desktop_database_update
120 + xdg_mimeinfo_database_update
121 + gnome2_icon_cache_update
122 +}
123 +
124 +pkg_postrm() {
125 + xdg_desktop_database_update
126 + xdg_mimeinfo_database_update
127 + gnome2_icon_cache_update
128 +}