/[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.7 Revision 1.11
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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.7 2010/07/31 14:40:14 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.11 2011/03/19 16:34:39 scarabeus Exp $
4 4
5# @ECLASS: qt4-r2.eclass 5# @ECLASS: qt4-r2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ben de Groot <yngwin@gentoo.org>, 7# Ben de Groot <yngwin@gentoo.org>,
8# Markos Chandras <hwoarang@gentoo.org>, 8# Markos Chandras <hwoarang@gentoo.org>,
12# @DESCRIPTION: 12# @DESCRIPTION:
13# This eclass contains various functions that may be useful when 13# This eclass contains various functions that may be useful when
14# dealing with packages using Qt4 libraries. Requires EAPI=2. 14# dealing with packages using Qt4 libraries. Requires EAPI=2.
15 15
16case ${EAPI} in 16case ${EAPI} in
17 2|3) : ;; 17 2|3|4) : ;;
18 *) DEPEND="EAPI-INCOMPATIBLE" ;; 18 *) die "EAPI=${EAPI} is not supported" ;;
19esac 19esac
20 20
21inherit base eutils multilib toolchain-funcs 21inherit base eutils multilib toolchain-funcs
22 22
23export XDG_CONFIG_HOME="${T}" 23export XDG_CONFIG_HOME="${T}"
243 done < <(find . -type f -name "*.pr[io]" -printf '%P\n' 2>/dev/null) 243 done < <(find . -type f -name "*.pr[io]" -printf '%P\n' 2>/dev/null)
244 244
245 [[ ${EAPI} == 2 ]] && use !prefix && EPREFIX= 245 [[ ${EAPI} == 2 ]] && use !prefix && EPREFIX=
246 246
247 "${EPREFIX}"/usr/bin/qmake \ 247 "${EPREFIX}"/usr/bin/qmake \
248 -makefile -nocache \ 248 -makefile \
249 -config ${CONFIG_ADD} \ 249 -config ${CONFIG_ADD} \
250 QTDIR="${EPREFIX}"/usr/$(get_libdir) \ 250 QTDIR="${EPREFIX}"/usr/$(get_libdir) \
251 QMAKE="${EPREFIX}"/usr/bin/qmake \ 251 QMAKE="${EPREFIX}"/usr/bin/qmake \
252 QMAKE_CC=$(tc-getCC) \ 252 QMAKE_CC="$(tc-getCC)" \
253 QMAKE_CXX=$(tc-getCXX) \ 253 QMAKE_CXX="$(tc-getCXX)" \
254 QMAKE_LINK=$(tc-getCXX) \ 254 QMAKE_LINK="$(tc-getCXX)" \
255 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \ 255 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
256 QMAKE_CFLAGS_DEBUG="${CFLAGS}" \ 256 QMAKE_CFLAGS_DEBUG="${CFLAGS}" \
257 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \ 257 QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
258 QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS}" \ 258 QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS}" \
259 QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \ 259 QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20