Contents of /trunk/extras/kdebase-workspace/kdebase-workspace-4.9.4-r1.smage2
Parent Directory | Revision Log
Revision 14434 -
(show annotations)
(download)
Wed Dec 19 10:21:59 2012 UTC (11 years, 5 months ago) by niro
File size: 6165 byte(s)
Wed Dec 19 10:21:59 2012 UTC (11 years, 5 months ago) by niro
File size: 6165 byte(s)
auto added: ver bump to 4.9.4-r1
1 | # $Id$ |
2 | |
3 | PNAME="kdebase-workspace" |
4 | PVER="4.9.4" |
5 | PBUILD="r1" |
6 | |
7 | SPLIT_PACKAGES="libkworkspace kdm kdebase-workspace" |
8 | |
9 | # todo: |
10 | # - google-gadgets |
11 | # - libgps |
12 | # - lm_sensors support |
13 | DEPEND="== kde-base/kdelibs-${PVER} |
14 | == kde-base/kdepimlibs-${PVER} |
15 | == kde-base/kdepim-runtime-${PVER} |
16 | == kde-base/kactivities-${PVER} |
17 | == kde-base/kde-wallpapers-${PVER} |
18 | == kde-base/kde-base-artwork-${PVER} |
19 | >= dev-libs/polkit-qt-0.103 |
20 | >= kde-base/polkit-kde-kcmodules-0.99 |
21 | >= kde-base/polkit-kde-agent-0.99 |
22 | >= dev-libs/glib2-2.34 |
23 | >= dev-libs/libusb-compat-1 |
24 | >= dev-libs/soprano-2.8 |
25 | >= dev-libs/shared-desktop-ontologies-0.10 |
26 | >= media-libs/fontconfig-2.9 |
27 | >= media-libs/freetype-2.4 |
28 | >= media-libs/prison-1 |
29 | >= sys-apps/pciutils-3.1 |
30 | >= sys-libs/libraw1394-2.1 |
31 | >= sci-libs/libqalculate-0.9.7 |
32 | >= x11-apps/xprop-1.2 |
33 | >= x11-apps/xrandr-1.3 |
34 | >= x11-apps/xrdb-1 |
35 | >= x11-apps/xset-1.2 |
36 | >= x11-apps/xsetroot-1.1 |
37 | >= x11-libs/libxkbfile-1.0.7 |
38 | >= x11-libs/libXcomposite-0.4 |
39 | >= x11-libs/libXdamage-1.1 |
40 | >= x11-libs/libXfixes-5 |
41 | >= x11-libs/libXft-2.2 |
42 | >= x11-libs/libXinerama-1.1 |
43 | >= x11-libs/libXScrnSaver-1 |
44 | >= x11-libs/libXrender-0.9 |
45 | >= x11-libs/libXres-1 |
46 | >= x11-libs/libXrandr-1.3 |
47 | >= virtual/opengl" |
48 | |
49 | KDM_DEPEND="== kde-base/kdelibs-${PVER} |
50 | >= kde-base/qimageblitz-0.0.6 |
51 | >= sys-apps/dbus-1.5 |
52 | >= sys-libs/pam-1.1 |
53 | >= x11-libs/libX11-1.4 |
54 | >= x11-libs/libXtst-1.2 |
55 | >= x11-apps/xinit-1.3 |
56 | >= x11-apps/xmessage-1" |
57 | |
58 | SDEPEND=">= dev-libs/boost-1.51 |
59 | >= dev-python/pyqt4-4.9 |
60 | == dev-python/pykde4-${PVER} |
61 | >= net-misc/networkmanager-0.9.6 |
62 | >= x11-proto/compositeproto-1 |
63 | >= x11-proto/damageproto-1 |
64 | >= x11-proto/fixesproto-5 |
65 | >= x11-proto/randrproto-1.3 |
66 | >= x11-proto/renderproto-0.11 |
67 | >= x11-proto/scrnsaverproto-1 |
68 | >= x11-proto/xineramaproto-1" |
69 | |
70 | PROVIDE="virtual/windowmanager" |
71 | |
72 | SRCFILE="kde-workspace-${PVER}.tar.xz" |
73 | SRCDIR="${BUILDDIR}/kde-workspace-${PVER}" |
74 | |
75 | # no meta-package required |
76 | KDE4_GENERATE_META_PACKAGE=0 |
77 | sminclude kde4-split-2 |
78 | |
79 | # cvs revisions |
80 | KDE_PAMD=kde.pamd-systemauth |
81 | KDE_NP_PAMD=kde-np.pamd-systemauth |
82 | KDM_REV=1.2 |
83 | |
84 | SRC_URI=( |
85 | ${SRC_URI[*]} |
86 | mirror://${PNAME}/kde.desktop |
87 | mirror://${PNAME}/${KDE_PAMD} |
88 | mirror://${PNAME}/${KDE_NP_PAMD} |
89 | mirror://${PNAME}/agent-startup.sh |
90 | mirror://${PNAME}/agent-shutdown.sh |
91 | mirror://${PNAME}/kdm.logrotate |
92 | mirror://${PNAME}/kdm.service-${KDM_REV} |
93 | mirror://${PNAME}/${PNAME}-${PVER}-rootprivs.patch |
94 | mirror://${PNAME}/${PNAME}-${PVER}-battery-plasmoid-showremainingtime.patch |
95 | mirror://${PNAME}/${PNAME}-${PVER}-kdm-plymouth.patch |
96 | mirror://${PNAME}/${PNAME}-${PVER}-xsession-errors-O_APPEND.patch |
97 | mirror://${PNAME}/${PNAME}-${PVER}-fix-reboot.patch |
98 | mirror://${PNAME}/${PNAME}-${PVER}-systemd-displaymanager.patch |
99 | ) |
100 | |
101 | UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'" |
102 | |
103 | split_info_libkworkspace() |
104 | { |
105 | DESCRIPTION="A library for KDE desktop applications." |
106 | DEPEND="${LIBKWORKSPACE_DEPEND}" |
107 | } |
108 | |
109 | split_info_kdm() |
110 | { |
111 | DESCRIPTION="KDE4 login manager." |
112 | DEPEND="${KDM_DEPEND} |
113 | == kde-base/libkworkspace-${PVER}" |
114 | } |
115 | |
116 | split_info_kdebase-workspace() |
117 | { |
118 | DESCRIPTION="The KDE4 workspace." |
119 | DEPEND="${WORKSPACE_DEPEND} |
120 | == kde-base/kdm-${PVER}" |
121 | } |
122 | |
123 | src_prepare() |
124 | { |
125 | munpack ${SRCFILE} || die |
126 | cd ${SRCDIR} |
127 | |
128 | # allow systemsettings to enter an administrative mode |
129 | mpatch ${PNAME}-${PVER}-rootprivs.patch || die |
130 | |
131 | # show remaing battery time by default |
132 | mpatch ${PNAME}-${PVER}-battery-plasmoid-showremainingtime.patch || die |
133 | |
134 | # improved plymouth support |
135 | mpatch ${PNAME}-${PVER}-kdm-plymouth.patch || die |
136 | |
137 | # add missing O_APPEND |
138 | mpatch ${PNAME}-${PVER}-xsession-errors-O_APPEND.patch || die |
139 | |
140 | # systemd fix kdm restart/shutdown does not work |
141 | mpatch ${PNAME}-${PVER}-fix-reboot.patch || die |
142 | |
143 | # fully support systemd |
144 | mpatch ${PNAME}-${PVER}-systemd-displaymanager.patch || die |
145 | } |
146 | |
147 | src_compile() |
148 | { |
149 | cd ${SRCDIR} |
150 | |
151 | # no consolekit anymore, use systemd-logind |
152 | kde4_configure \ |
153 | $(cmake_with Akonadi) \ |
154 | $(cmake_with Boost) \ |
155 | $(cmake_with GLIB2) \ |
156 | $(cmake_with NetworkManager) \ |
157 | $(cmake_with OpenGL) \ |
158 | $(cmake_with PAM) \ |
159 | $(cmake_with PyKDE4) \ |
160 | $(cmake_with PythonLibrary) \ |
161 | $(cmake_with Qalculate) \ |
162 | $(cmake_with RAW1394) \ |
163 | $(cmake_with SIP) \ |
164 | $(cmake_with Soprano) \ |
165 | $(cmake_with USB) \ |
166 | $(cmake_with XKB) \ |
167 | $(cmake_without Googlegadgets) \ |
168 | $(cmake_without Sensors) \ |
169 | $(cmake_without Xmms) \ |
170 | $(cmake_without libgps) \ |
171 | $(cmake_without CkConnector) \ |
172 | || die |
173 | |
174 | mmake || die |
175 | } |
176 | |
177 | src_install_libkworkspace() |
178 | { |
179 | cd ${SRCDIR} |
180 | kde4-split_src_install_wrapper libs/kworkspace || die |
181 | } |
182 | |
183 | src_install_kdm() |
184 | { |
185 | cd ${SRCDIR} |
186 | |
187 | local kdemodule="kdm" |
188 | |
189 | # generate a valid kdm configuration |
190 | minstalldir ${KDEDIR}/share/config/kdm || die |
191 | export GENKDMCONF_FLAGS="--no-old --no-backup" |
192 | kde4-split_src_install_wrapper ${kdemodule} || die |
193 | kde4-split_src_install_wrapper libs/${kdemodule} || die |
194 | kde4-split_src_install_wrapper doc/${kdemodule} || die |
195 | |
196 | # workaround a dm bug the the xserver is not restarted |
197 | # see: https://bugs.kde.org/show_bug.cgi?id=202629#c13 |
198 | sed -i -e '/#TerminateServer=/s/^.*$/TerminateServer=true/' \ |
199 | -e '/#ServerTimeout=/s/^.*$/ServerTimeout=30/' \ |
200 | ${BINDIR}/usr/share/config/kdm/kdmrc || die |
201 | |
202 | # install gnome session |
203 | minstalldir /usr/share/xsessions || die |
204 | minstallexec -s kde.desktop /usr/share/xsessions || die |
205 | |
206 | # install pam related stuff |
207 | minstallpam ${KDE_PAMD} kde || die |
208 | minstallpam ${KDE_NP_PAMD} kde-np || die |
209 | |
210 | # systemd unit |
211 | minstallunit kdm.service || die |
212 | |
213 | # kdm logrotate |
214 | minstalllog kdm.logrotate kdm || die |
215 | |
216 | # kdm run dir |
217 | mkeepdir /var/lib/kdm || die |
218 | mchown root:kdm /var/lib/kdm || die |
219 | mchmod 1770 /var/lib/kdm || die |
220 | } |
221 | |
222 | src_install_kdebase-workspace() |
223 | { |
224 | cd ${SRCDIR} |
225 | kde4_src_install || die |
226 | |
227 | # install global agent startup and shutdown scripts |
228 | minstalldir ${KDEDIR}/env || die |
229 | minstallfile -s agent-startup.sh ${KDEDIR}/env || die |
230 | minstalldir ${KDEDIR}/shutdown || die |
231 | minstallfile -s agent-shutdown.sh ${KDEDIR}/shutdown || die |
232 | } |
233 | |
234 | preinstall_kdm() |
235 | { |
236 | # kdm now requires a user |
237 | ${MLIBDIR}/mgroupadd -o "-g 135" kdm |
238 | ${MLIBDIR}/museradd -o "-u 135 -g kdm -d /var/lib/kdm -s /bin/false" kdm |
239 | } |
240 | |
241 | postinstall_kdm() |
242 | { |
243 | mstartunit kdm.service |
244 | } |
245 | |
246 | postremove_kdm() |
247 | { |
248 | mstopunit kdm.service |
249 | } |