blob: b8fd909736a11107c39bab7b8c2addd84590f89a (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/plasma-workspace/plasma-workspace-4.10.5-r2.ebuild,v 1.2 2013/07/27 11:45:30 ago Exp $
EAPI=5
DECLARATIVE_REQUIRED="always"
KDE_HANDBOOK="optional"
KMNAME="kde-workspace"
KMMODULE="plasma"
PYTHON_DEPEND="python? 2"
OPENGL_REQUIRED="always"
inherit python kde4-meta
DESCRIPTION="Plasma: KDE desktop framework"
KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
IUSE="debug gps json python qalculate +rss semantic-desktop"
COMMONDEPEND="
dev-libs/libdbusmenu-qt
>=dev-qt/qtcore-4.8.4-r3:4
!kde-misc/ktouchpadenabler
$(add_kdebase_dep kactivities)
$(add_kdebase_dep kdelibs 'semantic-desktop(+)?')
$(add_kdebase_dep kephal)
$(add_kdebase_dep ksysguard)
$(add_kdebase_dep libkworkspace)
$(add_kdebase_dep libplasmagenericshell)
$(add_kdebase_dep libtaskmanager)
$(add_kdebase_dep solid)
x11-libs/libX11
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrender
gps? ( >=sci-geosciences/gpsd-2.37 )
json? ( dev-libs/qjson )
python? (
>=dev-python/PyQt4-4.4.0[X]
$(add_kdebase_dep pykde4)
)
qalculate? ( sci-libs/libqalculate )
rss? (
$(add_kdebase_dep kdepimlibs 'semantic-desktop(+)?')
$(add_kdebase_dep libplasmaclock 'holidays(+)')
)
!rss? ( $(add_kdebase_dep libplasmaclock '-holidays(+)') )
semantic-desktop? (
dev-libs/soprano
$(add_kdebase_dep nepomuk-core)
)
"
DEPEND="${COMMONDEPEND}
rss? ( dev-libs/boost )
x11-proto/compositeproto
x11-proto/damageproto
x11-proto/fixesproto
x11-proto/renderproto
"
RDEPEND="${COMMONDEPEND}
$(add_kdebase_dep plasma-runtime)
"
KMEXTRA="
appmenu/
ktouchpadenabler/
statusnotifierwatcher/
"
KMEXTRACTONLY="
kcheckpass/
krunner/dbus/org.freedesktop.ScreenSaver.xml
krunner/dbus/org.kde.krunner.App.xml
ksmserver/org.kde.KSMServerInterface.xml
ksmserver/screenlocker/
libs/kephal/
libs/kworkspace/
libs/taskmanager/
libs/plasmagenericshell/
libs/ksysguard/
libs/kdm/kgreeterplugin.h
ksysguard/
"
KMLOADLIBS="libkworkspace libplasmaclock libplasmagenericshell libtaskmanager"
PATCHES=(
"${FILESDIR}/${PN}-4.10.1-noplasmalock.patch"
"${FILESDIR}/${PN}-4.10.5-leak.patch"
"${FILESDIR}/${PN}-4.10.4-crypt.patch"
)
pkg_setup() {
if use python ; then
python_set_active_version 2
python_pkg_setup
fi
kde4-meta_pkg_setup
}
src_unpack() {
if use handbook; then
KMEXTRA+=" doc/plasma-desktop"
fi
kde4-meta_src_unpack
}
src_configure() {
mycmakeargs=(
$(cmake-utils_use_with gps libgps)
$(cmake-utils_use_with json QJSON)
$(cmake-utils_use_with python PythonLibrary)
$(cmake-utils_use_with qalculate)
$(cmake-utils_use_with rss KdepimLibs)
$(cmake-utils_use_with semantic-desktop Akonadi)
$(cmake-utils_use_with semantic-desktop NepomukCore)
$(cmake-utils_use_with semantic-desktop Soprano)
-DWITH_Googlegadgets=OFF
-DWITH_Xmms=OFF
)
kde4-meta_src_configure
}
pkg_postinst() {
kde4-meta_pkg_postinst
if use python; then
python_mod_optimize \
PyKDE4/plasmascript.py \
/usr/share/apps/plasma_scriptengine_python
fi
}
pkg_postrm() {
kde4-meta_pkg_postrm
if use python; then
python_mod_cleanup \
PyKDE4/plasmascript.py \
/usr/share/apps/plasma_scriptengine_python
fi
}
|