/[gentoo-x86]/eclass/gnome.org.eclass
Gentoo

Diff of /eclass/gnome.org.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.14
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/gnome.org.eclass,v 1.12 2011/06/16 05:50:44 nirbheek Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.14 2011/08/22 04:46:31 vapier Exp $
4 4
5# @ECLASS: gnome.org.eclass 5# @ECLASS: gnome.org.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# gnome@gentoo.org 7# gnome@gentoo.org
8# 8# @AUTHOR:
9# @CODE@
10# Authors: Spidler <spidler@gentoo.org> with help of carparski. 9# Authors: Spidler <spidler@gentoo.org> with help of carparski.
11# eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org> 10# eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org>
12# @CODE@
13# @BLURB: Helper eclass for gnome.org hosted archives 11# @BLURB: Helper eclass for gnome.org hosted archives
14# @DESCRIPTION: 12# @DESCRIPTION:
15# Provide a default SRC_URI for tarball hosted on gnome.org mirrors. 13# Provide a default SRC_URI for tarball hosted on gnome.org mirrors.
16 14
17inherit versionator 15inherit versionator
20# @DESCRIPTION: 18# @DESCRIPTION:
21# Most projects hosted on gnome.org mirrors provide tarballs as tar.bz2 or 19# Most projects hosted on gnome.org mirrors provide tarballs as tar.bz2 or
22# tar.xz. This eclass defaults to bz2 for EAPI 0, 1, 2, 3 and defaults to xz for 20# tar.xz. This eclass defaults to bz2 for EAPI 0, 1, 2, 3 and defaults to xz for
23# everything else. This is because the gnome mirrors are moving to only have xz 21# everything else. This is because the gnome mirrors are moving to only have xz
24# tarballs for new releases. 22# tarballs for new releases.
25if has "${EAPI}" 0 1 2 3; then 23if has "${EAPI:-0}" 0 1 2 3; then
26 : ${GNOME_TARBALL_SUFFIX:="bz2"} 24 : ${GNOME_TARBALL_SUFFIX:="bz2"}
27else 25else
28 : ${GNOME_TARBALL_SUFFIX:="xz"} 26 : ${GNOME_TARBALL_SUFFIX:="xz"}
29fi 27fi
30 28

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20