1 |
dberkholz 08/05/28 01:48:11 |
2 |
|
3 |
Modified: x-modular.eclass |
4 |
Log: |
5 |
Change the MODULE setup to a case statement. Thanks to Bo Ørsted Andresen, who finally got me to do it. |
6 |
|
7 |
Revision Changes Path |
8 |
1.100 eclass/x-modular.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?rev=1.100&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?rev=1.100&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/x-modular.eclass?r1=1.99&r2=1.100 |
13 |
|
14 |
Index: x-modular.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v |
17 |
retrieving revision 1.99 |
18 |
retrieving revision 1.100 |
19 |
diff -u -r1.99 -r1.100 |
20 |
--- x-modular.eclass 27 May 2008 18:42:33 -0000 1.99 |
21 |
+++ x-modular.eclass 28 May 2008 01:48:10 -0000 1.100 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2005 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.99 2008/05/27 18:42:33 dberkholz Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.100 2008/05/28 01:48:10 dberkholz Exp $ |
27 |
# |
28 |
# @ECLASS: x-modular.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -45,36 +45,22 @@ |
31 |
|
32 |
# Set up SRC_URI for individual modular releases |
33 |
BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual" |
34 |
-if [[ -z ${MODULE} ]]; then |
35 |
# @ECLASS-VARIABLE: MODULE |
36 |
# @DESCRIPTION: |
37 |
# The subdirectory to download source from. Possible settings are app, |
38 |
# doc, data, util, driver, font, lib, proto, xserver. Set above the |
39 |
# inherit to override the default autoconfigured module. |
40 |
- MODULE="" |
41 |
- if [[ ${CATEGORY} = x11-apps ]] || [[ ${CATEGORY} = x11-wm ]]; then |
42 |
- MODULE="app" |
43 |
- elif [[ ${CATEGORY} = app-doc ]]; then |
44 |
- MODULE="doc" |
45 |
- # x11-misc contains data and util, x11-themes contains data |
46 |
- elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then |
47 |
- if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then |
48 |
- MODULE="data" |
49 |
- else |
50 |
- MODULE="util" |
51 |
- fi |
52 |
- elif [[ ${CATEGORY} = x11-drivers ]]; then |
53 |
- MODULE="driver" |
54 |
- elif [[ ${CATEGORY} = media-fonts ]]; then |
55 |
- MODULE="font" |
56 |
- elif [[ ${CATEGORY} = x11-libs ]]; then |
57 |
- MODULE="lib" |
58 |
- elif [[ ${CATEGORY} = x11-proto ]]; then |
59 |
- MODULE="proto" |
60 |
- elif [[ ${CATEGORY} = x11-base ]]; then |
61 |
- MODULE="xserver" |
62 |
- fi |
63 |
-fi |
64 |
+[[ -z ${MODULE} ]] && MODULE="" |
65 |
+case ${CATEGORY} in |
66 |
+ app-doc) MODULE="doc" ;; |
67 |
+ media-fonts) MODULE="font" ;; |
68 |
+ x11-apps|x11-wm) MODULE="app" ;; |
69 |
+ x11-misc|x11-themes) MODULE="util" ;; |
70 |
+ x11-drivers) MODULE="driver" ;; |
71 |
+ x11-base) MODULE="xserver" ;; |
72 |
+ x11-proto) MODULE="proto" ;; |
73 |
+ x11-libs) MODULE="lib" ;; |
74 |
+esac |
75 |
|
76 |
if [[ -n ${GIT_ECLASS} ]]; then |
77 |
EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PN}" |
78 |
|
79 |
|
80 |
|
81 |
-- |
82 |
gentoo-commits@l.g.o mailing list |