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

Diff of /eclass/qt4.eclass

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

Revision 1.2 Revision 1.4
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.2 2006/05/08 11:13:57 caleb Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.4 2006/08/16 12:20:15 caleb 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#
9# DEPEND="$(qt_min_version 4)" 9# DEPEND="$(qt_min_version 4)"
10# 10#
11# and it handles the rest for you 11# and it handles the rest for you
12# 12#
13# 08.16.06 - Renamed qt_min_* to qt4_min_* to avoid conflicts with the qt3 eclass.
14# - Caleb Tennis <caleb@gentoo.org>
13 15
14inherit versionator 16inherit versionator
15 17
16QTPKG="x11-libs/qt-" 18QTPKG="x11-libs/qt-"
17QT4MAJORVERSIONS="4.1 4.0" 19QT4MAJORVERSIONS="4.1 4.0"
18QT4VERSIONS="4.1.2 4.1.1 4.1.0 4.0.1 4.0.0" 20QT4VERSIONS="4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0"
19 21
20qt_min_version() { 22qt4_min_version() {
21 echo "|| (" 23 echo "|| ("
22 qt_min_version_list "$@" 24 qt4_min_version_list "$@"
23 echo ")" 25 echo ")"
24} 26}
25 27
26qt_min_version_list() { 28qt4_min_version_list() {
27 local MINVER="$1" 29 local MINVER="$1"
28 local VERSIONS="" 30 local VERSIONS=""
29 31
30 case "${MINVER}" in 32 case "${MINVER}" in
31 4|4.0|4.0.0) VERSIONS="=${QTPKG}4*";; 33 4|4.0|4.0.0) VERSIONS="=${QTPKG}4*";;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20