| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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-build.eclass,v 1.133 2012/06/18 21:33:50 pesa Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.134 2012/07/10 21:43:19 pesa Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: qt4-build.eclass |
5 | # @ECLASS: qt4-build.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Qt herd <qt@gentoo.org> |
7 | # Qt herd <qt@gentoo.org> |
| 8 | # @BLURB: Eclass for Qt4 split ebuilds. |
8 | # @BLURB: Eclass for Qt4 split ebuilds. |
| … | |
… | |
| 12 | case ${EAPI} in |
12 | case ${EAPI} in |
| 13 | 2|3|4) : ;; |
13 | 2|3|4) : ;; |
| 14 | *) die "qt4-build.eclass requires EAPI 2, 3 or 4." ;; |
14 | *) die "qt4-build.eclass requires EAPI 2, 3 or 4." ;; |
| 15 | esac |
15 | esac |
| 16 | |
16 | |
| 17 | inherit base eutils flag-o-matic multilib toolchain-funcs versionator |
17 | inherit eutils flag-o-matic multilib toolchain-funcs versionator |
| 18 | |
18 | |
| 19 | if [[ ${PV} == *9999* ]]; then |
19 | if [[ ${PV} == *9999* ]]; then |
| 20 | QT4_BUILD_TYPE="live" |
20 | QT4_BUILD_TYPE="live" |
| 21 | inherit git-2 |
21 | inherit git-2 |
| 22 | else |
22 | else |
| … | |
… | |
| 350 | sed -i -e '/PLATFORM=solaris-cc/s/cc/g++/' configure || die |
350 | sed -i -e '/PLATFORM=solaris-cc/s/cc/g++/' configure || die |
| 351 | # do not flirt with non-Prefix stuff, we're quite possessive |
351 | # do not flirt with non-Prefix stuff, we're quite possessive |
| 352 | sed -i -e '/^QMAKE_\(LIB\|INC\)DIR\(_X11\|_OPENGL\|\)\t/s/=.*$/=/' \ |
352 | sed -i -e '/^QMAKE_\(LIB\|INC\)DIR\(_X11\|_OPENGL\|\)\t/s/=.*$/=/' \ |
| 353 | mkspecs/$(qt_mkspecs_dir)/qmake.conf || die |
353 | mkspecs/$(qt_mkspecs_dir)/qmake.conf || die |
| 354 | |
354 | |
| 355 | base_src_prepare |
355 | # apply patches |
|
|
356 | [[ -n ${PATCHES[@]} ]] && epatch "${PATCHES[@]}" |
|
|
357 | epatch_user |
| 356 | } |
358 | } |
| 357 | |
359 | |
| 358 | # @FUNCTION: qt4-build_src_configure |
360 | # @FUNCTION: qt4-build_src_configure |
| 359 | # @DESCRIPTION: |
361 | # @DESCRIPTION: |
| 360 | # Default configure phase |
362 | # Default configure phase |