Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 120116 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/eclass/qt4.eclass (-11 / +23 lines)
Lines 1-17 Link Here
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/qt4.eclass,v 1.21 2007/07/31 13:42:23 caleb Exp $
3
# $Header: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v 1.21 2007/07/31 13:42:23 caleb Exp $
4
#
4
5
# Author Caleb Tennis <caleb@gentoo.org>
5
# @ECLASS: qt4.eclass
6
#
6
# @MAINTAINER:
7
# This eclass is simple.  Inherit it, and in your depend, do something like this:
7
# Caleb Tennis <caleb@gentoo.org>
8
#
8
# @BLURB:
9
# DEPEND="$(qt4_min_version 4)"
9
# Eclass for Qt4 packages
10
#
10
# @DESCRIPTION:
11
# and it handles the rest for you
11
# This eclass contains various functions that may be useful
12
#
12
# when dealing with packages using Qt4 libraries. Furthermore,
13
# 08.16.06 - Renamed qt_min_* to qt4_min_* to avoid conflicts with the qt3 eclass.
13
# if you inherit this eclass in an ebuild, the flag 'debug'
14
#    - Caleb Tennis <caleb@gentoo.org>
14
# is automatically added to IUSE for that package.
15
15
16
inherit eutils multilib toolchain-funcs versionator
16
inherit eutils multilib toolchain-funcs versionator
17
17
Lines 21-26 Link Here
21
QT4MAJORVERSIONS="4.3 4.2 4.1 4.0"
21
QT4MAJORVERSIONS="4.3 4.2 4.1 4.0"
22
QT4VERSIONS="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
QT4VERSIONS="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"
23
23
24
# @FUNCTION: qt4_min_version
25
# @USAGE: [minimum version]
26
# @DESCRIPTION:
27
# This function is simple.  In your depend, do something like this:
28
# DEPEND="$(qt4_min_version 4.2)"
29
# and it handles the rest for you.
24
qt4_min_version() {
30
qt4_min_version() {
25
	echo "|| ("
31
	echo "|| ("
26
	qt4_min_version_list "$@"
32
	qt4_min_version_list "$@"
Lines 61-66 Link Here
61
	done
67
	done
62
}
68
}
63
69
70
# @FUNCTION: eqmake4
71
# @USAGE: [.pro file] [additional parameters to qmake]
72
# @DESCRIPTION:
73
# Runs qmake on the specified .pro file (defaults to
74
# ${PN}.pro if eqmake4 was called with no argument).
75
# Additional parameters are passed unmodified to qmake.
64
eqmake4() {
76
eqmake4() {
65
	local LOGFILE="${T}/qmake-$$.out"
77
	local LOGFILE="${T}/qmake-$$.out"
66
	local projprofile="${1}"
78
	local projprofile="${1}"

Return to bug 120116