/[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.103
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.103 2008/11/26 23:13:24 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"
191 # (#120057) Enabling DRI in drivers requires that the server was built with 193 # (#120057) Enabling DRI in drivers requires that the server was built with
192 # support for it 194 # support for it
193 if [[ -n "${DRIVER}" ]]; then 195 if [[ -n "${DRIVER}" ]]; then
194 if has dri ${IUSE} && use dri; then 196 if has dri ${IUSE} && use dri; then
195 einfo "Checking for direct rendering capabilities ..." 197 einfo "Checking for direct rendering capabilities ..."
196 if ! built_with_use x11-base/xorg-server dri; then 198 if ! built_with_use --missing true x11-base/xorg-server dri; then
197 die "You must build x11-base/xorg-server with USE=dri." 199 die "You must build x11-base/xorg-server with USE=dri."
198 fi 200 fi
199 fi 201 fi
200 fi 202 fi
201} 203}
391# Creates a ChangeLog from git if using live ebuilds. 393# Creates a ChangeLog from git if using live ebuilds.
392x-modular_src_install() { 394x-modular_src_install() {
393 # Install everything to ${XDIR} 395 # Install everything to ${XDIR}
394 make \ 396 make \
395 DESTDIR="${D}" \ 397 DESTDIR="${D}" \
396 install 398 install \
399 || die
397# Shouldn't be necessary in XDIR=/usr 400# Shouldn't be necessary in XDIR=/usr
398# einstall forces datadir, so we need to re-force it 401# einstall forces datadir, so we need to re-force it
399# datadir=${XDIR}/share \ 402# datadir=${XDIR}/share \
400# mandir=${XDIR}/share/man \ 403# mandir=${XDIR}/share/man \
401 404

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

  ViewVC Help
Powered by ViewVC 1.1.20