1# Lumina-DE source code
2# Copyright (c) 2016, Ken Moore
3# Available under the 3-clause BSD license
4# See the LICENSE file for full details
5
6EAPI=6
7
8inherit git-r3 qmake-utils
9DESCRIPTION="Lumina desktop environment"
10HOMEPAGE="https://lumina-desktop.org/"
11EGIT_REPO_URI="https://github.com/lumina-desktop/lumina"
12
13LICENSE="BSD"
14SLOT="0"
15KEYWORDS=""
16IUSE="desktop-utils"
17
18COMMON_DEPEND="dev-qt/qtcore:5
19	dev-qt/qtconcurrent:5
20	dev-qt/qtmultimedia:5[widgets]
21	dev-qt/qtsvg:5
22	dev-qt/qtnetwork:5
23	dev-qt/qtwidgets:5
24	dev-qt/qtx11extras:5
25	dev-qt/qtgui:5
26	dev-qt/qtdeclarative:5
27	x11-libs/libxcb:0
28	x11-libs/xcb-util
29	x11-libs/xcb-util-image
30	x11-libs/xcb-util-wm"
31
32DEPEND="$COMMON_DEPEND
33	dev-qt/linguist-tools:5"
34
35RDEPEND="$COMMON_DEPEND
36	sys-fs/inotify-tools
37	x11-misc/numlockx
38	x11-wm/fluxbox
39	|| ( x11-apps/xbacklight
40	sys-power/acpilight )
41	media-sound/alsa-utils
42	sys-power/acpi
43	app-admin/sysstat"
44
45S="${WORKDIR}/${P/_/-}"
46
47src_prepare(){
48	default
49
50	if use !desktop-utils ; then
51		rm -rf src-qt5/desktop-utils || die
52		sed -e "/desktop-utils/d" -i src-qt5/src-qt5.pro || die
53	fi
54}
55
56src_configure(){
57	eqmake5 PREFIX="${EPREFIX}/usr" LIBPREFIX="${EPREFIX}/usr/$(get_libdir)" \
58		DESTDIR="${D}" CONFIG+=WITH_I18N QMAKE_CFLAGS_ISYSTEM=
59}
60
61src_install(){
62	default
63	mv "${ED%/}"/etc/luminaDesktop.conf{.dist,} || die
64	rm "${ED%/}"/${PN}-* "${ED%/}"/start-${PN}-desktop || die
65}
66