/[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.130 Revision 1.134
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.130 2013/08/15 15:29:58 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.134 2014/03/30 09:13:52 johu 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}"
191esac 198esac
192 199
193# @ECLASS-VARIABLE: QT_MINIMAL 200# @ECLASS-VARIABLE: QT_MINIMAL
194# @DESCRIPTION: 201# @DESCRIPTION:
195# Determine version of qt we enforce as minimal for the package. 202# Determine version of qt we enforce as minimal for the package.
196QT_MINIMAL="${QT_MINIMAL:-4.8.0}" 203QT_MINIMAL="${QT_MINIMAL:-4.8.5}"
197 204
198# Declarative dependencies 205# Declarative dependencies
199qtdeclarativedepend=" 206qtdeclarativedepend="
200 >=dev-qt/qtdeclarative-${QT_MINIMAL}:4 207 >=dev-qt/qtdeclarative-${QT_MINIMAL}:4
201" 208"
279kdecommondepend=" 286kdecommondepend="
280 dev-lang/perl 287 dev-lang/perl
281 >=dev-qt/qt3support-${QT_MINIMAL}:4[accessibility] 288 >=dev-qt/qt3support-${QT_MINIMAL}:4[accessibility]
282 >=dev-qt/qtcore-${QT_MINIMAL}:4[qt3support,ssl] 289 >=dev-qt/qtcore-${QT_MINIMAL}:4[qt3support,ssl]
283 >=dev-qt/qtdbus-${QT_MINIMAL}:4 290 >=dev-qt/qtdbus-${QT_MINIMAL}:4
284 || ( 291 >=dev-qt/designer-${QT_MINIMAL}:4[-phonon]
285 ( >=dev-qt/qtgui-4.8.5:4[accessibility,dbus(+)] dev-qt/designer:4[-phonon] )
286 <dev-qt/qtgui-4.8.5:4[accessibility,dbus(+)] 292 >=dev-qt/qtgui-${QT_MINIMAL}:4[accessibility,dbus(+)]
287 )
288 >=dev-qt/qtscript-${QT_MINIMAL}:4 293 >=dev-qt/qtscript-${QT_MINIMAL}:4
289 >=dev-qt/qtsql-${QT_MINIMAL}:4[qt3support] 294 >=dev-qt/qtsql-${QT_MINIMAL}:4[qt3support]
290 >=dev-qt/qtsvg-${QT_MINIMAL}:4 295 >=dev-qt/qtsvg-${QT_MINIMAL}:4
291 >=dev-qt/qttest-${QT_MINIMAL}:4 296 >=dev-qt/qttest-${QT_MINIMAL}:4
292 >=dev-qt/qtwebkit-${QT_MINIMAL}:4 297 >=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" 298"
301 299
302if [[ ${PN} != kdelibs ]]; then 300if [[ ${PN} != kdelibs ]]; then
303 kdecommondepend+=" $(add_kdebase_dep kdelibs)" 301 kdecommondepend+=" $(add_kdebase_dep kdelibs)"
304 if [[ ${KDEBASE} = kdevelop ]]; then 302 if [[ ${KDEBASE} = kdevelop ]]; then
334# all packages needs oxygen icons for basic iconset 332# all packages needs oxygen icons for basic iconset
335if [[ ${PN} != oxygen-icons ]]; then 333if [[ ${PN} != oxygen-icons ]]; then
336 kderdepend+=" $(add_kdebase_dep oxygen-icons)" 334 kderdepend+=" $(add_kdebase_dep oxygen-icons)"
337fi 335fi
338 336
337# add a dependency over kde-l10n
339if [[ ${KDEBASE} != "kde-base" && -n ${KDE_LINGUAS} ]]; then 338if [[ ${KDEBASE} != "kde-base" && -n ${KDE_LINGUAS} ]]; then
340 for _lingua in ${KDE_LINGUAS}; do 339 for _lingua in ${KDE_LINGUAS}; do
341 # if our package has lignuas, pull in kde-l10n with selected lingua enabled, 340 # if our package has lignuas, pull in kde-l10n with selected lingua enabled,
342 # but only for selected ones. 341 # but only for selected ones.
343 # this can't be done on one line because if user doesn't use any localisation 342 # this can't be done on one line because if user doesn't use any localisation
438 # Unstable KDE SC releases 437 # Unstable KDE SC releases
439 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;; 438 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;;
440 4.[1-7].[12345]) 439 4.[1-7].[12345])
441 # Stable KDE SC with old .bz2 support 440 # Stable KDE SC with old .bz2 support
442 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 441 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
442 4.11.7)
443 # Part of 4.12 actually, sigh. Not stable for next release!
444 SRC_URI="mirror://kde/stable/4.12.3/src/${_kmname_pv}.tar.xz" ;;
445 4.11.8)
446 # Part of 4.12 actually, sigh. Not stable for next release!
447 SRC_URI="mirror://kde/stable/4.12.4/src/${_kmname_pv}.tar.xz" ;;
443 *) 448 *)
444 # Stable KDE SC releases 449 # Stable KDE SC releases
445 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;; 450 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
446 esac 451 esac
447 ;; 452 ;;
551 556
552 # default branching 557 # default branching
553 [[ ${PV} != 9999* && ${KDEBASE} == kde-base ]] && \ 558 [[ ${PV} != 9999* && ${KDEBASE} == kde-base ]] && \
554 EGIT_BRANCH="KDE/$(get_kde_version)" 559 EGIT_BRANCH="KDE/$(get_kde_version)"
555 560
561 # kde-workspace master needs Qt5/kf5
562 [[ ${PV} == 9999 && ${_kmname} == kde-workspace ]] && \
563 EGIT_BRANCH="KDE/4.11"
564
556 # default repo uri 565 # default repo uri
557 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}" 566 EGIT_REPO_URI+=( "${EGIT_MIRROR}/${_kmname}" )
558 567
559 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}" 568 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}"
560 debug-print "${FUNCNAME}: Branch: ${EGIT_BRANCH}" 569 debug-print "${FUNCNAME}: Branch: ${EGIT_BRANCH}"
561 ;; 570 ;;
562 esac 571 esac
620 case ${KDE_SCM} in 629 case ${KDE_SCM} in
621 svn) 630 svn)
622 subversion_src_unpack 631 subversion_src_unpack
623 ;; 632 ;;
624 git) 633 git)
625 git-2_src_unpack 634 git-r3_src_unpack
626 ;; 635 ;;
627 esac 636 esac
628 else 637 else
629 unpack ${A} 638 unpack ${A}
630 fi 639 fi
673 case ${KDE_SCM} in 682 case ${KDE_SCM} in
674 svn) subversion_src_prepare ;; 683 svn) subversion_src_prepare ;;
675 esac 684 esac
676 fi 685 fi
677 686
678 # Apply patches 687 # Apply patches, cmake-utils does the job already
679 base_src_prepare 688 cmake-utils_src_prepare
680 689
681 # Save library dependencies 690 # Save library dependencies
682 if [[ -n ${KMSAVELIBS} ]] ; then 691 if [[ -n ${KMSAVELIBS} ]] ; then
683 save_library_dependencies 692 save_library_dependencies
684 fi 693 fi

Legend:
Removed from v.1.130  
changed lines
  Added in v.1.134

  ViewVC Help
Powered by ViewVC 1.1.20