diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2011-03-18 07:58:09 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2011-03-18 07:58:09 +0000 |
commit | c35089e5ad70b497d17e36f997895b3658ae548f (patch) | |
tree | eac89875a0802f68c2264ee56eba3674feab9f26 /eclass/gnome.org.eclass | |
parent | Version bump. (diff) | |
download | gentoo-2-c35089e5ad70b497d17e36f997895b3658ae548f.tar.gz gentoo-2-c35089e5ad70b497d17e36f997895b3658ae548f.tar.bz2 gentoo-2-c35089e5ad70b497d17e36f997895b3658ae548f.zip |
Eclass documentation and additional variables
Diffstat (limited to 'eclass/gnome.org.eclass')
-rw-r--r-- | eclass/gnome.org.eclass | 45 |
1 files changed, 35 insertions, 10 deletions
diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass index ffb8de3fe239..537e041da959 100644 --- a/eclass/gnome.org.eclass +++ b/eclass/gnome.org.eclass @@ -1,14 +1,39 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.10 2005/07/11 15:08:06 swegener Exp $ -# -# Authors: -# Spidler <spidler@gentoo.org> -# with help of carparski. +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.11 2011/03/18 07:58:09 eva Exp $ + +# @ECLASS: gnome.org.eclass +# @MAINTAINER: +# gnome@gentoo.org # -# Gnome ECLASS. mainly SRC_URI settings +# @CODE@ +# Authors: Spidler <spidler@gentoo.org> with help of carparski. +# eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org> +# @CODE@ +# @BLURB: Helper eclass for gnome.org hosted archives +# @DESCRIPTION: +# Provide a default SRC_URI for tarball hosted on gnome.org mirrors. + +inherit versionator + +# @ECLASS-VARIABLE: GNOME_TARBALL_SUFFIX +# @DESCRIPTION: +# Most projects hosted on gnome.org mirrors provide tarballs as tar.gz or +# tar.bz2. This eclass defaults to bz2 which is often smaller in size. +: ${GNOME_TARBALL_SUFFIX:="bz2"} + +# @ECLASS-VARIABLE: GNOME_ORG_MODULE +# @DESCRIPTION: +# Name of the module as hosted on gnome.org mirrors. +# Leave unset if package name matches module name. +: ${GNOME_ORG_MODULE:=$PN} + +# @ECLASS-VARIABLE: GNOME_ORG_PVP +# @INTERNAL +# @DESCRIPTION: +# Major and minor numbers of the version number. +: ${GNOME_ORG_PVP:=$(get_version_component_range 1-2)} +SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}" -[ -z "${GNOME_TARBALL_SUFFIX}" ] && export GNOME_TARBALL_SUFFIX="bz2" -PVP=(${PV//[-\._]/ }) -SRC_URI="mirror://gnome/sources/${PN}/${PVP[0]}.${PVP[1]}/${P}.tar.${GNOME_TARBALL_SUFFIX}" +S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}" |