/[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.8 Revision 1.9
1# Copyright 2007-2008 Gentoo Foundation 1# Copyright 2007-2008 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.8 2008/03/06 01:23:51 ingmar Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.9 2008/03/06 14:44:13 zlin Exp $
4 4
5# @ECLASS: qt4-build.eclass 5# @ECLASS: qt4-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Caleb Tennis <caleb@gentoo.org> 7# Caleb Tennis <caleb@gentoo.org>
8# @BLURB: Eclass for Qt4 split ebuilds. 8# @BLURB: Eclass for Qt4 split ebuilds.
163# @DESCRIPTION: 163# @DESCRIPTION:
164# List variables that should be defined at the top of QtCore/qconfig.h 164# List variables that should be defined at the top of QtCore/qconfig.h
165QCONFIG_DEFINE="${QCONFIG_DEFINE:-}" 165QCONFIG_DEFINE="${QCONFIG_DEFINE:-}"
166 166
167install_qconfigs() { 167install_qconfigs() {
168 if [[ -n ${QCONFIG_ADD} || -n ${QCONFIG_REMOVE} || -n ${QCONFIG_DEFINE} ]]; then
169 local x 168 local x
169 if [[ -n ${QCONFIG_ADD} || -n ${QCONFIG_REMOVE} ]]; then
170 for x in QCONFIG_ADD QCONFIG_REMOVE; do 170 for x in QCONFIG_ADD QCONFIG_REMOVE; do
171 [[ -n ${!x} ]] && echo ${x}=${!x} >> "${T}"/${PN}-qconfig.pri 171 [[ -n ${!x} ]] && echo ${x}=${!x} >> "${T}"/${PN}-qconfig.pri
172 done 172 done
173 insinto ${QTDATADIR}/mkspecs/gentoo 173 insinto ${QTDATADIR}/mkspecs/gentoo
174 doins "${T}"/${PN}-qconfig.pri || die "installing ${PN}-qconfig.pri failed" 174 doins "${T}"/${PN}-qconfig.pri || die "installing ${PN}-qconfig.pri failed"
175 fi
175 176
177 if [[ -n ${QCONFIG_DEFINE} ]]; then
176 for x in ${QCONFIG_DEFINE}; do 178 for x in ${QCONFIG_DEFINE}; do
177 echo "#define ${x}" >> "${T}"/gentoo-${PN}-qconfig.h 179 echo "#define ${x}" >> "${T}"/gentoo-${PN}-qconfig.h
178 done 180 done
179 insinto ${QTHEADERDIR}/Gentoo 181 insinto ${QTHEADERDIR}/Gentoo
180 doins "${T}"/gentoo-${PN}-qconfig.h || die "installing ${PN}-qconfig.h failed" 182 doins "${T}"/gentoo-${PN}-qconfig.h || die "installing ${PN}-qconfig.h failed"

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20