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

Contents of /eclass/gnome.org.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide annotations) (download)
Mon Aug 22 04:46:31 2011 UTC (2 years, 11 months ago) by vapier
Branch: MAIN
Changes since 1.13: +2 -4 lines
fix random bugs in eclass documentation, and convert to new @AUTHOR tag

1 eva 1.11 # Copyright 1999-2011 Gentoo Foundation
2 spider 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.14 # $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.13 2011/06/16 07:37:20 abcd Exp $
4 eva 1.11
5     # @ECLASS: gnome.org.eclass
6     # @MAINTAINER:
7     # gnome@gentoo.org
8 vapier 1.14 # @AUTHOR:
9 eva 1.11 # Authors: Spidler <spidler@gentoo.org> with help of carparski.
10     # eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org>
11     # @BLURB: Helper eclass for gnome.org hosted archives
12     # @DESCRIPTION:
13     # Provide a default SRC_URI for tarball hosted on gnome.org mirrors.
14    
15     inherit versionator
16    
17     # @ECLASS-VARIABLE: GNOME_TARBALL_SUFFIX
18     # @DESCRIPTION:
19 nirbheek 1.12 # Most projects hosted on gnome.org mirrors provide tarballs as tar.bz2 or
20     # tar.xz. This eclass defaults to bz2 for EAPI 0, 1, 2, 3 and defaults to xz for
21     # everything else. This is because the gnome mirrors are moving to only have xz
22     # tarballs for new releases.
23 abcd 1.13 if has "${EAPI:-0}" 0 1 2 3; then
24 nirbheek 1.12 : ${GNOME_TARBALL_SUFFIX:="bz2"}
25     else
26     : ${GNOME_TARBALL_SUFFIX:="xz"}
27     fi
28 eva 1.11
29     # @ECLASS-VARIABLE: GNOME_ORG_MODULE
30     # @DESCRIPTION:
31     # Name of the module as hosted on gnome.org mirrors.
32     # Leave unset if package name matches module name.
33     : ${GNOME_ORG_MODULE:=$PN}
34    
35     # @ECLASS-VARIABLE: GNOME_ORG_PVP
36     # @INTERNAL
37     # @DESCRIPTION:
38     # Major and minor numbers of the version number.
39     : ${GNOME_ORG_PVP:=$(get_version_component_range 1-2)}
40 spider 1.1
41 eva 1.11 SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
42 spider 1.1
43 eva 1.11 S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}"

  ViewVC Help
Powered by ViewVC 1.1.20