/[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.38 Revision 1.39
1# Copyright 2007-2009 Gentoo Foundation 1# Copyright 2007-2009 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.38 2009/06/06 22:43:27 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.39 2009/06/27 12:37:32 yngwin Exp $
4 4
5# @ECLASS: qt4-build.eclass 5# @ECLASS: qt4-build.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>,
56esac 56esac
57MY_P=qt-x11-${SRCTYPE}-${MY_PV} 57MY_P=qt-x11-${SRCTYPE}-${MY_PV}
58S=${WORKDIR}/${MY_P} 58S=${WORKDIR}/${MY_P}
59 59
60HOMEPAGE="http://www.qtsoftware.com/" 60HOMEPAGE="http://www.qtsoftware.com/"
61SRC_URI="http://download.qtsoftware.com/qt/source/${MY_P}.tar.bz2" 61SRC_URI="http://get.qtsoftware.com/qt/source/${MY_P}.tar.bz2"
62 62
63case "${PV}" in 63case "${PV}" in
64 4.4.?) SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" ;; 64 4.4.?) SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" ;;
65 *) ;; 65 *) ;;
66esac 66esac
216 216
217 sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ 217 sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
218 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ 218 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
219 -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ 219 -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
220 -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed" 220 -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed"
221 221
222 base_src_prepare 222 base_src_prepare
223} 223}
224 224
225# @FUNCTION: qt4-build_src_configure 225# @FUNCTION: qt4-build_src_configure
226# @DESCRIPTION: 226# @DESCRIPTION:
297 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} 297 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR}
298 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} 298 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR}
299 -demosdir ${QTDEMOSDIR} -silent -fast 299 -demosdir ${QTDEMOSDIR} -silent -fast
300 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions) 300 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions)
301 -reduce-relocations -nomake examples -nomake demos" 301 -reduce-relocations -nomake examples -nomake demos"
302 302
303 # Make eclass 4.5.{1,2} ready 303 # Make eclass 4.5.{1,2} ready
304 case "${MY_PV}" in 304 case "${MY_PV}" in
305 4.5.1 | 4.5.2) 305 4.5.1 | 4.5.2)
306 myconf="${myconf} -opensource" 306 myconf="${myconf} -opensource"
307 ;; 307 ;;
511 rmdir "${D}"/${QTLIBDIR}/pkgconfig 511 rmdir "${D}"/${QTLIBDIR}/pkgconfig
512} 512}
513 513
514# @FUNCTION: qt_use 514# @FUNCTION: qt_use
515# @USAGE: < flag > [ feature ] [ enableval ] 515# @USAGE: < flag > [ feature ] [ enableval ]
516# @DESCRIPTION: 516# @DESCRIPTION:
517# This will echo "${enableval}-${feature}" if <flag> is enabled, or 517# This will echo "${enableval}-${feature}" if <flag> is enabled, or
518# "-no-${feature} if the flag is disabled. If [feature] is not specified <flag> 518# "-no-${feature} if the flag is disabled. If [feature] is not specified <flag>
519# will be used for that. If [enableval] is not specified, it omits the 519# will be used for that. If [enableval] is not specified, it omits the
520# assignment-part 520# assignment-part
521qt_use() { 521qt_use() {
603 fi 603 fi
604} 604}
605 605
606# @FUNCTION: qt_mkspecs_dir 606# @FUNCTION: qt_mkspecs_dir
607# @RETURN: the specs-directory w/o path 607# @RETURN: the specs-directory w/o path
608# @DESCRIPTION: 608# @DESCRIPTION:
609# Allows us to define which mkspecs dir we want to use. 609# Allows us to define which mkspecs dir we want to use.
610qt_mkspecs_dir() { 610qt_mkspecs_dir() {
611 # Allows us to define which mkspecs dir we want to use. 611 # Allows us to define which mkspecs dir we want to use.
612 local spec 612 local spec
613 613

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20