/[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.99 Revision 1.100
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.99 2011/06/15 00:11:05 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.100 2011/06/15 22:03:13 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
50KDE_MINIMAL="${KDE_MINIMAL:-4.4}" 50KDE_MINIMAL="${KDE_MINIMAL:-4.4}"
51 51
52# Set slot for KDEBASE known packages 52# Set slot for KDEBASE known packages
53case ${KDEBASE} in 53case ${KDEBASE} in
54 kde-base) 54 kde-base)
55 SLOT=$(get_kde_version) 55 SLOT=4
56 [[ -z ${SLOT} ]] && die "Unsupported PV ${PV}"
57 KDE_MINIMAL="${PV}" 56 KDE_MINIMAL="${PV}"
58 ;; 57 ;;
59 koffice) 58 koffice)
60 SLOT="2" 59 SLOT="2"
61 ;; 60 ;;
177 case ${PV} in 176 case ${PV} in
178 *9999* | 4.?.[6-9]?) 177 *9999* | 4.?.[6-9]?)
179 RESTRICT+=" mirror" 178 RESTRICT+=" mirror"
180 ;; 179 ;;
181 esac 180 esac
182 # Block installation of other SLOTS unless kdeprefix
183 RDEPEND+=" $(block_other_slots)"
184 ;; 181 ;;
185 koffice) 182 koffice)
186 HOMEPAGE="http://www.koffice.org/" 183 HOMEPAGE="http://www.koffice.org/"
187 LICENSE="GPL-2" 184 LICENSE="GPL-2"
188 ;; 185 ;;
606debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}" 603debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}"
607 604
608# @ECLASS-VARIABLE: PREFIX 605# @ECLASS-VARIABLE: PREFIX
609# @DESCRIPTION: 606# @DESCRIPTION:
610# Set the installation PREFIX for non kde-base applications. It defaults to /usr. 607# Set the installation PREFIX for non kde-base applications. It defaults to /usr.
611# kde-base packages go into KDE4 installation directory (KDEDIR) by default. 608# kde-base packages go into KDE4 installation directory (/usr).
612# No matter the PREFIX, package will be built against KDE installed in KDEDIR. 609# No matter the PREFIX, package will be built against KDE installed in /usr.
613 610
614# @FUNCTION: kde4-base_pkg_setup 611# @FUNCTION: kde4-base_pkg_setup
615# @DESCRIPTION: 612# @DESCRIPTION:
616# Do the basic KDEDIR settings and determine with which kde should 613# Do some basic settings
617# optional applications link
618kde4-base_pkg_setup() { 614kde4-base_pkg_setup() {
619 debug-print-function ${FUNCNAME} "$@" 615 debug-print-function ${FUNCNAME} "$@"
620 616
621 if has kdeprefix ${IUSE//+} && use kdeprefix; then 617 if has kdeprefix ${IUSE//+} && use kdeprefix; then
622 eerror "Sorry, kdeprefix support has been removed." 618 eerror "Sorry, kdeprefix support has been removed."
645 641
646 KDEDIR=/usr 642 KDEDIR=/usr
647 : ${PREFIX:=/usr} 643 : ${PREFIX:=/usr}
648 EKDEDIR=${EPREFIX}/usr 644 EKDEDIR=${EPREFIX}/usr
649 645
650 # Point pkg-config path to KDE *.pc files
651 export PKG_CONFIG_PATH="${EKDEDIR}/$(get_libdir)/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}"
652 # Point to correct QT plugins path 646 # Point to correct QT plugins path
653 QT_PLUGIN_PATH="${EKDEDIR}/$(get_libdir)/kde4/plugins/" 647 QT_PLUGIN_PATH="${EPREFIX}/usr/$(get_libdir)/kde4/plugins/"
654 648
655 # Fix XDG collision with sandbox 649 # Fix XDG collision with sandbox
656 export XDG_CONFIG_HOME="${T}" 650 export XDG_CONFIG_HOME="${T}"
657} 651}
658 652
791 tc-is-cross-compiler || cmakeargs+=(-DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX}") 785 tc-is-cross-compiler || cmakeargs+=(-DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX}")
792 786
793 # Use colors 787 # Use colors
794 QTEST_COLORED=1 788 QTEST_COLORED=1
795 789
796 # Shadow existing /usr installations 790 # Shadow existing installations
797 unset KDEDIRS 791 unset KDEDIRS
798 792
799 #qmake -query QT_INSTALL_LIBS unavailable when cross-compiling 793 #qmake -query QT_INSTALL_LIBS unavailable when cross-compiling
800 tc-is-cross-compiler && cmakeargs+=(-DQT_LIBRARY_DIR=${ROOT}/usr/$(get_libdir)/qt4) 794 tc-is-cross-compiler && cmakeargs+=(-DQT_LIBRARY_DIR=${ROOT}/usr/$(get_libdir)/qt4)
801 #kde-config -path data unavailable when cross-compiling 795 #kde-config -path data unavailable when cross-compiling

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

  ViewVC Help
Powered by ViewVC 1.1.20