Magellan Linux

Contents of /branches/magellan-next/extras/kdebase4-workspace/kdebase4-workspace-4.5.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7020 - (show annotations) (download)
Mon Sep 27 20:55:23 2010 UTC (13 years, 7 months ago) by niro
File size: 3497 byte(s)
auto added: ver bump to 4.5.1-r1
1 # $Id: kdebase4-workspace-4.4.2-r1.smage2 5467 2010-06-28 11:59:07Z niro $
2
3 PNAME="kdebase4-workspace"
4 PVER="4.5.1"
5 PBUILD="r1"
6
7 PCATEGORIE="kde-base"
8 STATE="unstable"
9
10 DESCRIPTION="The KDE4 workspace."
11
12 DEPEND=">= dev-libs/glib2-2.24
13 >= dev-libs/libusb-0.1.12
14 >= dev-libs/openssl-1.0.0
15 >= media-libs/fontconfig-2.8
16 >= media-libs/freetype-2.4
17 >= media-libs/libpng-1.4
18 >= kde-base/qimageblitz-0.0.6
19 >= net-wlan/bluez-4.56
20 >= net-misc/networkmanager-0.8
21 >= sys-apps/eject-2.1.5
22 >= sys-apps/hal-0.5.14
23 >= sys-apps/usbutils-0.90
24 >= sys-apps/consolekit-0.4.1
25 >= sys-libs/libraw1394-2.0
26 >= sys-libs/pam-1.1
27 >= kde-base/polkit-kde-0.95
28 >= x11-apps/mkfontdir-1
29 >= x11-apps/setxkbmap-1
30 >= x11-apps/xinit-1.2
31 >= x11-apps/xmessage-1
32 >= x11-apps/xprop-1
33 >= x11-apps/xrandr-1.3
34 >= x11-apps/xset-1
35 >= x11-apps/xsetroot-1
36 >= x11-misc/xkeyboard-config-2.0
37 >= x11-libs/libxklavier-4.0
38 >= x11-libs/libXau-1
39 >= x11-libs/libXcomposite-1
40 >= x11-libs/libXdamage-1
41 >= x11-libs/libXdmcp-1
42 >= x11-libs/libXext-1
43 >= x11-libs/libXfixes-1
44 >= x11-libs/libXinerama-1
45 >= x11-libs/libXScrnSaver-1
46 >= x11-libs/libXrender-0.9
47 >= x11-libs/libXres-1
48 >= x11-libs/libXrandr-1.3
49 >= x11-libs/libXtst-1
50 >= x11-libs/libXxf86misc-1
51 >= virtual/opengl"
52
53 # todo: media-libs/libcaptury support!!
54 # - qedje support
55
56 SDEPEND=">= x11-apps/bdftopcf-1
57 >= x11-proto/compositeproto-1
58 >= x11-proto/damageproto-1
59 >= x11-proto/randrproto-1.3
60 >= x11-proto/scrnsaverproto-1
61 >= x11-proto/xineramaproto-1"
62
63 sminclude kde4
64
65 UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'"
66
67 # cvs revisions
68 KDE_PAMD=kde.pamd-1.2
69 KDE_NP_PAMD=kde-np.pamd-1.3
70
71 SRC_URI=(
72 ${SRC_URI[*]}
73 mirror://${PNAME}/kde.desktop
74 mirror://${PNAME}/${KDE_PAMD}
75 mirror://${PNAME}/${KDE_NP_PAMD}
76 mirror://${PNAME}/xdg-env.sh
77 mirror://${PNAME}/agent-startup.sh
78 mirror://${PNAME}/agent-shutdown.sh
79 )
80
81 src_compile()
82 {
83 cd ${SRCDIR}
84
85 # disable old polkitqt support to use the new polkit-qt4/polkit-kde framework
86 kde4_configure \
87 $(cmake_with LibXKlavier) \
88 $(cmake_with GLIB2) \
89 $(cmake_with GObject) \
90 $(cmake_with RAW1394) \
91 $(cmake_with OpenGL) \
92 $(cmake_with OpenSSL) \
93 $(cmake_with USB) \
94 $(cmake_with PAM) \
95 $(cmake_with BlueZ) \
96 $(cmake_with CkConnector) \
97 $(cmake_with NetworkManager) \
98 $(cmake_without Sensors) \
99 $(cmake_without Xmms) \
100 $(cmake_without Googlegadgets) \
101 $(cmake_without QEdje) \
102 $(cmake_without PolkitQt ) \
103 || die
104
105 mmake || die
106 }
107
108 src_install()
109 {
110 cd ${SRCDIR}
111
112 # needed directories
113 minstalldir /etc/xdg/kde || die
114 minstalldir ${KDEDIR}/env || die
115 minstalldir /usr/share/xsessions || die
116 minstalldir ${KDEDIR}/share/config/kdm || die
117 minstalldir ${KDEDIR}/shutdown || die
118
119 # generate a valid kdm configuration
120 export GENKDMCONF_FLAGS="--no-old --no-backup"
121 kde4_src_install || die
122
123 # install gnome session
124 minstallexec -s kde.desktop /usr/share/xsessions || die
125
126 # install pam related stuff
127 minstallpam ${KDE_PAMD} kde || die
128 minstallpam ${KDE_NP_PAMD} kde-np || die
129
130 # fix freedesktop menus structure
131 # move them to /etc/xdg/kde to prevent broken gnome-menus
132 # mv ${BINDIR}/etc/xdg/menus ${BINDIR}/etc/xdg/kde || die
133
134 # install a environment script to tell kde where the xdgs are now
135 minstallfile -s xdg-env.sh ${KDEDIR}/env || die
136
137 # install global agent startup and shutdown scripts
138 minstallfile -s agent-startup.sh ${KDEDIR}/env || die
139 minstallfile -s agent-shutdown.sh ${KDEDIR}/shutdown || die
140 }