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 (-1 / +59 lines)
Lines 13-19 Link Here
13
# 08.16.06 - Renamed qt_min_* to qt4_min_* to avoid conflicts with the qt3 eclass.
13
# 08.16.06 - Renamed qt_min_* to qt4_min_* to avoid conflicts with the qt3 eclass.
14
#    - Caleb Tennis <caleb@gentoo.org>
14
#    - Caleb Tennis <caleb@gentoo.org>
15
15
16
inherit versionator
16
inherit eutils versionator
17
18
IUSE="${IUSE} debug"
17
19
18
QTPKG="x11-libs/qt-"
20
QTPKG="x11-libs/qt-"
19
QT4MAJORVERSIONS="4.1 4.0"
21
QT4MAJORVERSIONS="4.1 4.0"
Lines 50-52 Link Here
50
52
51
	echo "${VERSIONS}"
53
	echo "${VERSIONS}"
52
}
54
}
55
56
eqmake() {
57
	local projprofile=""
58
	if [ -z $1 ]; then
59
		projprofile="${PN}.pro"
60
	else
61
		projprofile="${1}"
62
	fi;
63
64
	einfo "Processing qmake ${projprofile}"
65
66
	# file exists?
67
	if [[ ! -f ${projprofile} ]]; then
68
		echo
69
		eerror "Project pro file \"${projprofile}\" does not exists"
70
		eerror "qmake cannot handle the non-existing pro files"
71
		echo
72
		eerror "This shouldn't happen - send a bug report to bugs.gentoo.org"
73
		echo
74
		die "non existing pro file in ${PN} sources"
75
	fi;
76
77
	# some standard config options
78
	local configoptplus="CONFIG += no_fixpath"
79
	local configoptminus="CONFIG -="
80
	# debug can be used only when qt was build with debug use flag
81
	if use debug && built_with_use qt debug; then
82
		configoptplus="${configoptplus} debug"
83
		configoptminus="${configoptminus} release"
84
	else
85
		configoptplus="${configoptplus} release"
86
		configoptminus="${configoptminus} debug"
87
	fi;
88
89
	# any special qmake options should be passed as a second eqmake parameter
90
	/usr/bin/qmake ${projprofile} \
91
		QMAKE=/usr/bin/qmake \
92
		QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
93
		QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
94
		"${configoptminus}" \
95
		"${configoptplus}" \
96
		QMAKE_RPATH= \
97
		${2}
98
99
	# successfull qmake?
100
	if [[ $? -ne 0 ]]; then
101
		echo
102
		eerror "Running qmake on \"${projprofile}\" has failed"
103
		echo
104
		eerror "This shouldn't happen - send a bug report to bugs.gentoo.org"
105
		echo
106
		die "qmake has failed on ${projprofile}"
107
	fi;
108
109
	eend 0
110
}

Return to bug 120116