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/files/, x11-wm/lumina/
Date: Sat, 25 Nov 2017 12:57:53
Message-Id: 1511614611.4a97d1d737dfc1b04b3991addcce97ba503ee3f7.grozin@gentoo
1 commit: 4a97d1d737dfc1b04b3991addcce97ba503ee3f7
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 25 12:56:51 2017 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 25 12:56:51 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a97d1d7
7
8 x11-wm/lumina: fix building with USE=desktop-utils
9
10 Closes: https://bugs.gentoo.org/638756
11 Package-Manager: Portage-2.3.14, Repoman-2.3.6
12
13 x11-wm/lumina/files/1.4.0-poppler.patch | 10 ++++
14 x11-wm/lumina/lumina-1.4.0-r2.ebuild | 98 +++++++++++++++++++++++++++++++++
15 2 files changed, 108 insertions(+)
16
17 diff --git a/x11-wm/lumina/files/1.4.0-poppler.patch b/x11-wm/lumina/files/1.4.0-poppler.patch
18 new file mode 100644
19 index 00000000000..8b9399aed9c
20 --- /dev/null
21 +++ b/x11-wm/lumina/files/1.4.0-poppler.patch
22 @@ -0,0 +1,10 @@
23 +diff -r -U2 lumina-1.4.0.orig/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro lumina-1.4.0/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro
24 +--- lumina-1.4.0.orig/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro 2017-11-21 23:21:47.000000000 +0700
25 ++++ lumina-1.4.0/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro 2017-11-25 19:17:01.771778161 +0700
26 +@@ -26,5 +26,5 @@
27 +
28 + LIBS += -lpoppler-qt5
29 +-INCLUDEPATH+= $${L_INCLUDEDIR}/poppler/qt5
30 ++INCLUDEPATH+= /usr/include/poppler/qt5
31 +
32 + TRANSLATIONS = i18n/l-pdf_af.ts \
33
34 diff --git a/x11-wm/lumina/lumina-1.4.0-r2.ebuild b/x11-wm/lumina/lumina-1.4.0-r2.ebuild
35 new file mode 100644
36 index 00000000000..4bab7adf10b
37 --- /dev/null
38 +++ b/x11-wm/lumina/lumina-1.4.0-r2.ebuild
39 @@ -0,0 +1,98 @@
40 +# Copyright 1999-2017 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=6
44 +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"
45 +
46 +inherit qmake-utils l10n xdg-utils gnome2-utils
47 +DESCRIPTION="Lumina desktop environment"
48 +HOMEPAGE="https://lumina-desktop.org/"
49 +SRC_URI="https://github.com/trueos/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~x86"
54 +IUSE="desktop-utils"
55 +
56 +COMMON_DEPEND="dev-qt/qtcore:5
57 + dev-qt/qtconcurrent:5
58 + dev-qt/qtmultimedia:5[widgets]
59 + dev-qt/qtsvg:5
60 + dev-qt/qtnetwork:5
61 + dev-qt/qtwidgets:5
62 + dev-qt/qtx11extras:5
63 + dev-qt/qtgui:5
64 + dev-qt/qtdeclarative:5
65 + x11-libs/libxcb:0
66 + x11-libs/xcb-util
67 + x11-libs/xcb-util-image
68 + x11-libs/xcb-util-wm
69 + desktop-utils? ( app-text/poppler[qt5] )"
70 +
71 +DEPEND="$COMMON_DEPEND
72 + dev-qt/linguist-tools:5"
73 +
74 +RDEPEND="$COMMON_DEPEND
75 + sys-fs/inotify-tools
76 + x11-misc/numlockx
77 + x11-wm/fluxbox
78 + || ( x11-apps/xbacklight
79 + sys-power/acpilight )
80 + media-sound/alsa-utils
81 + sys-power/acpi
82 + app-admin/sysstat"
83 +
84 +S="${WORKDIR}/${P/_/-}"
85 +
86 +PATCHES=(
87 + "${FILESDIR}/1.2.0-desktop-files.patch"
88 + "${FILESDIR}/1.3.0-OS-detect.patch"
89 + "${FILESDIR}/1.4.0-poppler.patch"
90 +)
91 +
92 +DOCS=( README.md )
93 +
94 +src_prepare(){
95 + default
96 +
97 + if use !desktop-utils ; then
98 + rm -rf src-qt5/desktop-utils || die
99 + sed -e "/desktop-utils/d" -i src-qt5/src-qt5.pro || die
100 + fi
101 +
102 + l10n_find_plocales_changes "${S}/src-qt5/core/${PN}-desktop/i18n" "${PN}-desktop_" '.ts'
103 +}
104 +
105 +src_configure(){
106 + eqmake5 PREFIX="${EPREFIX}/usr" LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" \
107 + DESTDIR="${D}" CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM=
108 +}
109 +
110 +src_install(){
111 + # A hack to avoid sandbox violation and install liblthemeengine*.so to the correct places
112 + emake install INSTALL_ROOT="${D}"
113 + rm "${ED%/}"/${PN}-* "${ED%/}"/start-${PN}-desktop "${ED%/}"/liblthemeengine*.so "${ED%/}"/lthemeengine || die
114 + mv "${D}/${D}/etc" "${D}/etc" || die
115 + mv "${D}/${D}/usr/bin" "${D}/usr/bin" || die
116 + mv "${D}/${D}/usr/share" "${D}/usr/share" || die
117 + rm -rf "${D}/var" || die
118 + mv "${ED%/}"/etc/luminaDesktop.conf{.dist,} || die
119 + einstalldocs
120 +
121 + remove_locale() {
122 + rm -f "${D}"/usr/share/${PN}-desktop/i18n/l*_${1}.qm
123 + }
124 + l10n_for_each_disabled_locale_do remove_locale
125 +}
126 +
127 +pkg_postinst() {
128 + xdg_desktop_database_update
129 + xdg_mimeinfo_database_update
130 + gnome2_icon_cache_update
131 +}
132 +
133 +pkg_postrm() {
134 + xdg_desktop_database_update
135 + xdg_mimeinfo_database_update
136 + gnome2_icon_cache_update
137 +}