/[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.1 Revision 1.3
1# Copyright 2009 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.1 2009/12/15 16:32:43 ayoy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.3 2010/01/21 19:11:31 spatz 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) : ;; 17 2|3) : ;;
18 *) DEPEND="EAPI-INCOMPATIBLE" ;; 18 *) DEPEND="EAPI-INCOMPATIBLE" ;;
19esac 19esac
20 20
21inherit base eutils multilib toolchain-funcs 21inherit base eutils multilib toolchain-funcs
22 22
240 eerror "An error occurred while processing ${file}" 240 eerror "An error occurred while processing ${file}"
241 die "eqmake4 failed to process '${file}'" 241 die "eqmake4 failed to process '${file}'"
242 fi 242 fi
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=
246
245 /usr/bin/qmake -makefile -nocache \ 247 "${EPREFIX}"/usr/bin/qmake -makefile -nocache \
246 QTDIR=/usr/$(get_libdir) \ 248 QTDIR="${EPREFIX}"/usr/$(get_libdir) \
247 QMAKE=/usr/bin/qmake \ 249 QMAKE="${EPREFIX}"/usr/bin/qmake \
248 QMAKE_CC=$(tc-getCC) \ 250 QMAKE_CC=$(tc-getCC) \
249 QMAKE_CXX=$(tc-getCXX) \ 251 QMAKE_CXX=$(tc-getCXX) \
250 QMAKE_LINK=$(tc-getCXX) \ 252 QMAKE_LINK=$(tc-getCXX) \
251 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \ 253 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
252 QMAKE_CFLAGS_DEBUG="${CFLAGS}" \ 254 QMAKE_CFLAGS_DEBUG="${CFLAGS}" \

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20