summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2017-11-25 19:56:51 +0700
committerAndrey Grozin <grozin@gentoo.org>2017-11-25 19:56:51 +0700
commit4a97d1d737dfc1b04b3991addcce97ba503ee3f7 (patch)
treea9346fa1a44923cf6768c0b4cdffd5f1c323231b /x11-wm/lumina
parentapp-emulation/vmware-vix: Drop package that was accidentally not removed afte... (diff)
downloadgentoo-4a97d1d737dfc1b04b3991addcce97ba503ee3f7.tar.gz
gentoo-4a97d1d737dfc1b04b3991addcce97ba503ee3f7.tar.bz2
gentoo-4a97d1d737dfc1b04b3991addcce97ba503ee3f7.zip
x11-wm/lumina: fix building with USE=desktop-utils
Closes: https://bugs.gentoo.org/638756 Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'x11-wm/lumina')
-rw-r--r--x11-wm/lumina/files/1.4.0-poppler.patch10
-rw-r--r--x11-wm/lumina/lumina-1.4.0-r2.ebuild98
2 files changed, 108 insertions, 0 deletions
diff --git a/x11-wm/lumina/files/1.4.0-poppler.patch b/x11-wm/lumina/files/1.4.0-poppler.patch
new file mode 100644
index 00000000000..8b9399aed9c
--- /dev/null
+++ b/x11-wm/lumina/files/1.4.0-poppler.patch
@@ -0,0 +1,10 @@
+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
+--- lumina-1.4.0.orig/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro 2017-11-21 23:21:47.000000000 +0700
++++ lumina-1.4.0/src-qt5/desktop-utils/lumina-pdf/lumina-pdf.pro 2017-11-25 19:17:01.771778161 +0700
+@@ -26,5 +26,5 @@
+
+ LIBS += -lpoppler-qt5
+-INCLUDEPATH+= $${L_INCLUDEDIR}/poppler/qt5
++INCLUDEPATH+= /usr/include/poppler/qt5
+
+ TRANSLATIONS = i18n/l-pdf_af.ts \
diff --git a/x11-wm/lumina/lumina-1.4.0-r2.ebuild b/x11-wm/lumina/lumina-1.4.0-r2.ebuild
new file mode 100644
index 00000000000..4bab7adf10b
--- /dev/null
+++ b/x11-wm/lumina/lumina-1.4.0-r2.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+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"
+
+inherit qmake-utils l10n xdg-utils gnome2-utils
+DESCRIPTION="Lumina desktop environment"
+HOMEPAGE="https://lumina-desktop.org/"
+SRC_URI="https://github.com/trueos/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="desktop-utils"
+
+COMMON_DEPEND="dev-qt/qtcore:5
+ dev-qt/qtconcurrent:5
+ dev-qt/qtmultimedia:5[widgets]
+ dev-qt/qtsvg:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ dev-qt/qtgui:5
+ dev-qt/qtdeclarative:5
+ x11-libs/libxcb:0
+ x11-libs/xcb-util
+ x11-libs/xcb-util-image
+ x11-libs/xcb-util-wm
+ desktop-utils? ( app-text/poppler[qt5] )"
+
+DEPEND="$COMMON_DEPEND
+ dev-qt/linguist-tools:5"
+
+RDEPEND="$COMMON_DEPEND
+ sys-fs/inotify-tools
+ x11-misc/numlockx
+ x11-wm/fluxbox
+ || ( x11-apps/xbacklight
+ sys-power/acpilight )
+ media-sound/alsa-utils
+ sys-power/acpi
+ app-admin/sysstat"
+
+S="${WORKDIR}/${P/_/-}"
+
+PATCHES=(
+ "${FILESDIR}/1.2.0-desktop-files.patch"
+ "${FILESDIR}/1.3.0-OS-detect.patch"
+ "${FILESDIR}/1.4.0-poppler.patch"
+)
+
+DOCS=( README.md )
+
+src_prepare(){
+ default
+
+ if use !desktop-utils ; then
+ rm -rf src-qt5/desktop-utils || die
+ sed -e "/desktop-utils/d" -i src-qt5/src-qt5.pro || die
+ fi
+
+ l10n_find_plocales_changes "${S}/src-qt5/core/${PN}-desktop/i18n" "${PN}-desktop_" '.ts'
+}
+
+src_configure(){
+ eqmake5 PREFIX="${EPREFIX}/usr" LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" \
+ DESTDIR="${D}" CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM=
+}
+
+src_install(){
+ # A hack to avoid sandbox violation and install liblthemeengine*.so to the correct places
+ emake install INSTALL_ROOT="${D}"
+ rm "${ED%/}"/${PN}-* "${ED%/}"/start-${PN}-desktop "${ED%/}"/liblthemeengine*.so "${ED%/}"/lthemeengine || die
+ mv "${D}/${D}/etc" "${D}/etc" || die
+ mv "${D}/${D}/usr/bin" "${D}/usr/bin" || die
+ mv "${D}/${D}/usr/share" "${D}/usr/share" || die
+ rm -rf "${D}/var" || die
+ mv "${ED%/}"/etc/luminaDesktop.conf{.dist,} || die
+ einstalldocs
+
+ remove_locale() {
+ rm -f "${D}"/usr/share/${PN}-desktop/i18n/l*_${1}.qm
+ }
+ l10n_for_each_disabled_locale_do remove_locale
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ gnome2_icon_cache_update
+}