1 |
commit: f6a8222042139764516f9e70bbcda27e3a32cb10 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 27 10:15:37 2018 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 27 10:15:37 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6a82220 |
7 |
|
8 |
x11-wm/lumina: ebuild cleanup; depend on dev-qt/qtprintsupport |
9 |
|
10 |
Suggested-by: PhobosK <phobosk <AT> fastmail.fm> |
11 |
Closes: https://bugs.gentoo.org/640242 |
12 |
Closes: https://bugs.gentoo.org/652860 |
13 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
14 |
|
15 |
x11-wm/lumina/lumina-1.4.0_p1-r1.ebuild | 92 +++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 92 insertions(+) |
17 |
|
18 |
diff --git a/x11-wm/lumina/lumina-1.4.0_p1-r1.ebuild b/x11-wm/lumina/lumina-1.4.0_p1-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..27374bbd02d |
21 |
--- /dev/null |
22 |
+++ b/x11-wm/lumina/lumina-1.4.0_p1-r1.ebuild |
23 |
@@ -0,0 +1,92 @@ |
24 |
+# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+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" |
29 |
+ |
30 |
+inherit qmake-utils l10n xdg-utils gnome2-utils |
31 |
+DESCRIPTION="Lumina desktop environment" |
32 |
+HOMEPAGE="https://lumina-desktop.org/" |
33 |
+SRC_URI="https://github.com/trueos/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="BSD" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="desktop-utils" |
39 |
+ |
40 |
+COMMON_DEPEND="dev-qt/qtcore:5 |
41 |
+ dev-qt/qtconcurrent:5 |
42 |
+ dev-qt/qtmultimedia:5[widgets] |
43 |
+ dev-qt/qtsvg:5 |
44 |
+ dev-qt/qtnetwork:5 |
45 |
+ dev-qt/qtwidgets:5 |
46 |
+ dev-qt/qtx11extras:5 |
47 |
+ dev-qt/qtgui:5 |
48 |
+ dev-qt/qtdeclarative:5 |
49 |
+ dev-qt/qtprintsupport:5 |
50 |
+ x11-libs/libxcb:0 |
51 |
+ x11-libs/xcb-util |
52 |
+ x11-libs/xcb-util-image |
53 |
+ x11-libs/xcb-util-wm |
54 |
+ desktop-utils? ( app-text/poppler[qt5] )" |
55 |
+ |
56 |
+DEPEND="$COMMON_DEPEND |
57 |
+ dev-qt/linguist-tools:5" |
58 |
+ |
59 |
+RDEPEND="$COMMON_DEPEND |
60 |
+ sys-fs/inotify-tools |
61 |
+ x11-misc/numlockx |
62 |
+ x11-wm/fluxbox |
63 |
+ || ( x11-apps/xbacklight |
64 |
+ sys-power/acpilight ) |
65 |
+ media-sound/alsa-utils |
66 |
+ sys-power/acpi |
67 |
+ app-admin/sysstat" |
68 |
+ |
69 |
+S="${WORKDIR}/${P/_/-}" |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}/1.2.0-desktop-files.patch" |
73 |
+ "${FILESDIR}/1.4.0-poppler.patch" |
74 |
+) |
75 |
+ |
76 |
+DOCS=( README.md ) |
77 |
+ |
78 |
+src_prepare(){ |
79 |
+ default |
80 |
+ |
81 |
+ if use !desktop-utils ; then |
82 |
+ rm -rf src-qt5/desktop-utils || die |
83 |
+ sed -e "/desktop-utils/d" -i src-qt5/src-qt5.pro || die |
84 |
+ fi |
85 |
+ |
86 |
+ l10n_find_plocales_changes "${S}/src-qt5/core/${PN}-desktop/i18n" "${PN}-desktop_" '.ts' |
87 |
+} |
88 |
+ |
89 |
+src_configure(){ |
90 |
+ eqmake5 PREFIX="${EPREFIX}/usr" LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" \ |
91 |
+ CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM= |
92 |
+} |
93 |
+ |
94 |
+src_install(){ |
95 |
+ emake install INSTALL_ROOT="${D}" |
96 |
+ einstalldocs |
97 |
+ |
98 |
+ remove_locale() { |
99 |
+ rm -f "${ED%/}"/usr/share/${PN}-desktop/i18n/l*_${1}.qm |
100 |
+ |
101 |
+ } |
102 |
+ l10n_for_each_disabled_locale_do remove_locale |
103 |
+} |
104 |
+ |
105 |
+pkg_postinst() { |
106 |
+ xdg_desktop_database_update |
107 |
+ xdg_mimeinfo_database_update |
108 |
+ gnome2_icon_cache_update |
109 |
+} |
110 |
+ |
111 |
+pkg_postrm() { |
112 |
+ xdg_desktop_database_update |
113 |
+ xdg_mimeinfo_database_update |
114 |
+ gnome2_icon_cache_update |
115 |
+} |