/[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.109 Revision 1.110
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.109 2011/10/21 23:00:19 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.110 2011/10/29 15:07:16 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
598# @DESCRIPTION: 598# @DESCRIPTION:
599# Do some basic settings 599# Do some basic settings
600kde4-base_pkg_setup() { 600kde4-base_pkg_setup() {
601 debug-print-function ${FUNCNAME} "$@" 601 debug-print-function ${FUNCNAME} "$@"
602 602
603 if has kdeprefix ${IUSE//+} && use kdeprefix; then 603 if use_if_iuse kdeprefix; then
604 eerror "Sorry, kdeprefix support has been removed." 604 eerror "Sorry, kdeprefix support has been removed."
605 eerror "Please remove kdeprefix from your USE variable." 605 eerror "Please remove kdeprefix from your USE variable."
606 die "kdeprefix support has been removed" 606 die "kdeprefix support has been removed"
607 fi 607 fi
608 608
680 fi 680 fi
681 681
682 # Enable/disable handbooks for kde4-base packages 682 # Enable/disable handbooks for kde4-base packages
683 # kde-l10n inherits kde4-base but is metpackage, so no check for doc 683 # kde-l10n inherits kde4-base but is metpackage, so no check for doc
684 # kdelibs inherits kde4-base but handle installing the handbook itself 684 # kdelibs inherits kde4-base but handle installing the handbook itself
685 if ! has kde4-meta ${INHERITED} && has handbook ${IUSE//+}; then 685 if ! has kde4-meta ${INHERITED} && in_iuse handbook; then
686 if [[ ${KDEBASE} == kde-base ]]; then 686 if [[ ${KDEBASE} == kde-base ]]; then
687 if [[ ${PN} != kde-l10n && ${PN} != kdepim-l10n && ${PN} != kdelibs ]] && use !handbook; then 687 if [[ ${PN} != kde-l10n && ${PN} != kdepim-l10n && ${PN} != kdelibs ]] && use !handbook; then
688 # documentation in kde4-functions 688 # documentation in kde4-functions
689 : ${KDE_DOC_DIRS:=doc} 689 : ${KDE_DOC_DIRS:=doc}
690 local dir 690 local dir
758 debug-print-function ${FUNCNAME} "$@" 758 debug-print-function ${FUNCNAME} "$@"
759 759
760 # Build tests in src_test only, where we override this value 760 # Build tests in src_test only, where we override this value
761 local cmakeargs=(-DKDE4_BUILD_TESTS=OFF) 761 local cmakeargs=(-DKDE4_BUILD_TESTS=OFF)
762 762
763 if has kdeenablefinal ${IUSE//+} && use kdeenablefinal; then 763 if use_if_iuse kdeenablefinal; then
764 cmakeargs+=(-DKDE4_ENABLE_FINAL=ON) 764 cmakeargs+=(-DKDE4_ENABLE_FINAL=ON)
765 fi 765 fi
766 766
767 if has debug ${IUSE//+} && use debug; then 767 if use_if_iuse debug; then
768 # Set "real" debug mode 768 # Set "real" debug mode
769 CMAKE_BUILD_TYPE="Debugfull" 769 CMAKE_BUILD_TYPE="Debugfull"
770 else 770 else
771 # Handle common release builds 771 # Handle common release builds
772 append-cppflags -DQT_NO_DEBUG 772 append-cppflags -DQT_NO_DEBUG
878# Function storing icon caches 878# Function storing icon caches
879kde4-base_pkg_preinst() { 879kde4-base_pkg_preinst() {
880 debug-print-function ${FUNCNAME} "$@" 880 debug-print-function ${FUNCNAME} "$@"
881 881
882 gnome2_icon_savelist 882 gnome2_icon_savelist
883 if [[ ${BUILD_TYPE} == live && ${KDE_SCM} == svn ]]; then
884 subversion_pkg_preinst
885 fi
883} 886}
884 887
885# @FUNCTION: kde4-base_pkg_postinst 888# @FUNCTION: kde4-base_pkg_postinst
886# @DESCRIPTION: 889# @DESCRIPTION:
887# Function to rebuild the KDE System Configuration Cache after an application has been installed. 890# Function to rebuild the KDE System Configuration Cache after an application has been installed.
892 fdo-mime_desktop_database_update 895 fdo-mime_desktop_database_update
893 fdo-mime_mime_database_update 896 fdo-mime_mime_database_update
894 buildsycoca 897 buildsycoca
895 898
896 if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then 899 if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
897 if has kdeenablefinal ${IUSE//+} && use kdeenablefinal; then 900 if use_if_iuse kdeenablefinal; then
898 echo 901 echo
899 ewarn "WARNING! you have kdeenable final useflag enabled." 902 ewarn "WARNING! you have kdeenable final useflag enabled."
900 ewarn "This useflag needs to be enabled on ALL kde using packages and" 903 ewarn "This useflag needs to be enabled on ALL kde using packages and"
901 ewarn "is known to cause issues." 904 ewarn "is known to cause issues."
902 ewarn "You are using this setup at your own risk and the kde team does not" 905 ewarn "You are using this setup at your own risk and the kde team does not"

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.110

  ViewVC Help
Powered by ViewVC 1.1.20