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 (+57 lines)
Lines 16-21 Link Here
16
16
17
inherit versionator
17
inherit versionator
18
18
19
IUSE="${IUSE} debug"
20
19
QTPKG="x11-libs/qt-"
21
QTPKG="x11-libs/qt-"
20
QT3MAJORVERSIONS="3.3 3.2 3.1 3.0"
22
QT3MAJORVERSIONS="3.3 3.2 3.1 3.0"
21
QT3VERSIONS="3.3.6-r2 3.3.6-r1 3.3.6 3.3.5-r1 3.3.5 3.3.4-r9 3.3.4-r8 3.3.4-r7 3.3.4-r6 3.3.4-r5 3.3.4-r4 3.3.4-r3 3.3.4-r2 3.3.4-r1 3.3.4 3.3.3-r3 3.3.3-r2 3.3.3-r1 3.3.3 3.3.2 3.3.1-r2 3.3.1-r1 3.3.1 3.3.0-r1 3.3.0 3.2.3-r1 3.2.3 3.2.2-r1 3.2.2 3.2.1-r2 3.2.1-r1 3.2.1 3.2.0 3.1.2-r4 3.1.2-r3 3.1.2-r2 3.1.2-r1 3.1.2 3.1.1-r2 3.1.1-r1 3.1.1 3.1.0-r3 3.1.0-r2 3.1.0-r1 3.1.0"
23
QT3VERSIONS="3.3.6-r2 3.3.6-r1 3.3.6 3.3.5-r1 3.3.5 3.3.4-r9 3.3.4-r8 3.3.4-r7 3.3.4-r6 3.3.4-r5 3.3.4-r4 3.3.4-r3 3.3.4-r2 3.3.4-r1 3.3.4 3.3.3-r3 3.3.3-r2 3.3.3-r1 3.3.3 3.3.2 3.3.1-r2 3.3.1-r1 3.3.1 3.3.0-r1 3.3.0 3.2.3-r1 3.2.3 3.2.2-r1 3.2.2 3.2.1-r2 3.2.1-r1 3.2.1 3.2.0 3.1.2-r4 3.1.2-r3 3.1.2-r2 3.1.2-r1 3.1.2 3.1.1-r2 3.1.1-r1 3.1.1 3.1.0-r3 3.1.0-r2 3.1.0-r1 3.1.0"
Lines 63-65 Link Here
63
65
64
	echo ${VERSIONS}
66
	echo ${VERSIONS}
65
}
67
}
68
69
eqmake() {
70
	local projprofile=""
71
	if [ -z $1 ]; then
72
		projprofile="${PN}.pro"
73
	else
74
		projprofile="${1}"
75
	fi;
76
77
	einfo "Processing qmake ${projprofile}"
78
79
	# file exists?
80
	if [[ ! -f ${projprofile} ]]; then
81
		echo
82
		eerror "Project pro file \"${projprofile}\" does not exists"
83
		eerror "qmake cannot handle the non-existing pro files"
84
		echo
85
		eerror "This shouldn't happen - send a bug report to bugs.gentoo.org"
86
		echo
87
		die "non existing pro file in ${PN} sources"
88
	fi;
89
90
	# some standard config options
91
	local configoptplus="CONFIG += no_fixpath"
92
	local configoptminus="CONFIG -="
93
	if use debug; then
94
		configoptplus="${configoptplus} debug"
95
		configoptminus="${configoptminus} release"
96
	else
97
		configoptplus="${configoptplus} release"
98
		configoptminus="${configoptminus} debug"
99
	fi;
100
101
	# any special qmake options should be passed as a second eqmake parameter
102
	${QTDIR}/bin/qmake ${projprofile} \
103
		QMAKE=${QTDIR}/bin/qmake \
104
		QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
105
		QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
106
		"${configoptminus}" \
107
		"${configoptplus}" \
108
		QMAKE_RPATH= \
109
		${2}
110
111
	# successfull qmake?
112
	if [[ $? -ne 0 ]]; then
113
		echo
114
		eerror "Running qmake on \"${projprofile}\" has failed"
115
		echo
116
		eerror "This shouldn't happen - send a bug report to bugs.gentoo.org"
117
		echo
118
		die "qmake has failed on ${projprofile}"
119
	fi;
120
121
	eend 0
122
}

Return to bug 120116