Gentoo Archives: gentoo-commits

From: "Dominik Kapusta (ayoy)" <ayoy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: qt4-build.eclass
Date: Fri, 02 Oct 2009 15:04:25
Message-Id: E1MtjgF-0006nU-Jn@stork.gentoo.org
1 ayoy 09/10/02 15:04:23
2
3 Modified: qt4-build.eclass
4 Log:
5 Switching to gzip packages like Nokia does starting from 4.5.3
6
7 Revision Changes Path
8 1.45 eclass/qt4-build.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?rev=1.45&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?rev=1.45&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?r1=1.44&r2=1.45
13
14 Index: qt4-build.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v
17 retrieving revision 1.44
18 retrieving revision 1.45
19 diff -u -r1.44 -r1.45
20 --- qt4-build.eclass 11 Aug 2009 14:44:16 -0000 1.44
21 +++ qt4-build.eclass 2 Oct 2009 15:04:23 -0000 1.45
22 @@ -1,6 +1,6 @@
23 # Copyright 2007-2009 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.44 2009/08/11 14:44:16 hwoarang Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.45 2009/10/02 15:04:23 ayoy Exp $
27
28 # @ECLASS: qt4-build.eclass
29 # @MAINTAINER:
30 @@ -58,7 +58,10 @@
31 S=${WORKDIR}/${MY_P}
32
33 HOMEPAGE="http://qt.nokia.com/"
34 -SRC_URI="http://download.qt.nokia.com/qt/source/${MY_P}.tar.bz2"
35 +SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.bz2"
36 +if version_is_at_least 4.5.3 ${PV} ; then
37 + SRC_URI="${SRC_URI/bz2/gz}"
38 +fi
39
40 case "${PV}" in
41 4.4.?) SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" ;;
42 @@ -110,7 +113,7 @@
43 # Unpacks the sources
44 qt4-build_src_unpack() {
45 setqtenv
46 - local target targets licenses
47 + local target targets licenses tar_pkg tar_args
48 if version_is_at_least 4.5 ${PV} ; then
49 licenses="LICENSE.GPL3 LICENSE.LGPL"
50 else
51 @@ -122,8 +125,15 @@
52 targets="${targets} ${MY_P}/${target}"
53 done
54
55 - echo tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets}
56 - tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets}
57 + tar_pkg=${MY_P}.tar.bz2
58 + tar_args="xjpf"
59 + if version_is_at_least 4.5.3 ${PV} ; then
60 + tar_pkg=${tar_pkg/bz2/gz}
61 + tar_args="xzpf"
62 + fi
63 +
64 + echo tar ${tar_args} "${DISTDIR}"/${tar_pkg} ${targets}
65 + tar ${tar_args} "${DISTDIR}"/${tar_pkg} ${targets}
66
67 case "${PV}" in
68 4.4.?)