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 (+54 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.5 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.5 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 58-60 Link Here
58
60
59
	echo "${VERSIONS}"
61
	echo "${VERSIONS}"
60
}
62
}
63
64
eqmake() {
65
	local projprofile=""
66
	if [ -z $1 ]; then
67
		projprofile="${PN}.pro"
68
	else
69
		projprofile="${1}"
70
	fi;
71
72
	# file exists?
73
	if [[ ! -f ${projprofile} ]]; then
74
		echo
75
		eerror "Project pro file \"${projprofile}\" does not exists"
76
		eerror "qmake cannot handle the non-existing pro files"
77
		echo
78
		eerror "This shouldn't happen - send a bug report to bugs.gentoo.org"
79
		echo
80
		die "non existing pro file in ${PN} sources"
81
	fi;
82
83
	# some standard config options
84
	local configopt="no_fixpath"
85
	if use debug; then
86
		configopt="${configopt} debug"
87
	else
88
		configopt="${configopt} release"
89
	fi;
90
91
92
	einfo "Processing qmake ${projprofile}"
93
94
	# any special qmake options should be passed as a second eqmake parameter
95
	${QTDIR}/bin/qmake ${projprofile} \
96
		QMAKE=${QTDIR}/bin/qmake \
97
		QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
98
		QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
99
		"CONFIG+=${configopt}" \
100
		QMAKE_RPATH= \
101
		${2}
102
103
	# successfull qmake?
104
	if [[ $? -ne 0 ]]; then
105
		echo
106
		eerror "Running qmake on \"${projprofile}\" has failed"
107
		echo
108
		eerror "This shouldn't happen - send a bug report to bugs.gentoo.org"
109
		echo
110
		die "qmake has failed on ${projprofile}"
111
	fi;
112
113
	eend 0
114
}

Return to bug 120116