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 (-1 / +69 lines)
Lines 14-20 Link Here
14
#
14
#
15
# Currently, the ebuild assumes that a minimum version of Qt3 is NOT satisfied by Qt4
15
# Currently, the ebuild assumes that a minimum version of Qt3 is NOT satisfied by Qt4
16
16
17
inherit versionator
17
inherit toolchain-funcs versionator
18
19
IUSE="${IUSE} debug"
18
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"
Lines 63-65 Link Here
63
65
64
	echo ${VERSIONS}
66
	echo ${VERSIONS}
65
}
67
}
68
69
eqmake3() {
70
	local LOGFILE="${T}/qmake-$$.out"
71
	local projprofile="${1}"
72
	[ -z ${projprofile} ] && projprofile="${PN}.pro"
73
	shift 1
74
75
	ebegin "Processing qmake ${projprofile}"
76
77
	# file exists?
78
	if [ ! -f ${projprofile} ]; then
79
		echo
80
		eerror "Project .pro file \"${projprofile}\" does not exists"
81
		eerror "qmake cannot handle non-existing .pro files"
82
		echo
83
		eerror "This shouldn't happen - please send a bug report to bugs.gentoo.org"
84
		echo
85
		die "Project file not found in ${PN} sources"
86
	fi
87
88
	echo >> ${LOGFILE}
89
	echo "******  qmake ${projprofile}  ******" >> ${LOGFILE}
90
	echo >> ${LOGFILE}
91
92
	# some standard config options
93
	local configoptplus="CONFIG += no_fixpath"
94
	local configoptminus="CONFIG -="
95
	if use debug; then
96
		configoptplus="${configoptplus} debug"
97
		configoptminus="${configoptminus} release"
98
	else
99
		configoptplus="${configoptplus} release"
100
		configoptminus="${configoptminus} debug"
101
	fi
102
103
	${QTDIR}/bin/qmake ${projprofile} \
104
		QMAKE=${QTDIR}/bin/qmake \
105
		QMAKE_CC=$(tc-getCC) \
106
		QMAKE_CXX=$(tc-getCXX) \
107
		QMAKE_LINK=$(tc-getCXX) \
108
		QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
109
		QMAKE_CFLAGS_DEBUG="${CFLAGS}" \
110
		QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
111
		QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS}" \
112
		QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \
113
		QMAKE_LFLAGS_DEBUG="${LDFLAGS}" \
114
		"${configoptminus}" \
115
		"${configoptplus}" \
116
		QMAKE_RPATH= \
117
		${@} >> ${LOGFILE} 2>&1
118
119
	local result=$?
120
	eend ${result}
121
122
	# was qmake successful?
123
	if [ ${result} -ne 0 ]; then
124
		echo
125
		eerror "Running qmake on \"${projprofile}\" has failed"
126
		echo
127
		eerror "This shouldn't happen - please send a bug report to bugs.gentoo.org"
128
		echo
129
		die "qmake failed on ${projprofile}"
130
	fi
131
132
	return ${result}
133
}

Return to bug 120116