/[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.120 Revision 1.121
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.120 2012/08/01 19:38:52 johu Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.121 2012/08/19 11:12:35 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
63# Set slot for KDEBASE known packages 63# Set slot for KDEBASE known packages
64case ${KDEBASE} in 64case ${KDEBASE} in
65 kde-base) 65 kde-base)
66 SLOT=4 66 SLOT=4
67 KDE_MINIMAL="${PV}" 67 KDE_MINIMAL="${PV}"
68 ;;
69 koffice)
70 SLOT="2"
71 ;; 68 ;;
72 kdevelop) 69 kdevelop)
73 if [[ ${KDE_BUILD_TYPE} = live ]]; then 70 if [[ ${KDE_BUILD_TYPE} = live ]]; then
74 # @ECLASS-VARIABLE: KDEVELOP_VERSION 71 # @ECLASS-VARIABLE: KDEVELOP_VERSION
75 # @DESCRIPTION: 72 # @DESCRIPTION:
188 *9999* | 4.?.[6-9]?) 185 *9999* | 4.?.[6-9]?)
189 RESTRICT+=" mirror" 186 RESTRICT+=" mirror"
190 ;; 187 ;;
191 esac 188 esac
192 ;; 189 ;;
193 koffice)
194 HOMEPAGE="http://www.koffice.org/"
195 LICENSE="GPL-2"
196 ;;
197 kdevelop) 190 kdevelop)
198 HOMEPAGE="http://www.kdevelop.org/" 191 HOMEPAGE="http://www.kdevelop.org/"
199 LICENSE="GPL-2" 192 LICENSE="GPL-2"
200 ;; 193 ;;
201esac 194esac
204# @DESCRIPTION: 197# @DESCRIPTION:
205# Determine version of qt we enforce as minimal for the package. 198# Determine version of qt we enforce as minimal for the package.
206if version_is_at_least 4.8.50 "${KDE_MINIMAL}"; then 199if version_is_at_least 4.8.50 "${KDE_MINIMAL}"; then
207 # Upstream has added an *undeclared* dependency on Qt 4.8... 200 # Upstream has added an *undeclared* dependency on Qt 4.8...
208 QT_MINIMAL="${QT_MINIMAL:-4.8.0}" 201 QT_MINIMAL="${QT_MINIMAL:-4.8.0}"
209elif version_is_at_least 4.7.80 "${KDE_MINIMAL}"; then 202else
210 QT_MINIMAL="${QT_MINIMAL:-4.7.4}" 203 QT_MINIMAL="${QT_MINIMAL:-4.7.4}"
211else
212 QT_MINIMAL="${QT_MINIMAL:-4.7.0}"
213fi 204fi
214 205
215# Declarative dependencies 206# Declarative dependencies
216qtdeclarativedepend=" 207qtdeclarativedepend="
217 >=x11-libs/qt-declarative-${QT_MINIMAL}:4 208 >=x11-libs/qt-declarative-${QT_MINIMAL}:4
419DEPEND+=" ${COMMONDEPEND}" 410DEPEND+=" ${COMMONDEPEND}"
420RDEPEND+=" ${COMMONDEPEND}" 411RDEPEND+=" ${COMMONDEPEND}"
421unset COMMONDEPEND 412unset COMMONDEPEND
422 413
423# Fetch section - If the ebuild's category is not 'kde-base' and if it is not a 414# Fetch section - If the ebuild's category is not 'kde-base' and if it is not a
424# koffice ebuild, the URI should be set in the ebuild itself 415# kdevelop ebuild, the URI should be set in the ebuild itself
425_calculate_src_uri() { 416_calculate_src_uri() {
426 debug-print-function ${FUNCNAME} "$@" 417 debug-print-function ${FUNCNAME} "$@"
427 418
428 local _kmname _kmname_pv 419 local _kmname _kmname_pv
429 420
454 # Unstable KDE SC releases 445 # Unstable KDE SC releases
455 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;; 446 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;;
456 4.[1234567].[12345]) 447 4.[1234567].[12345])
457 # Stable KDE SC with old .bz2 support 448 # Stable KDE SC with old .bz2 support
458 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;; 449 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
459 4.[89].8[05] | 4.[89].9[0235678])
460 # Unstable KDE SC releases
461 SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.xz" ;;
462 *) 450 *)
463 # Stable KDE SC releases 451 # Stable KDE SC releases
464 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;; 452 SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.xz" ;;
465 esac
466 ;;
467 koffice)
468 case ${PV} in
469 2.[1234].[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
470 *) SRC_URI="mirror://kde/stable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
471 esac 453 esac
472 ;; 454 ;;
473 kdevelop|kdevelop-php*|kdevplatform) 455 kdevelop|kdevelop-php*|kdevplatform)
474 case ${KDEVELOP_VERSION} in 456 case ${KDEVELOP_VERSION} in
475 4.[12].[6-9]*) SRC_URI="mirror://kde/unstable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;; 457 4.[12].[6-9]*) SRC_URI="mirror://kde/unstable/kdevelop/${KDEVELOP_VERSION}/src/${P}.tar.bz2" ;;
535 # Unpack them in toplevel dir, so that they won't conflict with kde4-meta 517 # Unpack them in toplevel dir, so that they won't conflict with kde4-meta
536 # build packages from same svn location. 518 # build packages from same svn location.
537 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}" 519 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}"
538 ESVN_PROJECT="${PN}${ESVN_PROJECT_SUFFIX}" 520 ESVN_PROJECT="${PN}${ESVN_PROJECT_SUFFIX}"
539 ;; 521 ;;
540 koffice)
541 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}"
542 ;;
543 *) 522 *)
544 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}" 523 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}/${KMMODULE}"
545 ;; 524 ;;
546 esac 525 esac
547 else 526 else
550 ESVN_PROJECT="${PN}${ESVN_PROJECT_SUFFIX}" 529 ESVN_PROJECT="${PN}${ESVN_PROJECT_SUFFIX}"
551 fi 530 fi
552 # @ECLASS-VARIABLE: ESVN_UP_FREQ 531 # @ECLASS-VARIABLE: ESVN_UP_FREQ
553 # @DESCRIPTION: 532 # @DESCRIPTION:
554 # This variable is used for specifying the timeout between svn synces 533 # This variable is used for specifying the timeout between svn synces
555 # for kde-base and koffice modules. Does not affect misc apps. 534 # for kde-base modules. Does not affect misc apps.
556 # Default value is 1 hour. 535 # Default value is 1 hour.
557 [[ ${KDEBASE} = kde-base || ${KDEBASE} = koffice ]] && ESVN_UP_FREQ=${ESVN_UP_FREQ:-1} 536 [[ ${KDEBASE} = kde-base ]] && ESVN_UP_FREQ=${ESVN_UP_FREQ:-1}
558 ;; 537 ;;
559 git) 538 git)
560 local _kmname 539 local _kmname
561 # @ECLASS-VARIABLE: EGIT_MIRROR 540 # @ECLASS-VARIABLE: EGIT_MIRROR
562 # @DESCRIPTION: 541 # @DESCRIPTION:
733 # Inject library dependencies 712 # Inject library dependencies
734 if [[ -n ${KMLOADLIBS} ]] ; then 713 if [[ -n ${KMLOADLIBS} ]] ; then
735 load_library_dependencies 714 load_library_dependencies
736 fi 715 fi
737 716
738 # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/... 717 # Hack for manuals relying on outdated DTD, only outside kde-base/...
739 if [[ -z ${KDEBASE} ]]; then 718 if [[ -z ${KDEBASE} ]]; then
740 find "${S}" -name "*.docbook" \ 719 find "${S}" -name "*.docbook" \
741 -exec sed -i -r \ 720 -exec sed -i -r \
742 -e 's:-//KDE//DTD DocBook XML V4\.1(\..)?-Based Variant V1\.[01]//EN:-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN:g' {} + \ 721 -e 's:-//KDE//DTD DocBook XML V4\.1(\..)?-Based Variant V1\.[01]//EN:-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN:g' {} + \
743 || die 'failed to fix DocBook variant version' 722 || die 'failed to fix DocBook variant version'

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.121

  ViewVC Help
Powered by ViewVC 1.1.20