/[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.4 Revision 1.13
1# Copyright 1999-2003 Gentoo Technologies, Inc. 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.4 2003/02/16 04:26:21 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.13 2011/06/16 07:37:20 abcd Exp $
4
5# @ECLASS: gnome.org.eclass
6# @MAINTAINER:
7# gnome@gentoo.org
4# 8#
5# Authors: 9# @CODE@
6# Spidler <spidler@gentoo.org> 10# Authors: Spidler <spidler@gentoo.org> with help of carparski.
7# with help of carparski. 11# eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org>
8# 12# @CODE@
9# Gnome ECLASS. mainly SRC_URI settings 13# @BLURB: Helper eclass for gnome.org hosted archives
14# @DESCRIPTION:
15# Provide a default SRC_URI for tarball hosted on gnome.org mirrors.
10 16
11ECLASS="gnome.org" 17inherit versionator
12INHERITED="$INHERITED $ECLASS"
13 18
14[ -z "${GNOME_TARBALL_SUFFIX}" ] && export GNOME_TARBALL_SUFFIX="bz2" 19# @ECLASS-VARIABLE: GNOME_TARBALL_SUFFIX
15PVP=($(echo " $PV " | sed 's:[-\._]: :g')) 20# @DESCRIPTION:
16SRC_URI="mirror://gnome/sources/${PN}/${PVP[0]}.${PVP[1]}/${P}.tar.${GNOME_TARBALL_SUFFIX}" 21# 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
23# everything else. This is because the gnome mirrors are moving to only have xz
24# tarballs for new releases.
25if has "${EAPI:-0}" 0 1 2 3; then
26 : ${GNOME_TARBALL_SUFFIX:="bz2"}
27else
28 : ${GNOME_TARBALL_SUFFIX:="xz"}
29fi
17 30
31# @ECLASS-VARIABLE: GNOME_ORG_MODULE
32# @DESCRIPTION:
33# Name of the module as hosted on gnome.org mirrors.
34# Leave unset if package name matches module name.
35: ${GNOME_ORG_MODULE:=$PN}
36
37# @ECLASS-VARIABLE: GNOME_ORG_PVP
38# @INTERNAL
39# @DESCRIPTION:
40# Major and minor numbers of the version number.
41: ${GNOME_ORG_PVP:=$(get_version_component_range 1-2)}
42
43SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
44
45S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20