/[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.97 Revision 1.99
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.97 2008/05/09 07:18:19 dberkholz Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.99 2008/05/27 18:42:33 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.
43 SRC_URI="" 43 SRC_URI=""
44fi 44fi
45 45
46# Set up SRC_URI for individual modular releases 46# Set up SRC_URI for individual modular releases
47BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual" 47BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual"
48if [[ -z ${MODULE} ]]; then
49# @ECLASS-VARIABLE: MODULE
50# @DESCRIPTION:
51# The subdirectory to download source from. Possible settings are app,
52# doc, data, util, driver, font, lib, proto, xserver. Set above the
53# inherit to override the default autoconfigured module.
54 MODULE=""
48if [[ ${CATEGORY} = x11-apps ]] || [[ ${CATEGORY} = x11-wm ]]; then 55 if [[ ${CATEGORY} = x11-apps ]] || [[ ${CATEGORY} = x11-wm ]]; then
49 MODULE="app" 56 MODULE="app"
50elif [[ ${CATEGORY} = app-doc ]]; then 57 elif [[ ${CATEGORY} = app-doc ]]; then
51 MODULE="doc" 58 MODULE="doc"
52# x11-misc contains data and util, x11-themes contains data 59 # x11-misc contains data and util, x11-themes contains data
53elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then 60 elif [[ ${CATEGORY} = x11-misc ]] || [[ ${CATEGORY} = x11-themes ]]; then
54 if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then 61 if [[ ${PN} == xbitmaps || ${PN} == xcursor-themes || ${PN} == xkbdata ]]; then
55 MODULE="data" 62 MODULE="data"
56 else 63 else
57 MODULE="util" 64 MODULE="util"
58 fi 65 fi
59elif [[ ${CATEGORY} = x11-drivers ]]; then 66 elif [[ ${CATEGORY} = x11-drivers ]]; then
60 MODULE="driver" 67 MODULE="driver"
61elif [[ ${CATEGORY} = media-fonts ]]; then 68 elif [[ ${CATEGORY} = media-fonts ]]; then
62 MODULE="font" 69 MODULE="font"
63elif [[ ${CATEGORY} = x11-libs ]]; then 70 elif [[ ${CATEGORY} = x11-libs ]]; then
64 MODULE="lib" 71 MODULE="lib"
65elif [[ ${CATEGORY} = x11-proto ]]; then 72 elif [[ ${CATEGORY} = x11-proto ]]; then
66 MODULE="proto" 73 MODULE="proto"
67elif [[ ${CATEGORY} = x11-base ]]; then 74 elif [[ ${CATEGORY} = x11-base ]]; then
68 MODULE="xserver" 75 MODULE="xserver"
76 fi
69fi 77fi
70 78
71if [[ -n ${GIT_ECLASS} ]]; then 79if [[ -n ${GIT_ECLASS} ]]; then
72 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PN}" 80 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PN}"
73else 81else
359 x-modular_debug_setup 367 x-modular_debug_setup
360 368
361# @VARIABLE: CONFIGURE_OPTIONS 369# @VARIABLE: CONFIGURE_OPTIONS
362# @DESCRIPTION: 370# @DESCRIPTION:
363# Any options to pass to configure 371# Any options to pass to configure
364[[ -n ${CONFIGURE_OPTIONTS} ]] 372[[ -n ${CONFIGURE_OPTIONS} ]]
365 373
366 # If prefix isn't set here, .pc files cause problems 374 # If prefix isn't set here, .pc files cause problems
367 if [[ -x ${ECONF_SOURCE:-.}/configure ]]; then 375 if [[ -x ${ECONF_SOURCE:-.}/configure ]]; then
368 econf --prefix=${XDIR} \ 376 econf --prefix=${XDIR} \
369 --datadir=${XDIR}/share \ 377 --datadir=${XDIR}/share \

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.99

  ViewVC Help
Powered by ViewVC 1.1.20