/[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.121 Revision 1.122
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.121 2012/08/19 11:12:35 johu Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.122 2013/02/02 16:58:00 dilfridge 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.X ebuilds 8# @BLURB: This eclass provides functions for kde 4.X ebuilds
168 HOMEPAGE="http://www.kde.org/" 168 HOMEPAGE="http://www.kde.org/"
169 LICENSE="GPL-2" 169 LICENSE="GPL-2"
170 if [[ ${KDE_BUILD_TYPE} = live && -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then 170 if [[ ${KDE_BUILD_TYPE} = live && -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
171 # Disable tests for live ebuilds by default 171 # Disable tests for live ebuilds by default
172 RESTRICT+=" test" 172 RESTRICT+=" test"
173 fi
174
175 # Only add the kdeprefix USE flag for older versions, to help
176 # non-portage package managers handle the upgrade
177 if [[ ${PV} < 4.6.4 && ( ( ${KMNAME} != kdepim && ${PN} != kdepim-runtime ) || ${PV} < 4.6 ) ]]; then
178 IUSE+=" kdeprefix"
179 fi 173 fi
180 174
181 # This code is to prevent portage from searching GENTOO_MIRRORS for 175 # This code is to prevent portage from searching GENTOO_MIRRORS for
182 # packages that will never be mirrored. (As they only will ever be in 176 # packages that will never be mirrored. (As they only will ever be in
183 # the overlay). 177 # the overlay).
591 if has handbook ${IUSE} || has "+handbook" ${IUSE} && [ "${KDE_HANDBOOK}" != optional ] ; then 585 if has handbook ${IUSE} || has "+handbook" ${IUSE} && [ "${KDE_HANDBOOK}" != optional ] ; then
592 eqawarn "Handbook support is enabled via KDE_HANDBOOK=optional in the ebuild." 586 eqawarn "Handbook support is enabled via KDE_HANDBOOK=optional in the ebuild."
593 eqawarn "Please do not just set IUSE=handbook, as this leads to dependency errors." 587 eqawarn "Please do not just set IUSE=handbook, as this leads to dependency errors."
594 fi 588 fi
595 589
596 if use_if_iuse kdeprefix; then
597 eerror "Sorry, kdeprefix support has been removed."
598 eerror "Please remove kdeprefix from your USE variable."
599 die "kdeprefix support has been removed"
600 fi
601
602 if [[ ${CATEGORY}/${PN} != kde-base/kdelibs && ${CATEGORY}/${PN} != kde-base/kde-env ]] && \
603 { [[ ${KDE_REQUIRED} == always ]] || { [[ ${KDE_REQUIRED} == optional ]] && use kde; }; } && \
604 has_version kde-base/kdelibs[kdeprefix]; then
605 eerror "Sorry, kdeprefix support has been removed."
606 eerror "Please rebuild kdelibs without kdeprefix support."
607 die "kdeprefix support has been removed"
608 fi
609
610 # Don't set KDEHOME during compilation, it will cause access violations 590 # Don't set KDEHOME during compilation, it will cause access violations
611 unset KDEHOME 591 unset KDEHOME
612 592
613 # Check if gcc compiler is fresh enough. 593 # Check if gcc compiler is fresh enough.
614 # In theory should be in pkg_pretend but we check it only for kdelibs there 594 # In theory should be in pkg_pretend but we check it only for kdelibs there

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122

  ViewVC Help
Powered by ViewVC 1.1.20