Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7024 - (hide annotations) (download)
Mon Sep 27 23:08:28 2010 UTC (13 years, 11 months ago) by niro
File size: 3554 byte(s)
-added libqalculate support
1 niro 7020 # $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 niro 7024 >= sci-libs/libqalculate-0.9.7
29 niro 7020 >= x11-apps/mkfontdir-1
30     >= x11-apps/setxkbmap-1
31     >= x11-apps/xinit-1.2
32     >= x11-apps/xmessage-1
33     >= x11-apps/xprop-1
34     >= x11-apps/xrandr-1.3
35     >= x11-apps/xset-1
36     >= x11-apps/xsetroot-1
37     >= x11-misc/xkeyboard-config-2.0
38     >= x11-libs/libxklavier-4.0
39     >= x11-libs/libXau-1
40     >= x11-libs/libXcomposite-1
41     >= x11-libs/libXdamage-1
42     >= x11-libs/libXdmcp-1
43     >= x11-libs/libXext-1
44     >= x11-libs/libXfixes-1
45     >= x11-libs/libXinerama-1
46     >= x11-libs/libXScrnSaver-1
47     >= x11-libs/libXrender-0.9
48     >= x11-libs/libXres-1
49     >= x11-libs/libXrandr-1.3
50     >= x11-libs/libXtst-1
51     >= x11-libs/libXxf86misc-1
52     >= virtual/opengl"
53    
54 niro 7024 # todo: - media-libs/libcaptury support!!
55 niro 7020 # - qedje support
56 niro 7024 # - lm_sensors support
57 niro 7020
58     SDEPEND=">= x11-apps/bdftopcf-1
59     >= x11-proto/compositeproto-1
60     >= x11-proto/damageproto-1
61     >= x11-proto/randrproto-1.3
62     >= x11-proto/scrnsaverproto-1
63     >= x11-proto/xineramaproto-1"
64    
65     sminclude kde4
66    
67     UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'"
68    
69     # cvs revisions
70     KDE_PAMD=kde.pamd-1.2
71     KDE_NP_PAMD=kde-np.pamd-1.3
72    
73     SRC_URI=(
74     ${SRC_URI[*]}
75     mirror://${PNAME}/kde.desktop
76     mirror://${PNAME}/${KDE_PAMD}
77     mirror://${PNAME}/${KDE_NP_PAMD}
78     mirror://${PNAME}/xdg-env.sh
79     mirror://${PNAME}/agent-startup.sh
80     mirror://${PNAME}/agent-shutdown.sh
81     )
82    
83     src_compile()
84     {
85     cd ${SRCDIR}
86    
87     # disable old polkitqt support to use the new polkit-qt4/polkit-kde framework
88     kde4_configure \
89     $(cmake_with LibXKlavier) \
90     $(cmake_with GLIB2) \
91     $(cmake_with GObject) \
92     $(cmake_with RAW1394) \
93     $(cmake_with OpenGL) \
94     $(cmake_with OpenSSL) \
95     $(cmake_with USB) \
96     $(cmake_with PAM) \
97     $(cmake_with BlueZ) \
98     $(cmake_with CkConnector) \
99     $(cmake_with NetworkManager) \
100     $(cmake_without Sensors) \
101     $(cmake_without Xmms) \
102     $(cmake_without Googlegadgets) \
103     $(cmake_without QEdje) \
104     $(cmake_without PolkitQt ) \
105     || die
106    
107     mmake || die
108     }
109    
110     src_install()
111     {
112     cd ${SRCDIR}
113    
114     # needed directories
115     minstalldir /etc/xdg/kde || die
116     minstalldir ${KDEDIR}/env || die
117     minstalldir /usr/share/xsessions || die
118     minstalldir ${KDEDIR}/share/config/kdm || die
119     minstalldir ${KDEDIR}/shutdown || die
120    
121     # generate a valid kdm configuration
122     export GENKDMCONF_FLAGS="--no-old --no-backup"
123     kde4_src_install || die
124    
125     # install gnome session
126     minstallexec -s kde.desktop /usr/share/xsessions || die
127    
128     # install pam related stuff
129     minstallpam ${KDE_PAMD} kde || die
130     minstallpam ${KDE_NP_PAMD} kde-np || die
131    
132     # fix freedesktop menus structure
133     # move them to /etc/xdg/kde to prevent broken gnome-menus
134     # mv ${BINDIR}/etc/xdg/menus ${BINDIR}/etc/xdg/kde || die
135    
136     # install a environment script to tell kde where the xdgs are now
137     minstallfile -s xdg-env.sh ${KDEDIR}/env || die
138    
139     # install global agent startup and shutdown scripts
140     minstallfile -s agent-startup.sh ${KDEDIR}/env || die
141     minstallfile -s agent-shutdown.sh ${KDEDIR}/shutdown || die
142     }