/[gentoo-x86]/eclass/x-modular.eclass
Gentoo

Diff of /eclass/x-modular.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.100 Revision 1.101
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.100 2008/05/28 01:48:10 dberkholz Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.101 2008/06/13 16:40:21 dberkholz Exp $
4# 4#
5# @ECLASS: x-modular.eclass 5# @ECLASS: x-modular.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org 7# Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org
8# @BLURB: Reduces code duplication in the modularized X11 ebuilds. 8# @BLURB: Reduces code duplication in the modularized X11 ebuilds.
48# @ECLASS-VARIABLE: MODULE 48# @ECLASS-VARIABLE: MODULE
49# @DESCRIPTION: 49# @DESCRIPTION:
50# The subdirectory to download source from. Possible settings are app, 50# The subdirectory to download source from. Possible settings are app,
51# doc, data, util, driver, font, lib, proto, xserver. Set above the 51# doc, data, util, driver, font, lib, proto, xserver. Set above the
52# inherit to override the default autoconfigured module. 52# inherit to override the default autoconfigured module.
53[[ -z ${MODULE} ]] && MODULE="" 53if [[ -z ${MODULE} ]]; then
54 MODULE=""
54case ${CATEGORY} in 55 case ${CATEGORY} in
55 app-doc) MODULE="doc" ;; 56 app-doc) MODULE="doc" ;;
56 media-fonts) MODULE="font" ;; 57 media-fonts) MODULE="font" ;;
57 x11-apps|x11-wm) MODULE="app" ;; 58 x11-apps|x11-wm) MODULE="app" ;;
58 x11-misc|x11-themes) MODULE="util" ;; 59 x11-misc|x11-themes) MODULE="util" ;;
59 x11-drivers) MODULE="driver" ;; 60 x11-drivers) MODULE="driver" ;;
60 x11-base) MODULE="xserver" ;; 61 x11-base) MODULE="xserver" ;;
61 x11-proto) MODULE="proto" ;; 62 x11-proto) MODULE="proto" ;;
62 x11-libs) MODULE="lib" ;; 63 x11-libs) MODULE="lib" ;;
63esac 64 esac
65fi
64 66
65if [[ -n ${GIT_ECLASS} ]]; then 67if [[ -n ${GIT_ECLASS} ]]; then
66 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PN}" 68 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PN}"
67else 69else
68 SRC_URI="${SRC_URI} ${BASE_INDIVIDUAL_URI}/${MODULE}/${P}.tar.bz2" 70 SRC_URI="${SRC_URI} ${BASE_INDIVIDUAL_URI}/${MODULE}/${P}.tar.bz2"

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

  ViewVC Help
Powered by ViewVC 1.1.20