2018-04-11 17:34:35 +02:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
2018-04-11 18:33:36 +02:00
|
|
|
inherit cmake-utils versionator
|
2018-04-11 17:34:35 +02:00
|
|
|
|
|
|
|
DESCRIPTION="LXQt desktop panel and plugins"
|
|
|
|
HOMEPAGE="https://lxqt.org/"
|
|
|
|
|
2018-04-11 18:33:36 +02:00
|
|
|
MY_PV="$(get_version_component_range 1-2)*"
|
|
|
|
|
2018-04-11 17:34:35 +02:00
|
|
|
if [[ ${PV} = *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/lxqt/${PN}.git"
|
|
|
|
else
|
2018-04-11 18:33:36 +02:00
|
|
|
SRC_URI="https://downloads.lxqt.org/downloads/${PN}/${PV}/${P}.tar.xz"
|
2018-04-11 18:13:57 +02:00
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
2018-04-11 17:34:35 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="+alsa +clock colorpicker cpuload +desktopswitch dom +kbindicator +mainmenu
|
|
|
|
+mount networkmonitor pulseaudio +quicklaunch sensors +showdesktop
|
|
|
|
statusnotifier sysstat +taskbar +tray +volume worldclock"
|
|
|
|
REQUIRED_USE="volume? ( || ( alsa pulseaudio ) )"
|
|
|
|
|
|
|
|
CDEPEND="
|
|
|
|
>=dev-libs/libqtxdg-1.0.0
|
|
|
|
dev-qt/qtcore:5
|
|
|
|
dev-qt/qtdbus:5
|
|
|
|
dev-qt/qtgui:5
|
|
|
|
dev-qt/qtwidgets:5
|
|
|
|
dev-qt/qtx11extras:5
|
|
|
|
dev-qt/qtxml:5
|
|
|
|
kde-frameworks/kguiaddons:5
|
|
|
|
kde-frameworks/kwindowsystem:5[X]
|
|
|
|
>=lxde-base/menu-cache-0.3.3
|
2018-04-11 18:33:36 +02:00
|
|
|
=lxqt-base/liblxqt-${MY_PV}
|
|
|
|
=lxqt-base/lxqt-globalkeys-${MY_PV}
|
2018-04-11 17:34:35 +02:00
|
|
|
x11-libs/libX11
|
|
|
|
cpuload? ( sys-libs/libstatgrab )
|
|
|
|
kbindicator? ( x11-libs/libxkbcommon )
|
|
|
|
mount? ( kde-frameworks/solid:5 )
|
|
|
|
networkmonitor? ( sys-libs/libstatgrab )
|
|
|
|
sensors? ( sys-apps/lm_sensors )
|
|
|
|
statusnotifier? ( dev-libs/libdbusmenu-qt[qt5(+)] )
|
|
|
|
sysstat? ( =lxqt-base/libsysstat-0.3* )
|
|
|
|
tray? ( x11-libs/libXcomposite
|
|
|
|
x11-libs/libXdamage
|
|
|
|
x11-libs/libXrender )
|
|
|
|
volume? ( alsa? ( media-libs/alsa-lib )
|
|
|
|
pulseaudio? ( media-sound/pulseaudio ) )"
|
|
|
|
DEPEND="${CDEPEND}
|
|
|
|
dev-qt/linguist-tools:5"
|
|
|
|
RDEPEND="${CDEPEND}
|
|
|
|
dev-qt/qtsvg:5
|
|
|
|
>=lxde-base/lxmenu-data-0.1.2"
|
|
|
|
|
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${PN}-0.11.0-fix-undef-explicit.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DPULL_TRANSLATIONS=OFF
|
|
|
|
|
|
|
|
# Plugins
|
|
|
|
-DCLOCK_PLUGIN=$(usex clock)
|
|
|
|
-DCOLORPICKER_PLUGIN=$(usex colorpicker)
|
|
|
|
-DCPULOAD_PLUGIN=$(usex cpuload)
|
|
|
|
-DDESKTOPSWITCH_PLUGIN=$(usex desktopswitch)
|
|
|
|
-DDOM_PLUGIN=$(usex dom)
|
|
|
|
-DKBINDICATOR_PLUGIN=$(usex kbindicator)
|
|
|
|
-DMAINMENU_PLUGIN=$(usex mainmenu)
|
|
|
|
-DMOUNT_PLUGIN=$(usex mount)
|
|
|
|
-DNETWORKMONITOR_PLUGIN=$(usex networkmonitor)
|
|
|
|
-DQUICKLAUNCH_PLUGIN=$(usex quicklaunch)
|
|
|
|
-DSENSORS_PLUGIN=$(usex sensors)
|
|
|
|
-DSHOWDESKTOP_PLUGIN=$(usex showdesktop)
|
|
|
|
-DSTATUSNOTIFIER_PLUGIN=$(usex statusnotifier)
|
|
|
|
-DSYSSTAT_PLUGIN=$(usex sysstat)
|
|
|
|
-DTASKBAR_PLUGIN=$(usex taskbar)
|
|
|
|
-DTRAY_PLUGIN=$(usex tray)
|
|
|
|
-DVOLUME_PLUGIN=$(usex volume)
|
|
|
|
-DWORLDCLOCK_PLUGIN=$(usex worldclock)
|
|
|
|
)
|
|
|
|
|
|
|
|
if use volume; then
|
|
|
|
mycmakeargs+=(
|
|
|
|
-DVOLUME_USE_ALSA=$(usex alsa)
|
|
|
|
-DVOLUME_USE_PULSEAUDIO=$(usex pulseaudio)
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
cmake-utils_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install(){
|
|
|
|
cmake-utils_src_install
|
|
|
|
doman panel/man/*.1
|
|
|
|
}
|