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

Diff of /eclass/qt4.eclass

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

Revision 1.5 Revision 1.6
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.5 2006/10/21 09:53:15 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.6 2006/10/21 09:56:28 flameeyes Exp $
4# 4#
5# Author Caleb Tennis <caleb@gentoo.org> 5# Author Caleb Tennis <caleb@gentoo.org>
6# 6#
7# This eclass is simple. Inherit it, and in your depend, do something like this: 7# This eclass is simple. Inherit it, and in your depend, do something like this:
8# 8#
14# - Caleb Tennis <caleb@gentoo.org> 14# - Caleb Tennis <caleb@gentoo.org>
15 15
16inherit versionator 16inherit versionator
17 17
18QTPKG="x11-libs/qt-" 18QTPKG="x11-libs/qt-"
19QT4MAJORVERSIONS="4.1 4.0" 19QT4MAJORVERSIONS="4.2 4.1 4.0"
20QT4VERSIONS="4.1.4-r2 4.1.4-r2 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0" 20QT4VERSIONS="4.2.0-r2 4.2.0-r1 4.2.0 4.1.4-r2 4.1.4-r2 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0"
21 21
22qt4_min_version() { 22qt4_min_version() {
23 echo "|| (" 23 echo "|| ("
24 qt4_min_version_list "$@" 24 qt4_min_version_list "$@"
25 echo ")" 25 echo ")"
29 local MINVER="$1" 29 local MINVER="$1"
30 local VERSIONS="" 30 local VERSIONS=""
31 31
32 case "${MINVER}" in 32 case "${MINVER}" in
33 4|4.0|4.0.0) VERSIONS="=${QTPKG}4*";; 33 4|4.0|4.0.0) VERSIONS="=${QTPKG}4*";;
34 4.1|4.1.0) 34 4.1|4.1.0|4.2|4.2.0)
35 for x in ${QT4MAJORVERSIONS}; do 35 for x in ${QT4MAJORVERSIONS}; do
36 if $(version_is_at_least "${MINVER}" "${x}"); then 36 if $(version_is_at_least "${MINVER}" "${x}"); then
37 VERSIONS="${VERSIONS} =${QTPKG}${x}*" 37 VERSIONS="${VERSIONS} =${QTPKG}${x}*"
38 fi 38 fi
39 done 39 done

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20