/[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.103 Revision 1.104
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.103 2011/12/10 17:28:16 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.104 2011/12/16 20:02:48 abcd 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.
449 QTPCDIR=${EPREFIX}/usr/$(get_libdir)/pkgconfig 449 QTPCDIR=${EPREFIX}/usr/$(get_libdir)/pkgconfig
450 QTDATADIR=${EPREFIX}/usr/share/qt4 450 QTDATADIR=${EPREFIX}/usr/share/qt4
451 QTDOCDIR=${EPREFIX}/usr/share/doc/qt-${PV} 451 QTDOCDIR=${EPREFIX}/usr/share/doc/qt-${PV}
452 QTHEADERDIR=${EPREFIX}/usr/include/qt4 452 QTHEADERDIR=${EPREFIX}/usr/include/qt4
453 QTPLUGINDIR=${QTLIBDIR}/plugins 453 QTPLUGINDIR=${QTLIBDIR}/plugins
454 QTIMPORTDIR=${QTLIBDIR}/imports
454 QTSYSCONFDIR=${EPREFIX}/etc/qt4 455 QTSYSCONFDIR=${EPREFIX}/etc/qt4
455 QTTRANSDIR=${QTDATADIR}/translations 456 QTTRANSDIR=${QTDATADIR}/translations
456 QTEXAMPLESDIR=${QTDATADIR}/examples 457 QTEXAMPLESDIR=${QTDATADIR}/examples
457 QTDEMOSDIR=${QTDATADIR}/demos 458 QTDEMOSDIR=${QTDATADIR}/demos
458 QT_INSTALL_PREFIX=${EPREFIX}/usr/$(get_libdir)/qt4 459 QT_INSTALL_PREFIX=${EPREFIX}/usr/$(get_libdir)/qt4
515 myconf+=" -platform $(qt_mkspecs_dir) -stl -verbose -largefile -confirm-license 516 myconf+=" -platform $(qt_mkspecs_dir) -stl -verbose -largefile -confirm-license
516 -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} 517 -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR}
517 -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} 518 -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR}
518 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} 519 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR}
519 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} 520 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR}
520 -demosdir ${QTDEMOSDIR} -silent -fast -opensource 521 -demosdir ${QTDEMOSDIR} -importdir ${QTIMPORTDIR} -silent -fast -opensource
521 ${exceptions} 522 ${exceptions}
522 -nomake examples -nomake demos" 523 -nomake examples -nomake demos"
523 524
524 echo "${myconf}" 525 echo "${myconf}"
525} 526}
534 einfo "Running qmake in: ${x}" 535 einfo "Running qmake in: ${x}"
535 # avoid running over the maximum argument number, bug #299810 536 # avoid running over the maximum argument number, bug #299810
536 { 537 {
537 echo "${S}"/mkspecs/common/*.conf 538 echo "${S}"/mkspecs/common/*.conf
538 find "${S}" -name '*.pr[io]' 539 find "${S}" -name '*.pr[io]'
539 } | xargs sed -i -e "s:\$\$\[QT_INSTALL_LIBS\]:${EPREFIX}/usr/$(get_libdir)/qt4:g" || die 540 } | xargs sed -i \
541 -e "s:\$\$\[QT_INSTALL_LIBS\]:${QTLIBDIR}:g" \
542 -e "s:\$\$\[QT_INSTALL_PLUGINS\]:${QTPLUGINDIR}:g" \
543 || die
540 "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed" 544 "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed"
541 popd >/dev/null 545 popd >/dev/null
542 done 546 done
543} 547}
544 548

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104

  ViewVC Help
Powered by ViewVC 1.1.20