/[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.2 Revision 1.11
1# Copyright 1999-2002 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.2 2002/09/23 21:13:58 spider Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.11 2011/03/18 07:58:09 eva Exp $
4 4
5# Authors: 5# @ECLASS: gnome.org.eclass
6# Spidler <spidler@gentoo.org> 6# @MAINTAINER:
7# with help of carparski. 7# gnome@gentoo.org
8#
9# @CODE@
10# Authors: Spidler <spidler@gentoo.org> with help of carparski.
11# eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org>
12# @CODE@
13# @BLURB: Helper eclass for gnome.org hosted archives
14# @DESCRIPTION:
15# Provide a default SRC_URI for tarball hosted on gnome.org mirrors.
8 16
9# Gnome ECLASS. mainly SRC_URI settings 17inherit versionator
10 18
11ECLASS="gnome.org" 19# @ECLASS-VARIABLE: GNOME_TARBALL_SUFFIX
12INHERITED="$INHERITED $ECLASS" 20# @DESCRIPTION:
21# Most projects hosted on gnome.org mirrors provide tarballs as tar.gz or
22# tar.bz2. This eclass defaults to bz2 which is often smaller in size.
23: ${GNOME_TARBALL_SUFFIX:="bz2"}
13 24
14PVP=($(echo " $PV " | sed 's:[-\._]: :g')) 25# @ECLASS-VARIABLE: GNOME_ORG_MODULE
15SRC_URI="mirror://gnome/sources/${PN}/${PVP[0]}.${PVP[1]}/${P}.tar.bz2" 26# @DESCRIPTION:
27# Name of the module as hosted on gnome.org mirrors.
28# Leave unset if package name matches module name.
29: ${GNOME_ORG_MODULE:=$PN}
16 30
31# @ECLASS-VARIABLE: GNOME_ORG_PVP
32# @INTERNAL
33# @DESCRIPTION:
34# Major and minor numbers of the version number.
35: ${GNOME_ORG_PVP:=$(get_version_component_range 1-2)}
36
37SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
38
39S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20