public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in eclass: gnome.org.eclass
@ 2011-03-18  7:58 Gilles Dartiguelongue (eva)
  0 siblings, 0 replies; 4+ messages in thread
From: Gilles Dartiguelongue (eva) @ 2011-03-18  7:58 UTC (permalink / raw
  To: gentoo-commits

eva         11/03/18 07:58:09

  Modified:             gnome.org.eclass
  Log:
  Eclass documentation and additional variables

Revision  Changes    Path
1.11                 eclass/gnome.org.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?r1=1.10&r2=1.11

Index: gnome.org.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- gnome.org.eclass	11 Jul 2005 15:08:06 -0000	1.10
+++ gnome.org.eclass	18 Mar 2011 07:58:09 -0000	1.11
@@ -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}"






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: gnome.org.eclass
@ 2011-06-16  5:50 Nirbheek Chauhan (nirbheek)
  0 siblings, 0 replies; 4+ messages in thread
From: Nirbheek Chauhan (nirbheek) @ 2011-06-16  5:50 UTC (permalink / raw
  To: gentoo-commits

nirbheek    11/06/16 05:50:44

  Modified:             gnome.org.eclass
  Log:
  Default to .tar.xz for ebuilds with EAPI >=4

Revision  Changes    Path
1.12                 eclass/gnome.org.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?r1=1.11&r2=1.12

Index: gnome.org.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- gnome.org.eclass	18 Mar 2011 07:58:09 -0000	1.11
+++ gnome.org.eclass	16 Jun 2011 05:50:44 -0000	1.12
@@ -1,6 +1,6 @@
 # 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.11 2011/03/18 07:58:09 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.12 2011/06/16 05:50:44 nirbheek Exp $
 
 # @ECLASS: gnome.org.eclass
 # @MAINTAINER:
@@ -18,9 +18,15 @@
 
 # @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"}
+# Most projects hosted on gnome.org mirrors provide tarballs as tar.bz2 or
+# tar.xz. This eclass defaults to bz2 for EAPI 0, 1, 2, 3 and defaults to xz for
+# everything else. This is because the gnome mirrors are moving to only have xz
+# tarballs for new releases.
+if has "${EAPI}" 0 1 2 3; then
+	: ${GNOME_TARBALL_SUFFIX:="bz2"}
+else
+	: ${GNOME_TARBALL_SUFFIX:="xz"}
+fi
 
 # @ECLASS-VARIABLE: GNOME_ORG_MODULE
 # @DESCRIPTION:






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: gnome.org.eclass
@ 2011-06-16  7:37 Jonathan Callen (abcd)
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Callen (abcd) @ 2011-06-16  7:37 UTC (permalink / raw
  To: gentoo-commits

abcd        11/06/16 07:37:20

  Modified:             gnome.org.eclass
  Log:
  Fix gnome.org.eclass for unset EAPI (EAPI=0)

Revision  Changes    Path
1.13                 eclass/gnome.org.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?rev=1.13&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?rev=1.13&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?r1=1.12&r2=1.13

Index: gnome.org.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- gnome.org.eclass	16 Jun 2011 05:50:44 -0000	1.12
+++ gnome.org.eclass	16 Jun 2011 07:37:20 -0000	1.13
@@ -1,6 +1,6 @@
 # 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.12 2011/06/16 05:50:44 nirbheek Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.13 2011/06/16 07:37:20 abcd Exp $
 
 # @ECLASS: gnome.org.eclass
 # @MAINTAINER:
@@ -22,7 +22,7 @@
 # tar.xz. This eclass defaults to bz2 for EAPI 0, 1, 2, 3 and defaults to xz for
 # everything else. This is because the gnome mirrors are moving to only have xz
 # tarballs for new releases.
-if has "${EAPI}" 0 1 2 3; then
+if has "${EAPI:-0}" 0 1 2 3; then
 	: ${GNOME_TARBALL_SUFFIX:="bz2"}
 else
 	: ${GNOME_TARBALL_SUFFIX:="xz"}






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in eclass: gnome.org.eclass
@ 2011-09-12 15:54 Pacho Ramos (pacho)
  0 siblings, 0 replies; 4+ messages in thread
From: Pacho Ramos (pacho) @ 2011-09-12 15:54 UTC (permalink / raw
  To: gentoo-commits

pacho       11/09/12 15:54:53

  Modified:             gnome.org.eclass
  Log:
  Add xz-utils to DEPEND when  == xz, bug #380521 by Alexandre Rostovtsev.

Revision  Changes    Path
1.15                 eclass/gnome.org.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome.org.eclass?r1=1.14&r2=1.15

Index: gnome.org.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- gnome.org.eclass	22 Aug 2011 04:46:31 -0000	1.14
+++ gnome.org.eclass	12 Sep 2011 15:54:53 -0000	1.15
@@ -1,6 +1,6 @@
 # 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.14 2011/08/22 04:46:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome.org.eclass,v 1.15 2011/09/12 15:54:53 pacho Exp $
 
 # @ECLASS: gnome.org.eclass
 # @MAINTAINER:
@@ -26,6 +26,12 @@
 	: ${GNOME_TARBALL_SUFFIX:="xz"}
 fi
 
+# Even though xz-utils are in @system, they must still be added to DEPEND; see
+# http://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml
+if [[ ${GNOME_TARBALL_SUFFIX} == "xz" ]]; then
+	DEPEND="${DEPEND} app-arch/xz-utils"
+fi
+
 # @ECLASS-VARIABLE: GNOME_ORG_MODULE
 # @DESCRIPTION:
 # Name of the module as hosted on gnome.org mirrors.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-12 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-16  7:37 [gentoo-commits] gentoo-x86 commit in eclass: gnome.org.eclass Jonathan Callen (abcd)
  -- strict thread matches above, loose matches on Subject: below --
2011-09-12 15:54 Pacho Ramos (pacho)
2011-06-16  5:50 Nirbheek Chauhan (nirbheek)
2011-03-18  7:58 Gilles Dartiguelongue (eva)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox