/[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.131 Revision 1.132
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 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.131 2013/08/15 15:36:26 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.132 2014/01/18 00:43:03 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
32# For proper description see virtualx.eclass manpage. 32# For proper description see virtualx.eclass manpage.
33# Here we redefine default value to be manual, if your package needs virtualx 33# Here we redefine default value to be manual, if your package needs virtualx
34# for tests you should proceed with setting VIRTUALX_REQUIRED=test. 34# for tests you should proceed with setting VIRTUALX_REQUIRED=test.
35: ${VIRTUALX_REQUIRED:=manual} 35: ${VIRTUALX_REQUIRED:=manual}
36 36
37inherit kde4-functions toolchain-funcs fdo-mime flag-o-matic gnome2-utils base virtualx versionator eutils multilib 37inherit kde4-functions toolchain-funcs fdo-mime flag-o-matic gnome2-utils virtualx versionator eutils multilib
38 38
39if [[ ${KDE_BUILD_TYPE} = live ]]; then 39if [[ ${KDE_BUILD_TYPE} = live ]]; then
40 case ${KDE_SCM} in 40 case ${KDE_SCM} in
41 svn) inherit subversion ;; 41 svn) inherit subversion ;;
42 git) inherit git-2 ;; 42 git) inherit git-r3 ;;
43 esac 43 esac
44fi 44fi
45 45
46# @ECLASS-VARIABLE: CMAKE_REQUIRED 46# @ECLASS-VARIABLE: CMAKE_REQUIRED
47# @DESCRIPTION: 47# @DESCRIPTION:
64KDE_MINIMAL="${KDE_MINIMAL:-4.4}" 64KDE_MINIMAL="${KDE_MINIMAL:-4.4}"
65 65
66# Set slot for KDEBASE known packages 66# Set slot for KDEBASE known packages
67case ${KDEBASE} in 67case ${KDEBASE} in
68 kde-base) 68 kde-base)
69 case ${EAPI} in
70 5)
71 SLOT=4/$(get_version_component_range 1-2)
72 ;;
73 *)
69 SLOT=4 74 SLOT=4
75 ;;
76 esac
70 KDE_MINIMAL="${PV}" 77 KDE_MINIMAL="${PV}"
71 ;; 78 ;;
72 kdevelop) 79 kdevelop)
73 if [[ ${KDE_BUILD_TYPE} = live ]]; then 80 if [[ ${KDE_BUILD_TYPE} = live ]]; then
74 # @ECLASS-VARIABLE: KDEVELOP_VERSION 81 # @ECLASS-VARIABLE: KDEVELOP_VERSION
85 case ${PN} in 92 case ${PN} in
86 kdevelop|quanta) 93 kdevelop|quanta)
87 KDEVELOP_VERSION=${PV} 94 KDEVELOP_VERSION=${PV}
88 KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)" 95 KDEVPLATFORM_VERSION="$(($(get_major_version)-3)).$(get_after_major_version)"
89 ;; 96 ;;
90 kdevplatform|kdevelop-php*) 97 kdevplatform|kdevelop-php*|kdevelop-python)
91 KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)" 98 KDEVELOP_VERSION="$(($(get_major_version)+3)).$(get_after_major_version)"
92 KDEVPLATFORM_VERSION=${PV} 99 KDEVPLATFORM_VERSION=${PV}
93 ;; 100 ;;
94 *) 101 *)
95 KDEVELOP_VERSION="${KDEVELOP_VERSION:-4.0.0}" 102 KDEVELOP_VERSION="${KDEVELOP_VERSION:-4.0.0}"
288 >=dev-qt/qtscript-${QT_MINIMAL}:4 295 >=dev-qt/qtscript-${QT_MINIMAL}:4
289 >=dev-qt/qtsql-${QT_MINIMAL}:4[qt3support] 296 >=dev-qt/qtsql-${QT_MINIMAL}:4[qt3support]
290 >=dev-qt/qtsvg-${QT_MINIMAL}:4 297 >=dev-qt/qtsvg-${QT_MINIMAL}:4
291 >=dev-qt/qttest-${QT_MINIMAL}:4 298 >=dev-qt/qttest-${QT_MINIMAL}:4
292 >=dev-qt/qtwebkit-${QT_MINIMAL}:4 299 >=dev-qt/qtwebkit-${QT_MINIMAL}:4
293 !aqua? (
294 x11-libs/libXext
295 x11-libs/libXt
296 x11-libs/libXxf86vm
297 x11-libs/libXcomposite
298 x11-libs/libxkbfile
299 )
300" 300"
301 301
302if [[ ${PN} != kdelibs ]]; then 302if [[ ${PN} != kdelibs ]]; then
303 kdecommondepend+=" $(add_kdebase_dep kdelibs)" 303 kdecommondepend+=" $(add_kdebase_dep kdelibs)"
304 if [[ ${KDEBASE} = kdevelop ]]; then 304 if [[ ${KDEBASE} = kdevelop ]]; then
552 552
553 # default branching 553 # default branching
554 [[ ${PV} != 9999* && ${KDEBASE} == kde-base ]] && \ 554 [[ ${PV} != 9999* && ${KDEBASE} == kde-base ]] && \
555 EGIT_BRANCH="KDE/$(get_kde_version)" 555 EGIT_BRANCH="KDE/$(get_kde_version)"
556 556
557 # kde-workspace master needs Qt5/kf5
558 [[ ${PV} == 9999 && ${_kmname} == kde-workspace ]] && \
559 EGIT_BRANCH="KDE/4.11"
560
557 # default repo uri 561 # default repo uri
558 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}" 562 EGIT_REPO_URI+=( "${EGIT_MIRROR}/${_kmname}" )
559 563
560 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}" 564 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}"
561 debug-print "${FUNCNAME}: Branch: ${EGIT_BRANCH}" 565 debug-print "${FUNCNAME}: Branch: ${EGIT_BRANCH}"
562 ;; 566 ;;
563 esac 567 esac
621 case ${KDE_SCM} in 625 case ${KDE_SCM} in
622 svn) 626 svn)
623 subversion_src_unpack 627 subversion_src_unpack
624 ;; 628 ;;
625 git) 629 git)
626 git-2_src_unpack 630 git-r3_src_unpack
627 ;; 631 ;;
628 esac 632 esac
629 else 633 else
630 unpack ${A} 634 unpack ${A}
631 fi 635 fi
674 case ${KDE_SCM} in 678 case ${KDE_SCM} in
675 svn) subversion_src_prepare ;; 679 svn) subversion_src_prepare ;;
676 esac 680 esac
677 fi 681 fi
678 682
679 # Apply patches 683 # Apply patches, cmake-utils does the job already
680 base_src_prepare 684 cmake-utils_src_prepare
681 685
682 # Save library dependencies 686 # Save library dependencies
683 if [[ -n ${KMSAVELIBS} ]] ; then 687 if [[ -n ${KMSAVELIBS} ]] ; then
684 save_library_dependencies 688 save_library_dependencies
685 fi 689 fi

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.132

  ViewVC Help
Powered by ViewVC 1.1.20