/[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.44 Revision 1.45
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.44 2009/08/11 14:44:16 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.45 2009/10/02 15:04:23 ayoy 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://qt.nokia.com/" 60HOMEPAGE="http://qt.nokia.com/"
61SRC_URI="http://download.qt.nokia.com/qt/source/${MY_P}.tar.bz2" 61SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.bz2"
62if version_is_at_least 4.5.3 ${PV} ; then
63 SRC_URI="${SRC_URI/bz2/gz}"
64fi
62 65
63case "${PV}" in 66case "${PV}" in
64 4.4.?) SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" ;; 67 4.4.?) SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" ;;
65 *) ;; 68 *) ;;
66esac 69esac
108# @FUNCTION: qt4-build_src_unpack 111# @FUNCTION: qt4-build_src_unpack
109# @DESCRIPTION: 112# @DESCRIPTION:
110# Unpacks the sources 113# Unpacks the sources
111qt4-build_src_unpack() { 114qt4-build_src_unpack() {
112 setqtenv 115 setqtenv
113 local target targets licenses 116 local target targets licenses tar_pkg tar_args
114 if version_is_at_least 4.5 ${PV} ; then 117 if version_is_at_least 4.5 ${PV} ; then
115 licenses="LICENSE.GPL3 LICENSE.LGPL" 118 licenses="LICENSE.GPL3 LICENSE.LGPL"
116 else 119 else
117 licenses="LICENSE.GPL2 LICENSE.GPL3" 120 licenses="LICENSE.GPL2 LICENSE.GPL3"
118 fi 121 fi
120 src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \ 123 src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \
121 ${QT4_EXTRACT_DIRECTORIES}; do 124 ${QT4_EXTRACT_DIRECTORIES}; do
122 targets="${targets} ${MY_P}/${target}" 125 targets="${targets} ${MY_P}/${target}"
123 done 126 done
124 127
125 echo tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets} 128 tar_pkg=${MY_P}.tar.bz2
126 tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets} 129 tar_args="xjpf"
130 if version_is_at_least 4.5.3 ${PV} ; then
131 tar_pkg=${tar_pkg/bz2/gz}
132 tar_args="xzpf"
133 fi
134
135 echo tar ${tar_args} "${DISTDIR}"/${tar_pkg} ${targets}
136 tar ${tar_args} "${DISTDIR}"/${tar_pkg} ${targets}
127 137
128 case "${PV}" in 138 case "${PV}" in
129 4.4.?) 139 4.4.?)
130 echo tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 140 echo tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2
131 tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 141 tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.20