Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Donnie Berkholz (dberkholz)" <dberkholz@g.o>
Subject: gentoo-x86 commit in eclass: x-modular.eclass
Date: Tue, 27 May 2008 18:42:33 +0000
dberkholz    08/05/27 18:42:33

  Modified:             x-modular.eclass
  Log:
  Allow ebuilds to override the module they download from, so we need less special-casing in here.

Revision  Changes    Path
1.99                 eclass/x-modular.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?rev=1.99&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?rev=1.99&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?r1=1.98&r2=1.99

Index: x-modular.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -r1.98 -r1.99
--- x-modular.eclass	27 May 2008 18:40:19 -0000	1.98
+++ x-modular.eclass	27 May 2008 18:42:33 -0000	1.99
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.98 2008/05/27 18:40:19 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.99 2008/05/27 18:42:33 dberkholz Exp $
 #
 # @ECLASS: x-modular.eclass
 # @MAINTAINER:
@@ -45,27 +45,35 @@
 
 # Set up SRC_URI for individual modular releases
 BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual"
-if [[ ${CATEGORY} = x11-apps ]] || [[ ${CATEGORY} = x11-wm ]]; then
-	MODULE="app"
-elif [[ ${CATEGORY} = app-doc ]]; then
-	MODULE="doc"
-# x11-misc contains data and util, x11-themes contains data
-elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then
-	if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then
-		MODULE="data"
-	else
-		MODULE="util"
+if [[ -z ${MODULE} ]]; then
+# @ECLASS-VARIABLE: MODULE
+# @DESCRIPTION:
+# The subdirectory to download source from. Possible settings are app,
+# doc, data, util, driver, font, lib, proto, xserver. Set above the
+# inherit to override the default autoconfigured module.
+	MODULE=""
+	if [[ ${CATEGORY} = x11-apps ]] || [[ ${CATEGORY} = x11-wm ]]; then
+		MODULE="app"
+	elif [[ ${CATEGORY} = app-doc ]]; then
+		MODULE="doc"
+	# x11-misc contains data and util, x11-themes contains data
+	elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then
+		if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then
+			MODULE="data"
+		else
+			MODULE="util"
+		fi
+	elif [[ ${CATEGORY} = x11-drivers ]]; then
+		MODULE="driver"
+	elif [[ ${CATEGORY} = media-fonts ]]; then
+		MODULE="font"
+	elif [[ ${CATEGORY} = x11-libs ]]; then
+		MODULE="lib"
+	elif [[ ${CATEGORY} = x11-proto ]]; then
+		MODULE="proto"
+	elif [[ ${CATEGORY} = x11-base ]]; then
+		MODULE="xserver"
 	fi
-elif [[ ${CATEGORY} = x11-drivers ]]; then
-	MODULE="driver"
-elif [[ ${CATEGORY} = media-fonts ]]; then
-	MODULE="font"
-elif [[ ${CATEGORY} = x11-libs ]]; then
-	MODULE="lib"
-elif [[ ${CATEGORY} = x11-proto ]]; then
-	MODULE="proto"
-elif [[ ${CATEGORY} = x11-base ]]; then
-	MODULE="xserver"
 fi
 
 if [[ -n ${GIT_ECLASS} ]]; then



-- 
gentoo-commits@g.o mailing list


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in eclass: x-modular.eclass
Next by thread:
gentoo-x86 commit in eclass: x-modular.eclass
Previous by date:
gentoo-x86 commit in eclass: x-modular.eclass
Next by date:
gentoo-x86 commit in sys-fs/btrfs: btrfs-0.14.ebuild ChangeLog


Updated Jun 10, 2010

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.