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

Diff of /eclass/qt4.eclass

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

Revision 1.29 Revision 1.30
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.29 2007/12/14 00:31:05 troll Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.30 2007/12/19 18:07:47 caleb 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:
15# - Caleb Tennis <caleb@gentoo.org> 15# - Caleb Tennis <caleb@gentoo.org>
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.3 4.2 4.1 4.0" 20QT4MAJORVERSIONS="4.4 4.3 4.2 4.1 4.0"
21QT4VERSIONS="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_rc1 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.
37 local MINVER="$1" 37 local MINVER="$1"
38 local VERSIONS="" 38 local VERSIONS=""
39 39
40 case "${MINVER}" in 40 case "${MINVER}" in
41 4|4.0|4.0.0) VERSIONS="=${QTPKG}4*";; 41 4|4.0|4.0.0) VERSIONS="=${QTPKG}4*";;
42 4.1|4.1.0|4.2|4.2.0) 42 4.1|4.1.0|4.2|4.2.0|4.3|4.3.0|4.4|4.4.0)
43 for x in ${QT4MAJORVERSIONS}; do 43 for x in ${QT4MAJORVERSIONS}; do
44 if $(version_is_at_least "${MINVER}" "${x}"); then 44 if $(version_is_at_least "${MINVER}" "${x}"); then
45 VERSIONS="${VERSIONS} =${QTPKG}${x}*" 45 VERSIONS="${VERSIONS} =${QTPKG}${x}*"
46 fi 46 fi
47 done 47 done

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20