/[gentoo-x86]/eclass/kde4-functions.eclass
Gentoo

Diff of /eclass/kde4-functions.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.9
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.6 2008/05/15 19:49:32 ingmar Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.9 2008/10/07 01:41:36 jmbsvicetto Exp $
4 4
5# @ECLASS: kde4-functions.eclass 5# @ECLASS: kde4-functions.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: Common ebuild functions for monolithic and split KDE 4 packages 8# @BLURB: Common ebuild functions for monolithic and split KDE 4 packages
27if [[ "${KMNAME}" == "koffice" || "${PN}" == "koffice" ]]; then 27if [[ "${KMNAME}" == "koffice" || "${PN}" == "koffice" ]]; then
28 debug-print "${ECLASS}: KOFFICE ebuild recognized" 28 debug-print "${ECLASS}: KOFFICE ebuild recognized"
29 KDEBASE="koffice" 29 KDEBASE="koffice"
30fi 30fi
31 31
32# @ECLASS-VARIABLE: KDE_SLOTS
33# @DESCRIPTION:
34# The slots used by all KDE versions after 4.0 - this doesn't include kde-3.5 and the
35# live-ebuilds that use the following var.
36KDE_SLOTS=( "kde-4" "4.1" )
37
38# @ECLASS-VARIABLE: KDE_LIVE_SLOTS
39# @DESCRIPTION:
40# The slots used by all KDE live versions.
41KDE_LIVE_SLOTS=( "kde-svn" )
42
32# @ECLASS-VARIABLE: KDE_DERIVATION_MAP 43# @ECLASS-VARIABLE: KDE_DERIVATION_MAP
33# @DESCRIPTION: 44# @DESCRIPTION:
34# Map of the monolithic->split ebuild derivation. 45# Map of the monolithic->split ebuild derivation.
35# Used to build dependencies describing the relationships between them: 46# Used to build dependencies describing the relationships between them:
36# Monolithic ebuilds block their split counterparts in the same slot, and vice versa. 47# Monolithic ebuilds block their split counterparts in the same slot, and vice versa.
37# 48#
38# Also see get-parent-package(), get-child-packages(), is-parent-package() 49# Also see get-parent-package(), get-child-packages(), is-parent-package()
39KDE_DERIVATION_MAP=' 50KDE_DERIVATION_MAP='
51app-office/koffice app-office/karbon
52app-office/koffice app-office/kchart
53app-office/koffice app-office/kexi
54app-office/koffice app-office/kformula
55app-office/koffice app-office/kivio
56app-office/koffice app-office/koffice-data
57app-office/koffice app-office/koffice-libs
58app-office/koffice app-office/koshell
59app-office/koffice app-office/kplato
60app-office/koffice app-office/kpresenter
61app-office/koffice app-office/krita
62app-office/koffice app-office/kspread
63app-office/koffice app-office/kugar
64app-office/koffice app-office/kword
40kde-base/kdeaccessibility kde-base/kdeaccessibility-colorschemes 65kde-base/kdeaccessibility kde-base/kdeaccessibility-colorschemes
41kde-base/kdeaccessibility kde-base/kdeaccessibility-iconthemes 66kde-base/kdeaccessibility kde-base/kdeaccessibility-iconthemes
42kde-base/kdeaccessibility kde-base/kmag 67kde-base/kdeaccessibility kde-base/kmag
43kde-base/kdeaccessibility kde-base/kmousetool 68kde-base/kdeaccessibility kde-base/kmousetool
44kde-base/kdeaccessibility kde-base/kmouth 69kde-base/kdeaccessibility kde-base/kmouth
45kde-base/kdeaccessibility kde-base/kttsd 70kde-base/kdeaccessibility kde-base/kttsd
46kde-base/kdeadmin kde-base/kcron 71kde-base/kdeadmin kde-base/kcron
47kde-base/kdeadmin kde-base/kdat 72kde-base/kdeadmin kde-base/kdat
48kde-base/kdeadmin kde-base/knetworkconf 73kde-base/kdeadmin kde-base/knetworkconf
74kde-base/kdeadmin kde-base/kpackage
75kde-base/kdeadmin kde-base/ksystemlog
49kde-base/kdeadmin kde-base/ksysv 76kde-base/kdeadmin kde-base/ksysv
50kde-base/kdeadmin kde-base/kuser 77kde-base/kdeadmin kde-base/kuser
51kde-base/kdeadmin kde-base/lilo-config 78kde-base/kdeadmin kde-base/lilo-config
52kde-base/kdeadmin kde-base/secpolicy 79kde-base/kdeadmin kde-base/secpolicy
53kde-base/kdeartwork kde-base/kdeartwork-colorschemes 80kde-base/kdeartwork kde-base/kdeartwork-colorschemes
58kde-base/kdeartwork kde-base/kdeartwork-kworldclock 85kde-base/kdeartwork kde-base/kdeartwork-kworldclock
59kde-base/kdeartwork kde-base/kdeartwork-sounds 86kde-base/kdeartwork kde-base/kdeartwork-sounds
60kde-base/kdeartwork kde-base/kdeartwork-styles 87kde-base/kdeartwork kde-base/kdeartwork-styles
61kde-base/kdeartwork kde-base/kdeartwork-wallpapers 88kde-base/kdeartwork kde-base/kdeartwork-wallpapers
62kde-base/kdebase kde-base/dolphin 89kde-base/kdebase kde-base/dolphin
90kde-base/kdebase kde-base/drkonqi
63kde-base/kdebase kde-base/kappfinder 91kde-base/kdebase kde-base/kappfinder
64kde-base/kdebase kde-base/kdepasswd 92kde-base/kdebase kde-base/kcheckpass
65kde-base/kdebase kde-base/kdialog
66kde-base/kdebase kde-base/keditbookmarks
67kde-base/kdebase kde-base/kfind 93kde-base/kdebase kde-base/kcminit
68kde-base/kdebase kde-base/kinfocenter
69kde-base/kdebase kde-base/konqueror
70kde-base/kdebase kde-base/konsole
71kde-base/kdebase kde-base/kwrite
72kde-base/kdebase kde-base/libkonq
73kde-base/kdebase kde-base/nsplugins
74kde-base/kdebase kde-base/drkonqi
75kde-base/kdebase kde-base/kcmshell 94kde-base/kdebase kde-base/kcmshell
76kde-base/kdebase kde-base/kcontrol 95kde-base/kdebase kde-base/kcontrol
96kde-base/kdebase kde-base/kde-menu
97kde-base/kdebase kde-base/kde-menu-icons
98kde-base/kdebase kde-base/kde-wallpapers
99kde-base/kdebase kde-base/kdebase-cursors
77kde-base/kdebase kde-base/kdebase-data 100kde-base/kdebase kde-base/kdebase-data
78kde-base/kdebase kde-base/kdebase-kioslaves 101kde-base/kdebase kde-base/kdebase-kioslaves
102kde-base/kdebase kde-base/kdebase-startkde
79kde-base/kdebase kde-base/kdebugdialog 103kde-base/kdebase kde-base/kdebugdialog
80kde-base/kdebase kde-base/kde-menu 104kde-base/kdebase kde-base/kdepasswd
81kde-base/kdebase kde-base/kdesu 105kde-base/kdebase kde-base/kdesu
106kde-base/kdebase kde-base/kdialog
107kde-base/kdebase kde-base/kdm
108kde-base/kdebase kde-base/keditbookmarks
82kde-base/kdebase kde-base/kfile 109kde-base/kdebase kde-base/kfile
110kde-base/kdebase kde-base/kfind
83kde-base/kdebase kde-base/khelpcenter 111kde-base/kdebase kde-base/khelpcenter
112kde-base/kdebase kde-base/khotkeys
84kde-base/kdebase kde-base/kiconfinder 113kde-base/kdebase kde-base/kiconfinder
114kde-base/kdebase kde-base/kinfocenter
85kde-base/kdebase kde-base/kioclient 115kde-base/kdebase kde-base/kioclient
116kde-base/kdebase kde-base/klipper
117kde-base/kdebase kde-base/kmenuedit
86kde-base/kdebase kde-base/kmimetypefinder 118kde-base/kdebase kde-base/kmimetypefinder
87kde-base/kdebase kde-base/knetattach 119kde-base/kdebase kde-base/knetattach
88kde-base/kdebase kde-base/knewstuff 120kde-base/kdebase kde-base/knewstuff
89kde-base/kdebase kde-base/knotify 121kde-base/kdebase kde-base/knotify
122kde-base/kdebase kde-base/konqueror
123kde-base/kdebase kde-base/konsole
90kde-base/kdebase kde-base/kpasswdserver 124kde-base/kdebase kde-base/kpasswdserver
91kde-base/kdebase kde-base/kquitapp 125kde-base/kdebase kde-base/kquitapp
92kde-base/kdebase kde-base/kreadconfig 126kde-base/kdebase kde-base/kreadconfig
93kde-base/kdebase kde-base/kstart
94kde-base/kdebase kde-base/kstyles
95kde-base/kdebase kde-base/ktimezoned
96kde-base/kdebase kde-base/ktraderclient
97kde-base/kdebase kde-base/kuiserver
98kde-base/kdebase kde-base/kurifilter-plugins
99kde-base/kdebase kde-base/nepomuk
100kde-base/kdebase kde-base/phonon
101kde-base/kdebase kde-base/solid-hardware
102kde-base/kdebase kde-base/soliduiserver
103kde-base/kdebase kde-base/kcheckpass
104kde-base/kdebase kde-base/kcminit
105kde-base/kdebase kde-base/kdebase-startkde
106kde-base/kdebase kde-base/kstartupconfig
107kde-base/kdebase kde-base/kde-menu-icons
108kde-base/kdebase kde-base/kde-wallpapers
109kde-base/kdebase kde-base/kdm
110kde-base/kdebase kde-base/khotkeys
111kde-base/kdebase kde-base/klipper
112kde-base/kdebase kde-base/kmenuedit
113kde-base/kdebase kde-base/krunner 127kde-base/kdebase kde-base/krunner
114kde-base/kdebase kde-base/kscreensaver 128kde-base/kdebase kde-base/kscreensaver
115kde-base/kdebase kde-base/ksmserver 129kde-base/kdebase kde-base/ksmserver
116kde-base/kdebase kde-base/ksplash 130kde-base/kdebase kde-base/ksplash
131kde-base/kdebase kde-base/kstart
132kde-base/kdebase kde-base/kstartupconfig
133kde-base/kdebase kde-base/kstyles
117kde-base/kdebase kde-base/ksysguard 134kde-base/kdebase kde-base/ksysguard
118kde-base/kdebase kde-base/ksystraycmd 135kde-base/kdebase kde-base/ksystraycmd
136kde-base/kdebase kde-base/ktimezoned
119kde-base/kdebase kde-base/ktip 137kde-base/kdebase kde-base/ktip
138kde-base/kdebase kde-base/ktraderclient
139kde-base/kdebase kde-base/kuiserver
140kde-base/kdebase kde-base/kurifilter-plugins
120kde-base/kdebase kde-base/kwin 141kde-base/kdebase kde-base/kwin
142kde-base/kdebase kde-base/kwrite
143kde-base/kdebase kde-base/libkonq
121kde-base/kdebase kde-base/libkworkspace 144kde-base/kdebase kde-base/libkworkspace
122kde-base/kdebase kde-base/libplasma 145kde-base/kdebase kde-base/libplasma
123kde-base/kdebase kde-base/libtaskmanager 146kde-base/kdebase kde-base/libtaskmanager
147kde-base/kdebase kde-base/nepomuk
148kde-base/kdebase kde-base/nsplugins
149kde-base/kdebase kde-base/phonon
150kde-base/kdebase kde-base/phonon-xine
124kde-base/kdebase kde-base/plasma 151kde-base/kdebase kde-base/plasma
152kde-base/kdebase kde-base/plasma-apps
153kde-base/kdebase kde-base/plasma-workspace
154kde-base/kdebase kde-base/renamedlg-plugins
125kde-base/kdebase kde-base/solid 155kde-base/kdebase kde-base/solid
156kde-base/kdebase kde-base/solid-hardware
157kde-base/kdebase kde-base/soliduiserver
126kde-base/kdebase kde-base/systemsettings 158kde-base/kdebase kde-base/systemsettings
127kde-base/kdebindings kde-base/kalyptus 159kde-base/kdebindings kde-base/kalyptus
128kde-base/kdebindings kde-base/kdejava 160kde-base/kdebindings kde-base/kdejava
129kde-base/kdebindings kde-base/kimono 161kde-base/kdebindings kde-base/kimono
130kde-base/kdebindings kde-base/kjsembed 162kde-base/kdebindings kde-base/kjsembed
131kde-base/kdebindings kde-base/korundum 163kde-base/kdebindings kde-base/korundum
164kde-base/kdebindings kde-base/krossjava
132kde-base/kdebindings kde-base/krosspython 165kde-base/kdebindings kde-base/krosspython
133kde-base/kdebindings kde-base/krossruby 166kde-base/kdebindings kde-base/krossruby
134kde-base/kdebindings kde-base/pykde4 167kde-base/kdebindings kde-base/pykde4
135kde-base/kdebindings kde-base/qyoto
136kde-base/kdebindings kde-base/qtjava 168kde-base/kdebindings kde-base/qtjava
137kde-base/kdebindings kde-base/qtruby 169kde-base/kdebindings kde-base/qtruby
138kde-base/kdebindings kde-base/qtsharp 170kde-base/kdebindings kde-base/qtsharp
171kde-base/kdebindings kde-base/qyoto
139kde-base/kdebindings kde-base/smoke 172kde-base/kdebindings kde-base/smoke
140kde-base/kdebindings kde-base/xparts 173kde-base/kdebindings kde-base/xparts
141kde-base/kdeedu kde-base/blinken 174kde-base/kdeedu kde-base/blinken
142kde-base/kdeedu kde-base/kalgebra 175kde-base/kdeedu kde-base/kalgebra
143kde-base/kdeedu kde-base/kalzium 176kde-base/kdeedu kde-base/kalzium
160kde-base/kdeedu kde-base/step 193kde-base/kdeedu kde-base/step
161kde-base/kdegames kde-base/bovo 194kde-base/kdegames kde-base/bovo
162kde-base/kdegames kde-base/katomic 195kde-base/kdegames kde-base/katomic
163kde-base/kdegames kde-base/kbattleship 196kde-base/kdegames kde-base/kbattleship
164kde-base/kdegames kde-base/kblackbox 197kde-base/kdegames kde-base/kblackbox
198kde-base/kdegames kde-base/kblocks
165kde-base/kdegames kde-base/kbounce 199kde-base/kdegames kde-base/kbounce
200kde-base/kdegames kde-base/kbreakout
166kde-base/kdegames kde-base/kdiamond 201kde-base/kdegames kde-base/kdiamond
167kde-base/kdegames kde-base/kfourinline 202kde-base/kdegames kde-base/kfourinline
168kde-base/kdegames kde-base/kgoldrunner 203kde-base/kdegames kde-base/kgoldrunner
169kde-base/kdegames kde-base/kiriki 204kde-base/kdegames kde-base/kiriki
170kde-base/kdegames kde-base/kjumpingcube 205kde-base/kdegames kde-base/kjumpingcube
177kde-base/kdegames kde-base/konquest 212kde-base/kdegames kde-base/konquest
178kde-base/kdegames kde-base/kpat 213kde-base/kdegames kde-base/kpat
179kde-base/kdegames kde-base/kreversi 214kde-base/kdegames kde-base/kreversi
180kde-base/kdegames kde-base/ksame 215kde-base/kdegames kde-base/ksame
181kde-base/kdegames kde-base/kshisen 216kde-base/kdegames kde-base/kshisen
217kde-base/kdegames kde-base/ksirk
182kde-base/kdegames kde-base/kspaceduel 218kde-base/kdegames kde-base/kspaceduel
183kde-base/kdegames kde-base/ksquares 219kde-base/kdegames kde-base/ksquares
184kde-base/kdegames kde-base/ksudoku 220kde-base/kdegames kde-base/ksudoku
185kde-base/kdegames kde-base/ktuberling 221kde-base/kdegames kde-base/ktuberling
186kde-base/kdegames kde-base/kubrick 222kde-base/kdegames kde-base/kubrick
188kde-base/kdegames kde-base/libkmahjongg 224kde-base/kdegames kde-base/libkmahjongg
189kde-base/kdegames kde-base/lskat 225kde-base/kdegames kde-base/lskat
190kde-base/kdegraphics kde-base/gwenview 226kde-base/kdegraphics kde-base/gwenview
191kde-base/kdegraphics kde-base/kamera 227kde-base/kdegraphics kde-base/kamera
192kde-base/kdegraphics kde-base/kcolorchooser 228kde-base/kdegraphics kde-base/kcolorchooser
229kde-base/kdegraphics kde-base/kdegraphics-strigi-analyzer
193kde-base/kdegraphics kde-base/kgamma 230kde-base/kdegraphics kde-base/kgamma
194kde-base/kdegraphics kde-base/kghostview 231kde-base/kdegraphics kde-base/kghostview
195kde-base/kdegraphics kde-base/kolourpaint 232kde-base/kdegraphics kde-base/kolourpaint
196kde-base/kdegraphics kde-base/kruler 233kde-base/kdegraphics kde-base/kruler
234kde-base/kdegraphics kde-base/ksaneplugin
197kde-base/kdegraphics kde-base/ksnapshot 235kde-base/kdegraphics kde-base/ksnapshot
236kde-base/kdegraphics kde-base/libkdcraw
237kde-base/kdegraphics kde-base/libkexiv2
238kde-base/kdegraphics kde-base/libkipi
239kde-base/kdegraphics kde-base/libksane
198kde-base/kdegraphics kde-base/libkscan 240kde-base/kdegraphics kde-base/libkscan
199kde-base/kdegraphics kde-base/okular 241kde-base/kdegraphics kde-base/okular
200kde-base/kdegraphics kde-base/svgpart 242kde-base/kdegraphics kde-base/svgpart
201kde-base/kdemultimedia kde-base/dragonplayer 243kde-base/kdemultimedia kde-base/dragonplayer
202kde-base/kdemultimedia kde-base/juk 244kde-base/kdemultimedia kde-base/juk
203kde-base/kdemultimedia kde-base/kdemultimedia-kioslaves 245kde-base/kdemultimedia kde-base/kdemultimedia-kioslaves
246kde-base/kdemultimedia kde-base/kdemultimedia-strigi-analyzer
204kde-base/kdemultimedia kde-base/kmix 247kde-base/kdemultimedia kde-base/kmix
205kde-base/kdemultimedia kde-base/kscd 248kde-base/kdemultimedia kde-base/kscd
206kde-base/kdemultimedia kde-base/libkcddb 249kde-base/kdemultimedia kde-base/libkcddb
207kde-base/kdemultimedia kde-base/libkcompactdisc 250kde-base/kdemultimedia kde-base/libkcompactdisc
208kde-base/kdenetwork kde-base/kdenetwork-filesharing 251kde-base/kdenetwork kde-base/kdenetwork-filesharing
219kde-base/kdepim kde-base/kabc2mutt 262kde-base/kdepim kde-base/kabc2mutt
220kde-base/kdepim kde-base/kabcclient 263kde-base/kdepim kde-base/kabcclient
221kde-base/kdepim kde-base/kaddressbook 264kde-base/kdepim kde-base/kaddressbook
222kde-base/kdepim kde-base/kalarm 265kde-base/kdepim kde-base/kalarm
223kde-base/kdepim kde-base/kdemaildir 266kde-base/kdepim kde-base/kdemaildir
267kde-base/kdepim kde-base/kdepim-icons
224kde-base/kdepim kde-base/kdepim-kioslaves 268kde-base/kdepim kde-base/kdepim-kioslaves
225kde-base/kdepim kde-base/kdepim-kresources 269kde-base/kdepim kde-base/kdepim-kresources
270kde-base/kdepim kde-base/kdepim-strigi-analyzer
226kde-base/kdepim kde-base/kdepim-wizards 271kde-base/kdepim kde-base/kdepim-wizards
227kde-base/kdepim kde-base/kfeed 272kde-base/kdepim kde-base/kfeed
228kde-base/kdepim kde-base/kitchensync 273kde-base/kdepim kde-base/kitchensync
274kde-base/kdepim kde-base/kjots
229kde-base/kdepim kde-base/kleopatra 275kde-base/kdepim kde-base/kleopatra
230kde-base/kdepim kde-base/kmail 276kde-base/kdepim kde-base/kmail
231kde-base/kdepim kde-base/kmailcvt 277kde-base/kdepim kde-base/kmailcvt
232kde-base/kdepim kde-base/kmobiletools 278kde-base/kdepim kde-base/kmobiletools
233kde-base/kdepim kde-base/knode 279kde-base/kdepim kde-base/knode
234kde-base/kdepim kde-base/knotes 280kde-base/kdepim kde-base/knotes
235kde-base/kdepim kde-base/kode 281kde-base/kdepim kde-base/kode
236kde-base/kdepim kde-base/konsolekalendar 282kde-base/kdepim kde-base/konsolekalendar
237kde-base/kdepim kde-base/kontact 283kde-base/kdepim kde-base/kontact
238kde-base/kdepim kde-base/kontact-specialdates 284kde-base/kdepim kde-base/kontact-specialdates
285kde-base/kdepim kde-base/kontactinterfaces
239kde-base/kdepim kde-base/korganizer 286kde-base/kdepim kde-base/korganizer
240kde-base/kdepim kde-base/korn 287kde-base/kdepim kde-base/korn
241kde-base/kdepim kde-base/kpilot 288kde-base/kdepim kde-base/kpilot
242kde-base/kdepim kde-base/ktimetracker 289kde-base/kdepim kde-base/ktimetracker
243kde-base/kdepim kde-base/ktnef 290kde-base/kdepim kde-base/ktnef
248kde-base/kdepim kde-base/libksieve 295kde-base/kdepim kde-base/libksieve
249kde-base/kdepim kde-base/mailtransport 296kde-base/kdepim kde-base/mailtransport
250kde-base/kdepim kde-base/mimelib 297kde-base/kdepim kde-base/mimelib
251kde-base/kdepim kde-base/networkstatus 298kde-base/kdepim kde-base/networkstatus
252kde-base/kdesdk kde-base/cervisia 299kde-base/kdesdk kde-base/cervisia
253kde-base/kdesdk kde-base/kdeaccounts-plugin
254kde-base/kdesdk kde-base/kapptemplate 300kde-base/kdesdk kde-base/kapptemplate
255kde-base/kdesdk kde-base/kate 301kde-base/kdesdk kde-base/kate
256kde-base/kdesdk kde-base/kbabel 302kde-base/kdesdk kde-base/kbabel
257kde-base/kdesdk kde-base/kbugbuster 303kde-base/kdesdk kde-base/kbugbuster
258kde-base/kdesdk kde-base/kcachegrind 304kde-base/kdesdk kde-base/kcachegrind
305kde-base/kdesdk kde-base/kdeaccounts-plugin
259kde-base/kdesdk kde-base/kdesdk-kioslaves 306kde-base/kdesdk kde-base/kdesdk-kioslaves
260kde-base/kdesdk kde-base/kdesdk-misc 307kde-base/kdesdk kde-base/kdesdk-misc
261kde-base/kdesdk kde-base/kdesdk-scripts 308kde-base/kdesdk kde-base/kdesdk-scripts
309kde-base/kdesdk kde-base/kdesdk-strigi-analyzer
262kde-base/kdesdk kde-base/kmtrace 310kde-base/kdesdk kde-base/kmtrace
263kde-base/kdesdk kde-base/kompare 311kde-base/kdesdk kde-base/kompare
264kde-base/kdesdk kde-base/kspy 312kde-base/kdesdk kde-base/kspy
265kde-base/kdesdk kde-base/kstartperf 313kde-base/kdesdk kde-base/kstartperf
314kde-base/kdesdk kde-base/kuiviewer
315kde-base/kdesdk kde-base/lokalize
316kde-base/kdesdk kde-base/poxml
266kde-base/kdesdk kde-base/strigi-analyzer 317kde-base/kdesdk kde-base/strigi-analyzer
267kde-base/kdesdk kde-base/kuiviewer
268kde-base/kdesdk kde-base/poxml
269kde-base/kdesdk kde-base/umbrello 318kde-base/kdesdk kde-base/umbrello
270kde-base/kdetoys kde-base/amor 319kde-base/kdetoys kde-base/amor
271kde-base/kdetoys kde-base/kteatime 320kde-base/kdetoys kde-base/kteatime
272kde-base/kdetoys kde-base/ktux 321kde-base/kdetoys kde-base/ktux
273kde-base/kdetoys kde-base/kweather 322kde-base/kdetoys kde-base/kweather
277kde-base/kdeutils kde-base/kcharselect 326kde-base/kdeutils kde-base/kcharselect
278kde-base/kdeutils kde-base/kdessh 327kde-base/kdeutils kde-base/kdessh
279kde-base/kdeutils kde-base/kdf 328kde-base/kdeutils kde-base/kdf
280kde-base/kdeutils kde-base/kfloppy 329kde-base/kdeutils kde-base/kfloppy
281kde-base/kdeutils kde-base/kgpg 330kde-base/kdeutils kde-base/kgpg
282kde-base/kdeutils kde-base/kjots
283kde-base/kdeutils kde-base/kmilo 331kde-base/kdeutils kde-base/kmilo
284kde-base/kdeutils kde-base/kregexpeditor 332kde-base/kdeutils kde-base/kregexpeditor
285kde-base/kdeutils kde-base/kdessh
286kde-base/kdeutils kde-base/ktimer 333kde-base/kdeutils kde-base/ktimer
287kde-base/kdeutils kde-base/kwallet 334kde-base/kdeutils kde-base/kwallet
335kde-base/kdeutils kde-base/okteta
288kde-base/kdeutils kde-base/superkaramba 336kde-base/kdeutils kde-base/superkaramba
289kde-base/kdeutils kde-base/sweeper 337kde-base/kdeutils kde-base/sweeper
290kde-base/kdewebdev kde-base/kfilereplace 338kde-base/kdewebdev kde-base/kfilereplace
291kde-base/kdewebdev kde-base/kimagemapeditor 339kde-base/kdewebdev kde-base/kimagemapeditor
292kde-base/kdewebdev kde-base/klinkstatus 340kde-base/kdewebdev kde-base/klinkstatus
341kde-base/kdewebdev kde-base/kommander
293kde-base/kdewebdev kde-base/kxsldbg 342kde-base/kdewebdev kde-base/kxsldbg
294kde-base/kdewebdev kde-base/quanta 343kde-base/kdewebdev kde-base/quanta
295app-office/koffice app-office/karbon
296app-office/koffice app-office/kchart
297app-office/koffice app-office/kexi
298app-office/koffice app-office/kformula
299app-office/koffice app-office/kivio
300app-office/koffice app-office/koffice-data
301app-office/koffice app-office/koffice-libs
302app-office/koffice app-office/koshell
303app-office/koffice app-office/kplato
304app-office/koffice app-office/kpresenter
305app-office/koffice app-office/krita
306app-office/koffice app-office/kspread
307app-office/koffice app-office/kugar
308app-office/koffice app-office/kword
309' 344'
310 345
311# @FUNCTION: get-parent-package 346# @FUNCTION: get-parent-package
312# @USAGE: <split ebuild> 347# @USAGE: <split ebuild>
313# @DESCRIPTION: 348# @DESCRIPTION:
355# Note that kde4-base.eclass already does this. 390# Note that kde4-base.eclass already does this.
356buildsycoca() { 391buildsycoca() {
357 debug-print-function ${FUNCNAME} "$@" 392 debug-print-function ${FUNCNAME} "$@"
358 393
359 if [[ -x ${KDEDIR}/bin/kbuildsycoca4 && -z "${ROOT%%/}" ]]; then 394 if [[ -x ${KDEDIR}/bin/kbuildsycoca4 && -z "${ROOT%%/}" ]]; then
360 # First of all, make sure that the /usr/share/services directory exists 395 # Make sure tha cache file exists, or kbuildsycoca4 will fail
361 # and it has the right permissions 396 touch "${KDEDIR}/share/kde4/services/ksycoca4"
362 mkdir -p /usr/share/services
363 chown root:0 /usr/share/services
364 chmod 0755 /usr/share/services
365 397
366 # kbuildsycoca4 needs a running dbus session to work correctly. 398 # We have to unset DISPLAY and DBUS_SESSION_BUS_ADDRESS, the ones
367 # We have to start a new dbus session, because the DBUS_SESSION_BUS_ADDRESS in the environment 399 # in the user's environment (through su [without '-']) may cause
368 # could from from the user's environment (through su [without '-']), causing kbuildsycoca4 to hang. 400 # kbuildsycoca4 to hang.
369
370 echo "Starting dbus session for kbuildsycoca4"
371 local _i
372 for _i in $(dbus-launch); do
373 # We export both the ADDRESS _and_ the PID. We need the latter only to kill our session.
374 debug-print "Exporting: ${_i}"
375 export "${_i}";
376 done
377 debug-print "kbuildsycoca4 is using ${DBUS_SESSION_BUS_ADDRESS}"
378 401
379 ebegin "Running kbuildsycoca4 to build global database" 402 ebegin "Running kbuildsycoca4 to build global database"
380 # This is needed because we support multiple kde versions installed together. 403 # This is needed because we support multiple kde versions installed together.
381 XDG_DATA_DIRS="/usr/share:${KDEDIRS//:/\/share:}/share:/usr/local/share" \ 404 XDG_DATA_DIRS="/usr/share:${KDEDIRS//:/\/share:}/share:/usr/local/share" \
405 DISPLAY="" DBUS_SESSION_BUS_ADDRESS="" \
382 ${KDEDIR}/bin/kbuildsycoca4 --global --noincremental &> /dev/null 406 ${KDEDIR}/bin/kbuildsycoca4 --global --noincremental &> /dev/null
383 eend $? 407 eend $?
384
385 echo "Killing dbus session for kbuildsycoca4"
386 debug-print "ADDRESS ${DBUS_SESSION_BUS_ADDRESS}"
387 debug-print "PID: ${DBUS_SESSION_BUS_PID}"
388 kill ${DBUS_SESSION_BUS_PID}
389 eend $?
390 unset DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID
391
392 # For some reason this directory gets created with noone other than root
393 # being able to read it. Hence we chmod it.
394 chmod -R 0755 "${ROOT}"/usr/share/kde4
395 fi 408 fi
396} 409}
397 410
398# @FUNCTION: comment_all_add_subdirectory 411# @FUNCTION: comment_all_add_subdirectory
399# @USAGE: [list of directory names] 412# @USAGE: [list of directory names]
424# Enable translations based on LINGUAS settings and what translations are 437# Enable translations based on LINGUAS settings and what translations are
425# supported (see KDE_LINGUAS). By default translations are found in "${S}"/po 438# supported (see KDE_LINGUAS). By default translations are found in "${S}"/po
426# but this default can be overridden by defining KDE_LINGUAS_DIR. 439# but this default can be overridden by defining KDE_LINGUAS_DIR.
427enable_selected_linguas() { 440enable_selected_linguas() {
428 local lingua 441 local lingua
442
443 for lingua in ${KDE_LINGUAS}; do
444 if [ -e "${S}"/po/"${lingua}".po ]; then
445 mv "${S}"/po/"${lingua}".po "${S}"/po/"${lingua}".po.old
446 fi
447 done
429 comment_all_add_subdirectory "${KDE_LINGUAS_DIR:-${S}/po}" 448 comment_all_add_subdirectory "${KDE_LINGUAS_DIR:-${S}/po}"
430 for lingua in ${KDE_LINGUAS}; do 449 for lingua in ${LINGUAS}; do
431 if use linguas_${lingua}; then 450 if [ -d "${S}"/po/"${lingua}" ]; then
432 sed -e "/add_subdirectory([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ 451 sed -e "/add_subdirectory([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \
433 -e "/ADD_SUBDIRECTORY([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ 452 -e "/ADD_SUBDIRECTORY([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \
434 -i "${KDE_LINGUAS_DIR:-${S}/po}"/CMakeLists.txt || die "Sed to uncomment linguas_${lingua} failed." 453 -i "${KDE_LINGUAS_DIR:-${S}/po}"/CMakeLists.txt || die "Sed to uncomment linguas_${lingua} failed."
454 fi
455 if [ -e "${S}"/po/"${lingua}".po.old ]; then
456 mv "${S}"/po/"${lingua}".po.old "${S}"/po/"${lingua}".po
435 fi 457 fi
436 done 458 done
437} 459}
438 460
439# @ECLASS-VARIABLE: QT4_BUILT_WITH_USE_CHECK 461# @ECLASS-VARIABLE: QT4_BUILT_WITH_USE_CHECK
502# If any of the required USE flags are missing, an eerror will be printed for 524# If any of the required USE flags are missing, an eerror will be printed for
503# each package with missing USE flags. 525# each package with missing USE flags.
504kde4-functions_check_use() { 526kde4-functions_check_use() {
505 # I like to keep flags sorted 527 # I like to keep flags sorted
506 QT4_BUILT_WITH_USE_CHECK=$(echo "${QT4_BUILT_WITH_USE_CHECK}" | \ 528 QT4_BUILT_WITH_USE_CHECK=$(echo "${QT4_BUILT_WITH_USE_CHECK}" | \
507 tr '[:space:]' '\n' | sort | xargs) 529 tr '[:space:]' '\n' | sort | uniq | xargs)
508 530
509 local line missing 531 local line missing
510 if [[ -n ${KDE4_BUILT_WITH_USE_CHECK[@]} && $(declare -p KDE4_BUILT_WITH_USE_CHECK) = 'declare -a '* ]]; then 532 if [[ -n ${KDE4_BUILT_WITH_USE_CHECK[@]} && $(declare -p KDE4_BUILT_WITH_USE_CHECK) = 'declare -a '* ]]; then
511 KDE4_BUILT_WITH_USE_CHECK=("x11-libs/qt:4 ${QT4_BUILT_WITH_USE_CHECK}" 533 KDE4_BUILT_WITH_USE_CHECK=("x11-libs/qt:4 ${QT4_BUILT_WITH_USE_CHECK}"
512 "${KDE4_BUILT_WITH_USE_CHECK[@]}") 534 "${KDE4_BUILT_WITH_USE_CHECK[@]}")

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20