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

Diff of /eclass/qt4.eclass

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

Revision 1.45 Revision 1.46
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.45 2008/07/26 23:47:03 carlo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/qt4.eclass,v 1.46 2008/07/28 22:10:16 carlo 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: Eclass for Qt4 packages 8# @BLURB: Eclass for Qt4 packages
25 4.0.1 4.0.0" 25 4.0.1 4.0.0"
26 26
27# @FUNCTION: qt4_min_version 27# @FUNCTION: qt4_min_version
28# @USAGE: [minimum version] 28# @USAGE: [minimum version]
29# @DESCRIPTION: 29# @DESCRIPTION:
30# This function should be called in package DEPENDs whenever it depends on qt4. 30# This function is deprecated. Use slot dependencies instead.
31# Simple example - in your depend, do something like this:
32# DEPEND="$(qt4_min_version 4.2)"
33# if the package can be build with qt-4.2 or higher.
34#
35# For builds that use an EAPI with support for SLOT dependencies, this will
36# return a SLOT dependency, rather than a list of versions.
37qt4_min_version() { 31qt4_min_version() {
32 ewarn "qt4_min_version() is deprecated. Use slot dependencies instead."
33 epause
38 case ${EAPI:-0} in 34 case ${EAPI:-0} in
39 # EAPIs without SLOT dependencies 35 # EAPIs without SLOT dependencies
40 0) echo "|| (" 36 0) echo "|| ("
41 qt4_min_version_list "$@" 37 qt4_min_version_list "$@"
42 echo ")" 38 echo ")"

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.20