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

Diff of /eclass/qt4-build.eclass

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

Revision 1.124 Revision 1.127
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.124 2012/04/04 16:37:50 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.127 2012/05/02 17:09:17 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.
46fi 46fi
47if version_is_at_least 4.8; then 47if version_is_at_least 4.8; then
48 IUSE+=" c++0x qpa" 48 IUSE+=" c++0x qpa"
49fi 49fi
50 50
51DEPEND="dev-util/pkgconfig" 51DEPEND="virtual/pkgconfig"
52if [[ ${QT4_BUILD_TYPE} == live ]]; then 52if [[ ${QT4_BUILD_TYPE} == live ]]; then
53 DEPEND+=" dev-lang/perl" 53 DEPEND+=" dev-lang/perl"
54fi 54fi
55 55
56RDEPEND=" 56RDEPEND="
57 !<x11-libs/qt-assistant-${PV} 57 !<x11-libs/qt-assistant-${PV}
58 !>x11-libs/qt-assistant-${PV}-r9999 58 !>x11-libs/qt-assistant-${PV}-r9999
59 !<x11-libs/qt-bearer-${PV}
60 !>x11-libs/qt-bearer-${PV}-r9999
59 !<x11-libs/qt-core-${PV} 61 !<x11-libs/qt-core-${PV}
60 !>x11-libs/qt-core-${PV}-r9999 62 !>x11-libs/qt-core-${PV}-r9999
61 !<x11-libs/qt-dbus-${PV} 63 !<x11-libs/qt-dbus-${PV}
62 !>x11-libs/qt-dbus-${PV}-r9999 64 !>x11-libs/qt-dbus-${PV}-r9999
63 !<x11-libs/qt-declarative-${PV} 65 !<x11-libs/qt-declarative-${PV}
500# @DESCRIPTION: 502# @DESCRIPTION:
501# For MacOS X we need to add some symlinks when frameworks are 503# For MacOS X we need to add some symlinks when frameworks are
502# being used, to avoid complications with some more or less stupid packages. 504# being used, to avoid complications with some more or less stupid packages.
503fix_includes() { 505fix_includes() {
504 if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then 506 if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then
507 local frw dest f h rdir
505 # Some packages tend to include <Qt/...> 508 # Some packages tend to include <Qt/...>
506 dodir "${QTHEADERDIR#${EPREFIX}}"/Qt 509 dodir "${QTHEADERDIR#${EPREFIX}}"/Qt
507 510
508 # Fake normal headers when frameworks are installed... eases life later on 511 # Fake normal headers when frameworks are installed... eases life later
509 local dest f h 512 # on, make sure we use relative links though, as some ebuilds assume
513 # these dirs exist in src_install to add additional files
514 f=${QTHEADERDIR}
515 h=${QTLIBDIR}
516 while [[ -n ${f} && ${f%%/*} == ${h%%/*} ]] ; do
517 f=${f#*/}
518 h=${h#*/}
519 done
520 rdir=${h}
521 f="../"
522 while [[ ${h} == */* ]] ; do
523 f="${f}../"
524 h=${h#*/}
525 done
526 rdir="${f}${rdir}"
527
510 for frw in "${D}${QTLIBDIR}"/*.framework; do 528 for frw in "${D}${QTLIBDIR}"/*.framework; do
511 [[ -e "${frw}"/Headers ]] || continue 529 [[ -e "${frw}"/Headers ]] || continue
512 f=$(basename ${frw}) 530 f=$(basename ${frw})
513 dest="${QTHEADERDIR#${EPREFIX}}"/${f%.framework} 531 dest="${QTHEADERDIR#${EPREFIX}}"/${f%.framework}
514 dosym "${QTLIBDIR#${EPREFIX}}"/${f}/Headers "${dest}" 532 dosym "${rdir}"/${f}/Headers "${dest}"
515 533
516 # Link normal headers as well. 534 # Link normal headers as well.
517 for hdr in "${D}/${QTLIBDIR}/${f}"/Headers/*; do 535 for hdr in "${D}/${QTLIBDIR}/${f}"/Headers/*; do
518 h=$(basename ${hdr}) 536 h=$(basename ${hdr})
519 dosym "${QTLIBDIR#${EPREFIX}}"/${f}/Headers/${h} "${QTHEADERDIR#${EPREFIX}}"/Qt/${h} 537 dosym "../${rdir}"/${f}/Headers/${h} \
538 "${QTHEADERDIR#${EPREFIX}}"/Qt/${h}
520 done 539 done
521 done 540 done
522 fi 541 fi
523} 542}
524 543

Legend:
Removed from v.1.124  
changed lines
  Added in v.1.127

  ViewVC Help
Powered by ViewVC 1.1.20