blob: 2613f98759690a7398800752148b4097a2dc8350 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit cmake-utils cairo-dock
DESCRIPTION="Official plugins for cairo-dock subject to removal"
HOMEPAGE="http://www.glx-dock.org"
LICENSE="|| ( LGPL-2 LGPL-2.1 LGPL-3 ) GPL-2 GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
CD_PLUGIN_IUSE="netspeed wifi"
IUSE="${CD_PLUGIN_IUSE} gtk2"
REQUIRED_USE="|| ( ${CD_PLUGIN_IUSE} )"
CDP_DEPEND="dev-libs/dbus-glib
>=dev-libs/glib-2.22:2
dev-libs/libxml2:2
gnome-base/librsvg:2
sys-apps/dbus
x11-libs/cairo
~x11-misc/cairo-dock-${PV}[gtk2=]
!x11-misc/cairo-dock-plugins
!x11-plugins/cairo-dock-plugins
!gtk2? ( x11-libs/gtk+:3 )
gtk2? ( x11-libs/gtk+:2 )"
RDEPEND="${CDP_DEPEND}"
DEPEND="${RDEPEND}
dev-util/intltool
sys-devel/gettext
dev-util/pkgconfig"
pkg_setup() {
use netspeed && CD_PLUGINS+=( "netspeed" )
use wifi && CD_PLUGINS+=( "wifi" )
}
src_unpack() {
cairo-dock_src_unpack
}
src_prepare() {
cairo-dock_src_prepare
use wifi && epatch "${FILESDIR}"/${PN}-fix-wifi-script.patch
}
src_configure() {
mycmakeargs+=(
"$(cmake-utils_use_enable netspeed NETSPEED)"
"$(cmake-utils_use_enable wifi WIFI)"
)
cmake-utils_src_configure
}
|