/[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.90 Revision 1.91
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.90 2011/04/22 18:48:03 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.91 2011/05/01 13:52:09 scarabeus 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
18# For proper description see virtualx.eclass manpage. 18# For proper description see virtualx.eclass manpage.
19# Here we redefine default value to be manual, if your package needs virtualx 19# Here we redefine default value to be manual, if your package needs virtualx
20# for tests you should proceed with setting VIRTUALX_REQUIRED=test. 20# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
21: ${VIRTUALX_REQUIRED:=manual} 21: ${VIRTUALX_REQUIRED:=manual}
22 22
23inherit kde4-functions fdo-mime gnome2-utils base virtualx versionator eutils 23inherit kde4-functions toolchain-funcs fdo-mime gnome2-utils base virtualx versionator eutils
24 24
25if [[ ${BUILD_TYPE} = live ]]; then 25if [[ ${BUILD_TYPE} = live ]]; then
26 case ${KDE_SCM} in 26 case ${KDE_SCM} in
27 svn) inherit subversion ;; 27 svn) inherit subversion ;;
28 git) inherit git ;; 28 git) inherit git-2 ;;
29 esac 29 esac
30fi 30fi
31 31
32# @ECLASS-VARIABLE: CMAKE_REQUIRED 32# @ECLASS-VARIABLE: CMAKE_REQUIRED
33# @DESCRIPTION: 33# @DESCRIPTION:
383 # if our package has lignuas, pull in kde-l10n with selected lingua enabled, 383 # if our package has lignuas, pull in kde-l10n with selected lingua enabled,
384 # but only for selected ones. 384 # but only for selected ones.
385 # this can't be done on one line because if user doesn't use any localisation 385 # this can't be done on one line because if user doesn't use any localisation
386 # then he is probably not interested in kde-l10n at all. 386 # then he is probably not interested in kde-l10n at all.
387 kderdepend+=" 387 kderdepend+="
388 linguas_${_lingua}? ( $(add_kdebase_dep kde-l10n "linguas_${_lingua}(+)?") ) 388 linguas_${_lingua}? ( $(add_kdebase_dep kde-l10n "linguas_${_lingua}(+)") )
389 " 389 "
390 done 390 done
391 unset _lingua 391 unset _lingua
392fi 392fi
393 393
606 *) EGIT_BRANCH="KDE/${SLOT}" ;; 606 *) EGIT_BRANCH="KDE/${SLOT}" ;;
607 esac 607 esac
608 ;; 608 ;;
609 esac 609 esac
610 610
611 case $_kmname in
612 kdepim|kdepim-runtime)
613 case ${PV} in
614 # kdepim still did not branch
615 4.6.9999)
616 EGIT_BRANCH="master"
617 ;;
618 esac
619 ;;
620 esac
621 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}" 611 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}"
622 EGIT_PROJECT="${_kmname}"
623 612
624 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}" 613 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}"
625 debug-print "${FUNCNAME}: Branch: ${EGIT_BRANCH}" 614 debug-print "${FUNCNAME}: Branch: ${EGIT_BRANCH}"
626 ;; 615 ;;
627 esac 616 esac
650 # QA ebuilds 639 # QA ebuilds
651 [[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})." 640 [[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})."
652 641
653 # Don't set KDEHOME during compilation, it will cause access violations 642 # Don't set KDEHOME during compilation, it will cause access violations
654 unset KDEHOME 643 unset KDEHOME
644
645 # Check if gcc compiler is fresh enough.
646 # In theory should be in pkg_pretend but we check it only for kdelibs there
647 # and for others we do just quick scan in pkg_setup because pkg_pretend
648 # executions consume quite some time.
649 [[ $(gcc-major-version) -lt 4 ]] || \
650 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \
651 && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)."
655 652
656 if [[ ${KDEBASE} = kde-base ]]; then 653 if [[ ${KDEBASE} = kde-base ]]; then
657 if use kdeprefix; then 654 if use kdeprefix; then
658 KDEDIR=/usr/kde/${SLOT} 655 KDEDIR=/usr/kde/${SLOT}
659 else 656 else
708 svn) 705 svn)
709 migrate_store_dir 706 migrate_store_dir
710 subversion_src_unpack 707 subversion_src_unpack
711 ;; 708 ;;
712 git) 709 git)
713 git_src_unpack 710 git-2_src_unpack
714 ;; 711 ;;
715 esac 712 esac
716 else 713 else
717 unpack ${A} 714 unpack ${A}
718 fi 715 fi

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91

  ViewVC Help
Powered by ViewVC 1.1.20