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. |
13 |
# 08.16.06 - Renamed qt_min_* to qt4_min_* to avoid conflicts with the qt3 eclass. |
|
|
14 |
# - Caleb Tennis <caleb@gentoo.org> |
15 |
|
13 |
|
16 |
inherit eutils multilib toolchain-funcs versionator |
14 |
inherit eutils multilib toolchain-funcs versionator |
17 |
|
15 |
|
Lines 21-26
Link Here
|
21 |
QT4MAJORVERSIONS="4.3 4.2 4.1 4.0" |
19 |
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" |
20 |
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 |
|
21 |
|
|
|
22 |
# @FUNCTION: qt4_min_version |
23 |
# @USAGE: [minimum version] |
24 |
# @DESCRIPTION: |
25 |
# This function is simple. In your depend, do something like this: |
26 |
# DEPEND="$(qt4_min_version 4.2)" |
27 |
# and it handles the rest for you. |
24 |
qt4_min_version() { |
28 |
qt4_min_version() { |
25 |
echo "|| (" |
29 |
echo "|| (" |
26 |
qt4_min_version_list "$@" |
30 |
qt4_min_version_list "$@" |
Lines 61-66
Link Here
|
61 |
done |
65 |
done |
62 |
} |
66 |
} |
63 |
|
67 |
|
|
|
68 |
# @FUNCTION: eqmake4 |
69 |
# @USAGE: [.pro file] [additional parameters to qmake] |
70 |
# @DESCRIPTION: |
71 |
# Runs qmake on the specified .pro file (defaults to |
72 |
# ${PN}.pro if eqmake4 was called with no argument). |
73 |
# Additional parameters are passed unmodified to qmake. |
64 |
eqmake4() { |
74 |
eqmake4() { |
65 |
local LOGFILE="${T}/qmake-$$.out" |
75 |
local LOGFILE="${T}/qmake-$$.out" |
66 |
local projprofile="${1}" |
76 |
local projprofile="${1}" |