/[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.146 Revision 1.147
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.146 2013/04/28 16:15:33 zmedico Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.147 2013/07/06 07:57:14 pesa 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.
9# @DESCRIPTION: 9# @DESCRIPTION:
10# This eclass contains various functions that are used when building Qt4. 10# This eclass contains various functions that are used when building Qt4.
11 11
12case ${EAPI} in 12case ${EAPI} in
13 3|4|5) : ;; 13 4|5) : ;;
14 *) die "qt4-build.eclass: unsupported EAPI=${EAPI:-0}" ;; 14 *) die "qt4-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
15esac 15esac
16 16
17inherit eutils flag-o-matic multilib toolchain-funcs versionator 17inherit eutils flag-o-matic multilib toolchain-funcs versionator
18 18
34 EGIT_REPO_URI="git://gitorious.org/qt/qt.git 34 EGIT_REPO_URI="git://gitorious.org/qt/qt.git
35 https://git.gitorious.org/qt/qt.git" 35 https://git.gitorious.org/qt/qt.git"
36 EGIT_BRANCH=${PV%.9999} 36 EGIT_BRANCH=${PV%.9999}
37 ;; 37 ;;
38 release) 38 release)
39 SRC_URI="http://releases.qt-project.org/qt4/source/${MY_P}.tar.gz" 39 SRC_URI="http://download.qt-project.org/official_releases/qt/${PV%.*}/${PV}/${MY_P}.tar.gz"
40 ;; 40 ;;
41esac 41esac
42 42
43IUSE="aqua debug pch" 43IUSE="aqua debug pch"
44[[ ${CATEGORY}/${PN} != dev-qt/qtwebkit ]] && IUSE+=" c++0x" 44[[ ${CATEGORY}/${PN} != dev-qt/qtwebkit ]] && IUSE+=" c++0x"
550 AR="$(tc-getAR) cqs" \ 550 AR="$(tc-getAR) cqs" \
551 CC="$(tc-getCC)" \ 551 CC="$(tc-getCC)" \
552 CXX="$(tc-getCXX)" \ 552 CXX="$(tc-getCXX)" \
553 LINK="$(tc-getCXX)" \ 553 LINK="$(tc-getCXX)" \
554 RANLIB=":" \ 554 RANLIB=":" \
555 STRIP=":" \ 555 STRIP=":"
556 || die "emake failed"
557 popd >/dev/null || die 556 popd >/dev/null || die
558 done 557 done
559} 558}
560 559
561# @FUNCTION: install_directories 560# @FUNCTION: install_directories
564# @DESCRIPTION: 563# @DESCRIPTION:
565# Runs emake install in the given directories, which are separated by spaces. 564# Runs emake install in the given directories, which are separated by spaces.
566install_directories() { 565install_directories() {
567 for x in "$@"; do 566 for x in "$@"; do
568 pushd "${S}"/${x} >/dev/null || die 567 pushd "${S}"/${x} >/dev/null || die
569 emake INSTALL_ROOT="${D}" install || die "emake install failed" 568 emake INSTALL_ROOT="${D}" install
570 popd >/dev/null || die 569 popd >/dev/null || die
571 done 570 done
572} 571}
573 572
574# @ECLASS-VARIABLE: QCONFIG_ADD 573# @ECLASS-VARIABLE: QCONFIG_ADD
595 if [[ -n ${QCONFIG_ADD} || -n ${QCONFIG_REMOVE} ]]; then 594 if [[ -n ${QCONFIG_ADD} || -n ${QCONFIG_REMOVE} ]]; then
596 for x in QCONFIG_ADD QCONFIG_REMOVE; do 595 for x in QCONFIG_ADD QCONFIG_REMOVE; do
597 [[ -n ${!x} ]] && echo ${x}=${!x} >> "${T}"/${PN}-qconfig.pri 596 [[ -n ${!x} ]] && echo ${x}=${!x} >> "${T}"/${PN}-qconfig.pri
598 done 597 done
599 insinto ${QTDATADIR#${EPREFIX}}/mkspecs/gentoo 598 insinto ${QTDATADIR#${EPREFIX}}/mkspecs/gentoo
600 doins "${T}"/${PN}-qconfig.pri || die "installing ${PN}-qconfig.pri failed" 599 doins "${T}"/${PN}-qconfig.pri
601 fi 600 fi
602 601
603 if [[ -n ${QCONFIG_DEFINE} ]]; then 602 if [[ -n ${QCONFIG_DEFINE} ]]; then
604 for x in ${QCONFIG_DEFINE}; do 603 for x in ${QCONFIG_DEFINE}; do
605 echo "#define ${x}" >> "${T}"/gentoo-${PN}-qconfig.h 604 echo "#define ${x}" >> "${T}"/gentoo-${PN}-qconfig.h
606 done 605 done
607 insinto ${QTHEADERDIR#${EPREFIX}}/Gentoo 606 insinto ${QTHEADERDIR#${EPREFIX}}/Gentoo
608 doins "${T}"/gentoo-${PN}-qconfig.h || die "installing ${PN}-qconfig.h failed" 607 doins "${T}"/gentoo-${PN}-qconfig.h
609 fi 608 fi
610} 609}
611 610
612# @FUNCTION: generate_qconfigs 611# @FUNCTION: generate_qconfigs
613# @INTERNAL 612# @INTERNAL

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147

  ViewVC Help
Powered by ViewVC 1.1.20