/[gentoo-x86]/eclass/qt4.eclass
Gentoo

Diff of /eclass/qt4.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.36 Revision 1.37
1# Copyright 2005 Gentoo Foundation 1# Copyright 2005 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/Attic/qt4.eclass,v 1.36 2008/02/26 01:11:13 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.37 2008/03/05 23:03:24 ingmar Exp $
4 4
5# @ECLASS: qt4.eclass 5# @ECLASS: qt4.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Caleb Tennis <caleb@gentoo.org> 7# Caleb Tennis <caleb@gentoo.org>
8# @BLURB: 8# @BLURB:
16 16
17inherit eutils multilib toolchain-funcs versionator 17inherit eutils multilib toolchain-funcs versionator
18 18
19QTPKG="x11-libs/qt-" 19QTPKG="x11-libs/qt-"
20QT4MAJORVERSIONS="4.4 4.3 4.2 4.1 4.0" 20QT4MAJORVERSIONS="4.4 4.3 4.2 4.1 4.0"
21QT4VERSIONS="4.4.0_rc1 4.3.4 4.3.3 4.3.2-r1 4.3.2 4.3.1-r1 4.3.1 4.3.0-r2 4.3.0-r1 4.3.0 4.3.0_rc1 4.3.0_beta1 4.2.3-r1 4.2.3 4.2.2 4.2.1 4.2.0-r2 4.2.0-r1 4.2.0 4.1.4-r2 4.1.4-r1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0" 21QT4VERSIONS="4.4.0_beta1 4.4.0_rc1 4.3.4 4.3.3 4.3.2-r1 4.3.2 4.3.1-r1 4.3.1 4.3.0-r2 4.3.0-r1 4.3.0 4.3.0_rc1 4.3.0_beta1 4.2.3-r1 4.2.3 4.2.2 4.2.1 4.2.0-r2 4.2.0-r1 4.2.0 4.1.4-r2 4.1.4-r1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0"
22 22
23# @FUNCTION: qt4_min_version 23# @FUNCTION: qt4_min_version
24# @USAGE: [minimum version] 24# @USAGE: [minimum version]
25# @DESCRIPTION: 25# @DESCRIPTION:
26# This function should be called in package DEPENDs whenever it depends on qt4. 26# This function should be called in package DEPENDs whenever it depends on qt4.
27# Simple example - in your depend, do something like this: 27# Simple example - in your depend, do something like this:
28# DEPEND="$(qt4_min_version 4.2)" 28# DEPEND="$(qt4_min_version 4.2)"
29# if package can be build with qt-4.2 or higher. 29# if the package can be build with qt-4.2 or higher.
30#
31# For builds that use an EAPI with support for SLOT dependencies, this will
32# return a SLOT dependency, rather than a list of versions.
30qt4_min_version() { 33qt4_min_version() {
31 # This is much simpler for EAPI 1, we can use a slot dependency 34 case ${EAPI:-0} in
32 if [[ "${EAPI}" -ge 1 ]]; then 35 # EAPIs without SLOT dependencies
33 echo ">=${QTPKG}${1}:4"
34 else
35 echo "|| (" 36 0) echo "|| ("
36 qt4_min_version_list "$@" 37 qt4_min_version_list "$@"
37 echo ")" 38 echo ")"
38 fi 39 ;;
40 # EAPIS with SLOT dependencies.
41 *) echo ">=${QTPKG}${1}:4"
42 ;;
43 esac
39} 44}
40 45
41qt4_min_version_list() { 46qt4_min_version_list() {
42 local MINVER="$1" 47 local MINVER="$1"
43 local VERSIONS="" 48 local VERSIONS=""

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20