summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDominik Kapusta <ayoy@gentoo.org>2009-10-02 15:04:23 +0000
committerDominik Kapusta <ayoy@gentoo.org>2009-10-02 15:04:23 +0000
commit350e8ee94b594828a15823558b1752e7032d7a97 (patch)
treee83cc93bd38a7fe3bc9501339a1b60bc6a77a441 /eclass
parentMarked ppc64 stable for bug #284776. (diff)
downloadgentoo-2-350e8ee94b594828a15823558b1752e7032d7a97.tar.gz
gentoo-2-350e8ee94b594828a15823558b1752e7032d7a97.tar.bz2
gentoo-2-350e8ee94b594828a15823558b1752e7032d7a97.zip
Switching to gzip packages like Nokia does starting from 4.5.3
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt4-build.eclass20
1 files changed, 15 insertions, 5 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass
index 6ec5a7fb60a4..a3a962cbc48d 100644
--- a/eclass/qt4-build.eclass
+++ b/eclass/qt4-build.eclass
@@ -1,6 +1,6 @@
# Copyright 2007-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.44 2009/08/11 14:44:16 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.45 2009/10/02 15:04:23 ayoy Exp $
# @ECLASS: qt4-build.eclass
# @MAINTAINER:
@@ -58,7 +58,10 @@ MY_P=qt-x11-${SRCTYPE}-${MY_PV}
S=${WORKDIR}/${MY_P}
HOMEPAGE="http://qt.nokia.com/"
-SRC_URI="http://download.qt.nokia.com/qt/source/${MY_P}.tar.bz2"
+SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.bz2"
+if version_is_at_least 4.5.3 ${PV} ; then
+ SRC_URI="${SRC_URI/bz2/gz}"
+fi
case "${PV}" in
4.4.?) SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" ;;
@@ -110,7 +113,7 @@ qt4-build_pkg_setup() {
# Unpacks the sources
qt4-build_src_unpack() {
setqtenv
- local target targets licenses
+ local target targets licenses tar_pkg tar_args
if version_is_at_least 4.5 ${PV} ; then
licenses="LICENSE.GPL3 LICENSE.LGPL"
else
@@ -122,8 +125,15 @@ qt4-build_src_unpack() {
targets="${targets} ${MY_P}/${target}"
done
- echo tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets}
- tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets}
+ tar_pkg=${MY_P}.tar.bz2
+ tar_args="xjpf"
+ if version_is_at_least 4.5.3 ${PV} ; then
+ tar_pkg=${tar_pkg/bz2/gz}
+ tar_args="xzpf"
+ fi
+
+ echo tar ${tar_args} "${DISTDIR}"/${tar_pkg} ${targets}
+ tar ${tar_args} "${DISTDIR}"/${tar_pkg} ${targets}
case "${PV}" in
4.4.?)