summaryrefslogtreecommitdiff
blob: ab0f26f158e6e5c0e166f32c05811d4b69b37baa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="4"

inherit leechcraft

DESCRIPTION="UPower-based power manager for LeechCraft"

SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug systemd"

DEPEND="~app-leechcraft/lc-core-${PV}
	x11-libs/qwt:6
	dev-qt/qtdbus:4
	virtual/leechcraft-trayarea"
RDEPEND="${DEPEND}
	!systemd? ( || ( >=sys-power/upower-0.99 sys-power/upower-pm-utils ) )
	systemd? ( || ( >=sys-power/upower-0.9.23 sys-power/upower-pm-utils ) )"

pkg_postinst() {
	if has_version '>=sys-power/upower-0.99'; then
		ewarn "The new sys-power/upower version you have installed doesn't have hibernate"
		ewarn "and suspend. If you need hibernate and suspend in ${PN}, and you use"
		ewarn "systemd, you should downgrade sys-power/upower to 0.9.23 series. All others"
		ewarn "should switch to sys-power/upower-pm-utils, also to 0.9.23 series."
	fi
}