| 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.116 2012/01/31 23:02:00 hwoarang Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.118 2012/02/09 22:58:36 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. |
| … | |
… | |
| 380 | |
380 | |
| 381 | # @FUNCTION: qt4-build_src_test |
381 | # @FUNCTION: qt4-build_src_test |
| 382 | # @DESCRIPTION: |
382 | # @DESCRIPTION: |
| 383 | # Runs tests only in target directories. |
383 | # Runs tests only in target directories. |
| 384 | qt4-build_src_test() { |
384 | qt4-build_src_test() { |
|
|
385 | # QtMultimedia does not have any test suite (bug #332299) |
|
|
386 | [[ ${PN} == "qt-multimedia" ]] && return |
|
|
387 | |
| 385 | for dir in ${QT4_TARGET_DIRECTORIES}; do |
388 | for dir in ${QT4_TARGET_DIRECTORIES}; do |
| 386 | emake -j1 check -C ${dir} |
389 | emake -j1 check -C ${dir} |
| 387 | done |
390 | done |
| 388 | } |
391 | } |
| 389 | |
392 | |
| … | |
… | |
| 780 | elif [[ ${CXX} == *icpc* ]]; then |
783 | elif [[ ${CXX} == *icpc* ]]; then |
| 781 | spec+=-icc |
784 | spec+=-icc |
| 782 | else |
785 | else |
| 783 | die "Unknown compiler '${CXX}'" |
786 | die "Unknown compiler '${CXX}'" |
| 784 | fi |
787 | fi |
| 785 | if [[ -n ${LIBDIR/lib} ]]; then |
|
|
| 786 | spec+=-${LIBDIR/lib} |
|
|
| 787 | fi |
|
|
| 788 | |
788 | |
| 789 | # Add -64 for 64bit profiles |
789 | # Add -64 for 64bit profiles |
| 790 | if use x64-freebsd || |
790 | if use x64-freebsd || |
| 791 | use amd64-linux || |
791 | use amd64-linux || |
| 792 | use x64-macos || |
792 | use x64-macos || |