/[gentoo-x86]/eclass/qt4-r2.eclass
Gentoo

Diff of /eclass/qt4-r2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.27 Revision 1.28
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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-r2.eclass,v 1.27 2013/06/03 06:35:30 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.28 2013/06/03 08:41:19 pesa Exp $
4 4
5# @ECLASS: qt4-r2.eclass 5# @ECLASS: qt4-r2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Qt herd <qt@gentoo.org> 7# Qt herd <qt@gentoo.org>
8# @BLURB: Eclass for Qt4-based packages, second edition. 8# @BLURB: Eclass for Qt4-based packages, second edition.
156# Wrapper for Qt4's qmake. If project_file isn't specified, eqmake4 will 156# Wrapper for Qt4's qmake. If project_file isn't specified, eqmake4 will
157# look for it in the current directory (${S}, non-recursively). If more 157# look for it in the current directory (${S}, non-recursively). If more
158# than one project file are found, then ${PN}.pro is processed, provided 158# than one project file are found, then ${PN}.pro is processed, provided
159# that it exists. Otherwise eqmake4 fails. 159# that it exists. Otherwise eqmake4 fails.
160# 160#
161# All other arguments are appended unmodified to qmake command line. For 161# All other arguments are appended unmodified to qmake command line.
162#
162# recursive build systems, i.e. those based on the subdirs template, you 163# For recursive build systems, i.e. those based on the subdirs template,
163# should run eqmake4 on the top-level project file only, unless you have 164# you should run eqmake4 on the top-level project file only, unless you
164# strong reasons to do things differently. During the building, qmake 165# have a valid reason to do otherwise. During the building, qmake will
165# will be automatically re-invoked with the right arguments on every 166# be automatically re-invoked with the right arguments on every directory
166# directory specified inside the top-level project file. 167# specified inside the top-level project file.
167eqmake4() { 168eqmake4() {
169 debug-print-function ${FUNCNAME} "$@"
170
168 [[ ${EAPI} == 2 ]] && use !prefix && EPREFIX= 171 [[ ${EAPI} == 2 ]] && use !prefix && EPREFIX=
169 172
170 ebegin "Running qmake" 173 ebegin "Running qmake"
171 174
172 local qmake_args=("$@") 175 local qmake_args=("$@")
177 if ! [[ ${1} =~ ${regexp} ]]; then 180 if ! [[ ${1} =~ ${regexp} ]]; then
178 local project_file=$(_find_project_file) 181 local project_file=$(_find_project_file)
179 if [[ -z ${project_file} ]]; then 182 if [[ -z ${project_file} ]]; then
180 echo 183 echo
181 eerror "No project files found in '${PWD}'!" 184 eerror "No project files found in '${PWD}'!"
182 eerror "This shouldn't happen - please send a bug report to http://bugs.gentoo.org/" 185 eerror "This shouldn't happen - please send a bug report to https://bugs.gentoo.org/"
183 echo 186 echo
184 die "eqmake4 failed" 187 die "eqmake4 failed"
185 fi 188 fi
186 qmake_args+=("${project_file}") 189 qmake_args+=("${project_file}")
187 fi 190 fi
274 277
275 # was qmake successful? 278 # was qmake successful?
276 if ! eend $? ; then 279 if ! eend $? ; then
277 echo 280 echo
278 eerror "Running qmake has failed! (see above for details)" 281 eerror "Running qmake has failed! (see above for details)"
279 eerror "This shouldn't happen - please send a bug report to http://bugs.gentoo.org/" 282 eerror "This shouldn't happen - please send a bug report to https://bugs.gentoo.org/"
280 echo 283 echo
281 die "eqmake4 failed" 284 die "eqmake4 failed"
282 fi 285 fi
283} 286}
284 287

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20