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

Diff of /eclass/kde4-base.eclass

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

Revision 1.12 Revision 1.13
1# Copyright 2007-2008 Gentoo Foundation 1# Copyright 2007-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-base.eclass,v 1.12 2008/05/17 14:09:03 zlin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.13 2008/10/02 06:49:02 jmbsvicetto Exp $
4 4
5# @ECLASS: kde4-base.eclass 5# @ECLASS: kde4-base.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: This eclass provides functions for kde 4.0 ebuilds 8# @BLURB: This eclass provides functions for kde 4.X ebuilds
9# @DESCRIPTION: 9# @DESCRIPTION:
10# The kde4-base.eclass provides support for building KDE4 monolithic ebuilds 10# The kde4-base.eclass provides support for building KDE4 monolithic ebuilds
11# and KDE4 applications. 11# and KDE4 applications.
12# 12#
13# NOTE: This eclass uses the SLOT dependencies from EAPI="1" or compatible, 13# NOTE: This eclass uses the SLOT dependencies from EAPI="1" or compatible,
14# hence you must define EAPI="1" in the ebuild, before inheriting any eclasses. 14# and use deps from EAPI="2", hence you must define EAPI="2" in the ebuild,
15# before inheriting any eclasses.
15 16
16inherit base eutils multilib cmake-utils kde4-functions 17inherit base cmake-utils eutils kde4-functions multilib
17 18
19case "${EAPI}" in
20 2)
21 EXPORT_FUNCTIONS pkg_setup src_unpack src_configure src_compile src_test src_install pkg_postinst pkg_postrm
22 ;;
23 *)
18EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_postinst pkg_postrm 24 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_postinst pkg_postrm
25 ;;
26esac
19 27
28# Set the qt dependencies
20kde4-base_set_qt_dependencies() { 29kde4-base_set_qt_dependencies() {
21 local qt qtcore qtgui qt3support qtdepend qtopengldepend 30 local qt qtcore qtgui qt3support qtdepend qtopengldepend
22 31
23 # use dependencies 32 # use dependencies
24 case "${EAPI}" in 33 case "${EAPI}" in
25 kdebuild-1) 34 2 | 2_pre3 | 2_pre2 | 2_pre1)
26 qt="[accessibility][dbus][gif][jpeg][png][qt3support][ssl][zlib]" 35
27 qtcore="[qt3support][ssl]" 36 qt="["
28 qtgui="[accessibility][dbus]"
29 qt3support="[accessibility]"
30 case "${OPENGL_REQUIRED}" in 37 case "${OPENGL_REQUIRED}" in
31 always) 38 always)
32 qt="${qt}[opengl]" 39 qt="${qt}opengl,"
33 ;; 40 ;;
34 optional) 41 optional)
35 qt="${qt}[opengl?]" 42 qt="${qt}opengl?,"
36 ;; 43 ;;
37 esac 44 esac
45 qt="${qt}accessibility,dbus,gif,jpeg,png,qt3support,ssl,zlib]"
46 qtcore="[qt3support,ssl]"
47 qtgui="[accessibility,dbus]"
48 qt3support="[accessibility]"
38 ;; 49 ;;
39 esac 50 esac
40 51
41 # split qt 52 # split qt
42 qtdepend=" 53 qtdepend="
48 x11-libs/qt-test:4" 59 x11-libs/qt-test:4"
49 qtopengldepend="x11-libs/qt-opengl:4" 60 qtopengldepend="x11-libs/qt-opengl:4"
50 61
51 # allow monolithic qt for PV < 4.1 62 # allow monolithic qt for PV < 4.1
52 case "${PV}" in 63 case "${PV}" in
53 scm|9999.4|4.1*) : ;; 64 scm|9999*|4.1*|4.0.9*|4.0.8*) : ;;
54 *) 65 *)
55 qtdepend="|| ( ( ${qtdepend} ) >=x11-libs/qt-4.3.3:4${qt} )" 66 qtdepend="|| ( ( ${qtdepend} ) >=x11-libs/qt-4.3.3:4${qt} )"
56 qtopengldepend="|| ( ${qtopengldepend} >=x11-libs/qt-4.3.3:4 )" 67 qtopengldepend="|| ( ${qtopengldepend} >=x11-libs/qt-4.3.3:4 )"
57 ;; 68 ;;
58 esac 69 esac
75 86
76 COMMONDEPEND="${COMMONDEPEND} ${qtdepend}" 87 COMMONDEPEND="${COMMONDEPEND} ${qtdepend}"
77} 88}
78kde4-base_set_qt_dependencies 89kde4-base_set_qt_dependencies
79 90
91# Set the cmake dependencies
92case "${PV}" in
93 9999*)
94 CMAKEDEPEND=">=dev-util/cmake-2.6"
95 ;;
96 *)
97 CMAKEDEPEND=">=dev-util/cmake-2.4.7-r1"
98 ;;
99esac
100
101# Set the common dependencies
80DEPEND="${DEPEND} ${COMMONDEPEND} 102DEPEND="${DEPEND} ${COMMONDEPEND} ${CMAKEDEPEND}
81 >=dev-util/cmake-2.4.7-r1
82 dev-util/pkgconfig 103 dev-util/pkgconfig
83 x11-libs/libXt 104 x11-libs/libXt
84 x11-proto/xf86vidmodeproto" 105 x11-proto/xf86vidmodeproto"
85RDEPEND="${RDEPEND} ${COMMONDEPEND}" 106RDEPEND="${RDEPEND} ${COMMONDEPEND}"
107
108# Add the kdeprefix use flag
109case "${EAPI}" in
110 2 | 2_pre3 | 2_pre2 | 2_pre1)
111 IUSE="${IUSE} kdeprefix"
112 ;;
113esac
86 114
87# @ECLASS-VARIABLE: OPENGL_REQUIRED 115# @ECLASS-VARIABLE: OPENGL_REQUIRED
88# @DESCRIPTION: 116# @DESCRIPTION:
89# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'. 117# Is qt-opengl required? Possible values are 'always', 'optional' and 'never'.
90# This variable must be set before inheriting any eclasses. Defaults to 'never'. 118# This variable must be set before inheriting any eclasses. Defaults to 'never'.
142case ${NEED_KDE} in 170case ${NEED_KDE} in
143 latest) 171 latest)
144 # Should only be used by 'kde-base'-ebuilds 172 # Should only be used by 'kde-base'-ebuilds
145 if [[ "${KDEBASE}" == "kde-base" ]]; then 173 if [[ "${KDEBASE}" == "kde-base" ]]; then
146 case ${PV} in 174 case ${PV} in
147 3.9*) _kdedir="3.9" ;; 175 4.1*| 4.0.9* | 4.0.8*)
176 _kdedir="4.1"
177 _pv="-${PV}:4.1" ;;
178 4.0*)
148 4*) _kdedir="4.0" ;; 179 _kdedir="4.0"
180 _pv="-${PV}:kde-4" ;;
181 3.9*)
182 _kdedir="3.9"
183 _pv="-${PV}:kde-4" ;;
184 *)
149 *) die "NEED_KDE=latest not supported for PV=${PV}" ;; 185 die "NEED_KDE=latest not supported for PV=${PV}" ;;
150 esac 186 esac
151 _operator=">=" 187 _operator=">="
152 _pv="-${PV}:kde-4"
153 else 188 else
189 case ${PV} in
190 4.1 | 4.0.9* | 4.0.8*) _kdedir="4.1" ;;
154 _kdedir="4.0" 191 4.0*) _kdedir="4.0" ;;
155 _pv=":kde-4" 192 3.9*) _kdedir="3.9" ;;
193 *) die "NEED_KDE=latest not supported for PV=${PV}" ;;
194 esac
156 fi 195 fi
157 ;; 196 ;;
158 scm|svn|9999*|:kde-svn) 197
198 # NEED_KDE=":${SLOT}"
199 :kde-svn)
159 _kdedir="svn" 200 _kdedir="svn"
160 _pv=":kde-svn" 201 _pv="-${NEED_KDE}"
161 export NEED_KDE="svn" 202 export NEED_KDE="svn"
162 ;; 203 ;;
204 :4.1)
205 _kdedir="4.1"
206 _pv="${NEED_KDE}"
207 ;;
208 :kde-4)
209 _kdedir="4.0"
210 _pv="${NEED_KDE}"
211 ;;
212
213 # NEED_KDE="${PV}:${SLOT}"
163 *:kde-svn) 214 *:kde-svn)
164 _kdedir="svn" 215 _kdedir="svn"
165 _operator=">=" 216 _operator=">="
166 _pv="-${NEED_KDE}" 217 _pv="-${NEED_KDE}"
167 export NEED_KDE="svn" 218 export NEED_KDE="svn"
168 ;; 219 ;;
169 # The ebuild handles dependencies, KDEDIR, SLOT. 220 *:4.1)
170 none)
171 :
172 ;;
173 # NEED_KDE=":${SLOT}"
174 :kde-4)
175 _kdedir="4.0" 221 _kdedir="4.1"
222 _operator=">="
176 _pv="${NEED_KDE}" 223 _pv="-${NEED_KDE}"
177 ;; 224 ;;
178 # NEED_KDE="${PV}:${SLOT}"
179 *:kde-4) 225 *:kde-4)
180 _kdedir="4.0" 226 _kdedir="4.0"
181 _operator=">=" 227 _operator=">="
182 _pv="-${NEED_KDE}" 228 _pv="-${NEED_KDE}"
183 ;; 229 ;;
230
231 # NEED_KDE="${PV}"
232 scm|svn|9999*)
233 _kdedir="svn"
234 _operator=">="
235 _pv="-${NEED_KDE}:kde-svn"
236 export NEED_KDE="svn"
237 ;;
238 4.1 | 4.0.9* | 4.0.8*)
239 _kdedir="4.1"
240 _operator=">="
241 _pv="-${NEED_KDE}:4.1"
242 ;;
243 4.0* | 4)
244 _kdedir="4.0"
245 _operator=">="
246 _pv="-${NEED_KDE}:kde-4"
247 ;;
184 3.9*) 248 3.9*)
185 _kdedir="3.9" 249 _kdedir="3.9"
186 _operator=">=" 250 _operator=">="
187 _pv="-${NEED_KDE}:kde-4" 251 _pv="-${NEED_KDE}:kde-4"
188 ;; 252 ;;
253
254 # The ebuild handles dependencies, KDEDIR, SLOT.
255 none)
256 :
257 ;;
258
189 4*) 259 *)
190 _kdedir="4.0"
191 _operator=">="
192 _pv="-${NEED_KDE}:kde-4"
193 ;;
194 *) die "NEED_KDE=${NEED_KDE} currently not supported." 260 die "NEED_KDE=${NEED_KDE} currently not supported."
195 ;; 261 ;;
196esac 262esac
197 263
198if [[ ${NEED_KDE} != none ]]; then 264if [[ ${NEED_KDE} != none ]]; then
199 KDEDIR="/usr/kde/${_kdedir}"
200 KDEDIRS="/usr:/usr/local:${KDEDIR}"
201 265
266 #Set the SLOT
202 if [[ -n ${KDEBASE} ]]; then 267 if [[ -n ${KDEBASE} ]]; then
203 if [[ ${NEED_KDE} = svn ]]; then 268 if [[ ${NEED_KDE} = svn ]]; then
204 SLOT="kde-svn" 269 SLOT="kde-svn"
205 else 270 else
271 case ${PV} in
272 4.1* | 4.0.9* | 4.0.8*) SLOT="4.1" ;;
206 SLOT="kde-4" 273 *) SLOT="kde-4" ;;
207 fi 274 esac
208 fi 275 fi
276 fi
277
278 # Block install of other SLOTS unless kdeprefix
279 case "${EAPI}" in
280 2 | 2_pre3 | 2_pre2 | 2_pre1)
281 for KDE_SLOT in ${KDE_SLOTS[@]}; do
282 # block non kdeprefix ${PN} on other slots
283 if [[ ${SLOT} != ${KDE_SLOT} ]]; then
284 DEPEND="${DEPEND}
285 !kdeprefix? ( !kde-base/${PN}:${KDE_SLOT}[-kdeprefix] )"
286 RDEPEND="${RDEPEND}
287 !kdeprefix? ( !kde-base/${PN}:${KDE_SLOT}[-kdeprefix] )"
288 fi
289 done
290 ;;
291 esac
209 292
210 # We only need to add the dependencies if ${PN} is not "kdelibs" or "kdepimlibs" 293 # We only need to add the dependencies if ${PN} is not "kdelibs" or "kdepimlibs"
211 if [[ ${PN} != "kdelibs" ]]; then 294 if [[ ${PN} != "kdelibs" ]]; then
212 DEPEND="${DEPEND} 295 case "${EAPI}" in
296 2 | 2_pre3 | 2_pre2 | 2_pre1)
297 DEPEND="${DEPEND} ${_operator}kde-base/kdelibs${_pv}[kdeprefix=]"
298 RDEPEND="${RDEPEND} ${_operator}kde-base/kdelibs${_pv}[kdeprefix=]"
299 ;;
300 *)
213 ${_operator}kde-base/kdelibs${_pv}" 301 DEPEND="${DEPEND} ${_operator}kde-base/kdelibs${_pv}"
214 RDEPEND="${RDEPEND}
215 ${_operator}kde-base/kdelibs${_pv}" 302 RDEPEND="${RDEPEND} ${_operator}kde-base/kdelibs${_pv}"
303 ;;
304 esac
216 if [[ ${PN} != "kdepimlibs" ]]; then 305 if [[ ${PN} != "kdepimlibs" ]]; then
217 DEPEND="${DEPEND} 306 case "${EAPI}" in
307 2 | 2_pre3 | 2_pre2 | 2_pre1)
308 DEPEND="${DEPEND} ${_operator}kde-base/kdepimlibs${_pv}[kdeprefix=]"
309 RDEPEND="${RDEPEND} ${_operator}kde-base/kdepimlibs${_pv}[kdeprefix=]"
310 ;;
311 *)
218 ${_operator}kde-base/kdepimlibs${_pv}" 312 DEPEND="${DEPEND} ${_operator}kde-base/kdepimlibs${_pv}"
219 RDEPEND="${RDEPEND}
220 ${_operator}kde-base/kdepimlibs${_pv}" 313 RDEPEND="${RDEPEND} ${_operator}kde-base/kdepimlibs${_pv}"
221 fi 314 esac
222 fi 315 fi
316 fi
223 317
224 unset _operator _pv _kdedir 318 unset _operator _pv
225fi 319fi
226 320
227# Fetch section - If the ebuild's category is not 'kde-base' and if it is not a 321# Fetch section - If the ebuild's category is not 'kde-base' and if it is not a
228# koffice ebuild, the URI should be set in the ebuild itself 322# koffice ebuild, the URI should be set in the ebuild itself
229if [[ -n ${KDEBASE} ]]; then 323if [[ -n ${KDEBASE} ]]; then
235 _kmname_pv="${_kmname}-${PV}" 329 _kmname_pv="${_kmname}-${PV}"
236 if [[ ${NEED_KDE} != "svn" ]]; then 330 if [[ ${NEED_KDE} != "svn" ]]; then
237 case ${KDEBASE} in 331 case ${KDEBASE} in
238 kde-base) 332 kde-base)
239 case ${PV} in 333 case ${PV} in
334 4.0.9* | 4.0.8*)
335 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
240 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2";; 336 *) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2";;
241 esac 337 esac
242 ;; 338 ;;
243 koffice) 339 koffice)
244 SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" 340 SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2"
245 ;; 341 ;;
247 fi 343 fi
248 unset _kmname _kmname_pv 344 unset _kmname _kmname_pv
249fi 345fi
250 346
251debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}" 347debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}"
252debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND ${DEPEND} - before blockers"
253
254# Monolithic ebuilds should add blockers for split ebuilds in the same slot.
255# If KMNAME is not set then this is not a split package
256if [[ -n ${KDEBASE} && -z ${KMNAME} ]]; then
257 for _x in $(get-child-packages ${CATEGORY}/${PN}); do
258 DEPEND="${DEPEND} !${_x}:${SLOT}"
259 RDEPEND="${RDEPEND} !${_x}:${SLOT}"
260 done
261 unset _x
262fi
263
264debug-print "${BASH_SOURCE} ${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND ${DEPEND} - after blockers"
265 348
266# @ECLASS-VARIABLE: PREFIX 349# @ECLASS-VARIABLE: PREFIX
267# @DESCRIPTION: 350# @DESCRIPTION:
268# Set the installation PREFIX. All kde-base ebuilds go into the KDE4 installation directory. 351# Set the installation PREFIX. All kde-base ebuilds go into the KDE4 installation directory.
269# Applications installed by the other ebuilds go into /usr/ by default, this value 352# Applications installed by the other ebuilds go into /usr/ by default, this value
270# can be superseded by defining PREFIX before inheriting kde4-base. 353# can be superseded by defining PREFIX before inheriting kde4-base.
271if [[ -n ${KDEBASE} ]]; then 354# This value is set on pkg_setup
272 PREFIX=${KDEDIR} 355PREFIX=""
273else
274 # if PREFIX is not defined we set it to the default value of /usr
275 PREFIX="${PREFIX:-/usr}"
276fi
277 356
278debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SLOT ${SLOT} - KDEDIR ${KDEDIR} - KDEDIRS ${KDEDIRS}- PREFIX ${PREFIX} - NEED_KDE ${NEED_KDE}" 357debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SLOT ${SLOT} - NEED_KDE ${NEED_KDE}"
279 358
280# @FUNCTION: kde4-base_pkg_setup 359# @FUNCTION: kde4-base_pkg_setup
281# @DESCRIPTION: 360# @DESCRIPTION:
282# Adds flags needed by all of KDE 4 to $QT4_BUILT_WITH_USE_CHECK. Uses 361# Adds flags needed by all of KDE 4 to $QT4_BUILT_WITH_USE_CHECK. Uses
283# kde4-functions_check_use from kde4-functions.eclass to print appropriate 362# kde4-functions_check_use from kde4-functions.eclass to print appropriate
284# errors and die if any required flags listed in $QT4_BUILT_WITH_USE_CHECK or 363# errors and die if any required flags listed in $QT4_BUILT_WITH_USE_CHECK or
285# $KDE4_BUILT_WITH_USE_CHECK are missing. 364# $KDE4_BUILT_WITH_USE_CHECK are missing.
286kde4-base_pkg_setup() { 365kde4-base_pkg_setup() {
287 debug-print-function $FUNCNAME "$@" 366 debug-print-function $FUNCNAME "$@"
288 367
368 # Don't set KDEHOME during compile, it will cause access violations
369 unset KDEHOME
370
371 if [[ ${NEED_KDE} != none ]]; then
372
373 # Set PREFIX
374 case "${EAPI}" in
375 2 | 2_pre3 | 2_pre2 | 2_pre1)
376 if use kdeprefix; then
377 KDEDIR="/usr/kde/${_kdedir}"
378 KDEDIRS="/usr:/usr/local:${KDEDIR}"
379 else
380 KDEDIR="/usr"
381 KDEDIRS="/usr:/usr/local"
382 fi
383 ;;
384 *)
385 KDEDIR="/usr"
386 KDEDIRS="/usr:/usr/local"
387 ;;
388 esac
389 fi
390
391 if [[ -n ${KDEBASE} ]]; then
392 PREFIX=${KDEDIR}
393 else
394 # if PREFIX is not defined we set it to the default value of /usr
395 PREFIX="${PREFIX:-/usr}"
396 fi
397
398 unset _kdedir
399
289 case "${EAPI}" in 400 case "${EAPI}" in
290 kdebuild-1) 401 2 | 2_pre3 | 2_pre2 | 2_pre1)
291 [[ -n ${QT4_BUILT_WITH_USE_CHECK} || -n ${KDE4_BUILT_WITH_USE_CHECK[@]} ]] && \ 402 [[ -n ${QT4_BUILT_WITH_USE_CHECK} || -n ${KDE4_BUILT_WITH_USE_CHECK[@]} ]] && \
292 die "built_with_use illegal in this EAPI!" 403 die "built_with_use illegal in this EAPI!"
293 ;; 404 ;;
294 *) 405 *)
295 # Make KDE4_BUILT_WITH_USE_CHECK an array if it isn't already 406 # Make KDE4_BUILT_WITH_USE_CHECK an array if it isn't already
352 _packages="${_packages//${CATEGORY}\//} ${PN}" 463 _packages="${_packages//${CATEGORY}\//} ${PN}"
353 else 464 else
354 _packages="${PN}" 465 _packages="${PN}"
355 fi 466 fi
356 if [[ $(declare -p PATCHES) != 'declare -a '* ]]; then 467 if [[ $(declare -p PATCHES) != 'declare -a '* ]]; then
357 PATCHES=(${PATCHES}) 468 die "PATCHES needs to be an array!"
358 fi 469 fi
359 for _p in ${_packages}; do 470 for _p in ${_packages}; do
360 for _f in "${_patchdir}"/${_p}-${PV}-*{diff,patch}; do 471 for _f in "${_patchdir}"/${_p}-${PV}-*{diff,patch}; do
361 [[ -e ${_f} ]] && PATCHES+=("${_f}") 472 [[ -e ${_f} ]] && PATCHES+=("${_f}")
362 done 473 done
416# @FUNCTION: kde4-base_src_compile 527# @FUNCTION: kde4-base_src_compile
417# @DESCRIPTION: 528# @DESCRIPTION:
418# General function for compiling KDE4 applications. 529# General function for compiling KDE4 applications.
419kde4-base_src_compile() { 530kde4-base_src_compile() {
420 debug-print-function ${FUNCNAME} "$@" 531 debug-print-function ${FUNCNAME} "$@"
421 532 case "${EAPI}" in
533 2)
534 ;;
535 *)
422 kde4-base_src_configure 536 kde4-base_src_configure
423 kde4-base_src_make 537 ;;
538 esac
539 if [[ -d ${WORKDIR}/${PN}_build ]]; then
540 pushd "${WORKDIR}"/${PN}_build > /dev/null
541 fi
542 [ -e [Mm]akefile ] && kde4-base_src_make
424} 543}
425 544
426# @FUNCTION: kde4-base_src_configure 545# @FUNCTION: kde4-base_src_configure
427# @DESCRIPTION: 546# @DESCRIPTION:
428# Function for configuring the build of KDE4 applications. 547# Function for configuring the build of KDE4 applications.
451 mycmakeargs="${mycmakeargs} -DKDE4_USE_ALWAYS_FULL_RPATH=ON" 570 mycmakeargs="${mycmakeargs} -DKDE4_USE_ALWAYS_FULL_RPATH=ON"
452 571
453 # Here we set the install prefix 572 # Here we set the install prefix
454 mycmakeargs="${mycmakeargs} -DCMAKE_INSTALL_PREFIX=${PREFIX}" 573 mycmakeargs="${mycmakeargs} -DCMAKE_INSTALL_PREFIX=${PREFIX}"
455 574
575 # If prefix is /usr, sysconf needs to be /etc, not /usr/etc
576 [[ "${PREFIX}" == "/usr" ]] && mycmakeargs="${mycmakeargs} -DSYSCONF_INSTALL_DIR=/etc"
577
456 # Set environment 578 # Set environment
457 QTEST_COLORED=1 579 QTEST_COLORED=1
458 QT_PLUGIN_PATH=${KDEDIR}/$(get_libdir)/kde4/plugins/ 580 QT_PLUGIN_PATH=${KDEDIR}/$(get_libdir)/kde4/plugins/
459 581
460 cmake-utils_src_configureout 582 # hardcode path to *.cmake KDE files
583 PKG_CONFIG_PATH="${PKG_CONFIG_PATH:+${PKG_CONFIG_PATH}:}${KDEDIR}/$(get_libdir)/pkgconfig"
584
585 [ -e CMakeLists.txt ] && cmake-utils_src_configureout
461} 586}
462 587
463# @FUNCTION: kde4-base_src_make 588# @FUNCTION: kde4-base_src_make
464# @DESCRIPTION: 589# @DESCRIPTION:
465# Function for building KDE4 applications. 590# Function for building KDE4 applications.
488# Function for installing KDE4 applications. 613# Function for installing KDE4 applications.
489kde4-base_src_install() { 614kde4-base_src_install() {
490 debug-print-function ${FUNCNAME} "$@" 615 debug-print-function ${FUNCNAME} "$@"
491 616
492 kde4-base_src_make_doc 617 kde4-base_src_make_doc
493 cmake-utils_src_install 618 if [[ -d ${WORKDIR}/${PN}_build ]]; then
619 pushd "${WORKDIR}"/${PN}_build > /dev/null
620 fi
621 [ -e [Mm]akefile ] && cmake-utils_src_install
494} 622}
495 623
496# @FUNCTION: kde4-base_src_make_doc 624# @FUNCTION: kde4-base_src_make_doc
497# @DESCRIPTION: 625# @DESCRIPTION:
498# Function for installing the documentation of KDE4 applications. 626# Function for installing the documentation of KDE4 applications.

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20