* [gentoo-dev] Eclass review: gnome.org
@ 2011-03-08 11:28 Gilles Dartiguelongue
0 siblings, 0 replies; only message in thread
From: Gilles Dartiguelongue @ 2011-03-08 11:28 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 553 bytes --]
Hi list,
here is an updated revision of gnome.org.eclass.
Changes are:
* eclass documentation
* use versionator instead of bash expression (also it worked for
years, the change is done for consistency with versionator use
case policy)
* new eclass variable, GNOME_ORG_MODULE, useful for gnome hosted
projects which are not named like in portage, examples: GConf2,
libsoup-gnome, nm-applet, etc
This eclass is very short so I'm attaching it in full.
--
Gilles Dartiguelongue <eva@gentoo.org>
Gentoo
[-- Attachment #2: gnome.org.eclass --]
[-- Type: text/plain, Size: 1317 bytes --]
# 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 $
# @ECLASS: gnome.org.eclass
# @MAINTAINER:
# gnome@gentoo.org
#
# @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_MAJORV
# @INTERNAL
# @DESCRIPTION:
# Major and minor numbers of the version number.
: ${GNOME_ORG_MAJORV:=$(get_version_component 1-2)}
SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_MAJORV}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-08 11:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08 11:28 [gentoo-dev] Eclass review: gnome.org Gilles Dartiguelongue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox