| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 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.94 2011/06/06 17:51:26 abcd Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.95 2011/06/06 18:42:55 abcd 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 |
| … | |
… | |
| 618 | # Do the basic kdeprefix KDEDIR settings and determine with which kde should |
618 | # Do the basic kdeprefix KDEDIR settings and determine with which kde should |
| 619 | # optional applications link |
619 | # optional applications link |
| 620 | kde4-base_pkg_setup() { |
620 | kde4-base_pkg_setup() { |
| 621 | debug-print-function ${FUNCNAME} "$@" |
621 | debug-print-function ${FUNCNAME} "$@" |
| 622 | |
622 | |
|
|
623 | if has kdeprefix ${IUSE//+} && use kdeprefix; then |
|
|
624 | eerror "Sorry, kdeprefix support has been removed." |
|
|
625 | eerror "Please remove kdeprefix from your USE variable." |
|
|
626 | die "kdeprefix support has been removed" |
|
|
627 | fi |
|
|
628 | |
|
|
629 | if [[ ${CATEGORY}/${PN} != kde-base/kdelibs && ${CATEGORY}/${PN} != kde-base/kde-env ]] && \ |
|
|
630 | { [[ ${KDE_REQUIRED} == always ]] || { [[ ${KDE_REQUIRED} == optional ]] && use kde; }; } && \ |
|
|
631 | has_version kde-base/kdelibs[kdeprefix]; then |
|
|
632 | eerror "Sorry, kdeprefix support has been removed." |
|
|
633 | eerror "Please rebuild kdelibs without kdeprefix support." |
|
|
634 | die "kdeprefix support has been removed" |
|
|
635 | fi |
|
|
636 | |
| 623 | # QA ebuilds |
637 | # QA ebuilds |
| 624 | [[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})." |
638 | [[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})." |
| 625 | |
639 | |
| 626 | # Don't set KDEHOME during compilation, it will cause access violations |
640 | # Don't set KDEHOME during compilation, it will cause access violations |
| 627 | unset KDEHOME |
641 | unset KDEHOME |