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/qt3.eclass (-14 / +23 lines)
Lines 1-18 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/qt3.eclass,v 1.28 2007/07/31 13:42:23 caleb Exp $
3
# $Header: /var/cvsroot/gentoo-x86/eclass/qt3.eclass,v 1.28 2007/07/31 13:42:23 caleb Exp $
4
#
4
5
# Author Caleb Tennis <caleb@gentoo.org>
5
# @ECLASS: qt3.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="$(qt_min_version 3.1)"
9
# Eclass for Qt3 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 Qt3 libraries.
13
# Caveats:
14
#
15
# Currently, the ebuild assumes that a minimum version of Qt3 is NOT satisfied by Qt4
16
13
17
inherit toolchain-funcs versionator
14
inherit toolchain-funcs versionator
18
15
Lines 26-36 Link Here
26
	QTDIR="/usr/qt/3"
23
	QTDIR="/usr/qt/3"
27
fi
24
fi
28
25
29
PATH="${QTDIR}/bin:${PATH}"
30
31
addwrite "${QTDIR}/etc/settings"
26
addwrite "${QTDIR}/etc/settings"
32
addpredict "${QTDIR}/etc/settings"
27
addpredict "${QTDIR}/etc/settings"
33
28
29
# @FUNCTION: qt_min_version
30
# @USAGE: [minimum version]
31
# @DESCRIPTION:
32
# This function is simple.  In your depend, do something like this:
33
# DEPEND="$(qt_min_version 3.1)"
34
# and it handles the rest for you. Currently, the eclass assumes
35
# that a minimum version of Qt3 is not satisfied by Qt4.
34
qt_min_version() {
36
qt_min_version() {
35
	local list=$(qt_min_version_list "$@")
37
	local list=$(qt_min_version_list "$@")
36
	if [[ ${list%% *} == "${list}" ]]; then
38
	if [[ ${list%% *} == "${list}" ]]; then
Lines 66-71 Link Here
66
	echo ${VERSIONS}
68
	echo ${VERSIONS}
67
}
69
}
68
70
71
# @FUNCTION: eqmake3
72
# @USAGE: [.pro file] [additional parameters to qmake]
73
# @DESCRIPTION:
74
# Runs qmake on the specified .pro file (defaults to
75
# ${PN}.pro if eqmake3 was called with no argument).
76
# Additional parameters are passed unmodified to qmake.
69
eqmake3() {
77
eqmake3() {
70
	local LOGFILE="${T}/qmake-$$.out"
78
	local LOGFILE="${T}/qmake-$$.out"
71
	local projprofile="${1}"
79
	local projprofile="${1}"
Lines 101-106 Link Here
101
	fi
109
	fi
102
110
103
	${QTDIR}/bin/qmake ${projprofile} \
111
	${QTDIR}/bin/qmake ${projprofile} \
112
		QTDIR=${QTDIR} \
104
		QMAKE=${QTDIR}/bin/qmake \
113
		QMAKE=${QTDIR}/bin/qmake \
105
		QMAKE_CC=$(tc-getCC) \
114
		QMAKE_CC=$(tc-getCC) \
106
		QMAKE_CXX=$(tc-getCXX) \
115
		QMAKE_CXX=$(tc-getCXX) \

Return to bug 120116