/[gentoo-x86]/eclass/xorg-2.eclass
Gentoo

Diff of /eclass/xorg-2.eclass

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

Revision 1.24 Revision 1.28
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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/xorg-2.eclass,v 1.24 2011/02/28 18:16:40 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.28 2011/03/14 17:09:41 flameeyes Exp $
4# 4#
5# @ECLASS: xorg-2.eclass 5# @ECLASS: xorg-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# x11@gentoo.org 7# x11@gentoo.org
8# @BLURB: Reduces code duplication in the modularized X11 ebuilds. 8# @BLURB: Reduces code duplication in the modularized X11 ebuilds.
22 22
23GIT_ECLASS="" 23GIT_ECLASS=""
24if [[ ${PV} == *9999* ]]; then 24if [[ ${PV} == *9999* ]]; then
25 GIT_ECLASS="git" 25 GIT_ECLASS="git"
26 XORG_EAUTORECONF="yes" 26 XORG_EAUTORECONF="yes"
27 SRC_URI=""
28fi 27fi
29 28
30# If we're a font package, but not the font.alias one 29# If we're a font package, but not the font.alias one
31FONT_ECLASS="" 30FONT_ECLASS=""
32if [[ ${PN} == font* \ 31if [[ ${PN} == font* \
57# @DESCRIPTION: 56# @DESCRIPTION:
58# If set to 'yes' and configure.ac exists, eautoreconf will run. Set 57# If set to 'yes' and configure.ac exists, eautoreconf will run. Set
59# before inheriting this eclass. 58# before inheriting this eclass.
60: ${XORG_EAUTORECONF:="no"} 59: ${XORG_EAUTORECONF:="no"}
61 60
61# @ECLASS-VARIABLE: BASE_INDIVIDUAL_URI
62# @DESCRIPTION:
62# Set up SRC_URI for individual modular releases 63# Set up SRC_URI for individual modular releases. If set to an empty
64# string, no SRC_URI will be provided by the eclass.
63BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual" 65: ${BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual"}
66
64# @ECLASS-VARIABLE: MODULE 67# @ECLASS-VARIABLE: MODULE
65# @DESCRIPTION: 68# @DESCRIPTION:
66# The subdirectory to download source from. Possible settings are app, 69# The subdirectory to download source from. Possible settings are app,
67# doc, data, util, driver, font, lib, proto, xserver. Set above the 70# doc, data, util, driver, font, lib, proto, xserver. Set above the
68# inherit to override the default autoconfigured module. 71# inherit to override the default autoconfigured module.
86# This variable can be used for proper directory specification 89# This variable can be used for proper directory specification
87: ${PACKAGE_NAME:=${PN}} 90: ${PACKAGE_NAME:=${PN}}
88 91
89if [[ -n ${GIT_ECLASS} ]]; then 92if [[ -n ${GIT_ECLASS} ]]; then
90 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}${PACKAGE_NAME}" 93 EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}${PACKAGE_NAME}"
91else 94elif [[ -n ${BASE_INDIVIDUAL_URI} ]]; then
92 SRC_URI+=" ${BASE_INDIVIDUAL_URI}/${MODULE}${P}.tar.bz2" 95 SRC_URI="${BASE_INDIVIDUAL_URI}/${MODULE}${P}.tar.bz2"
93fi 96fi
94 97
95: ${SLOT:=0} 98: ${SLOT:=0}
96 99
97# Set the license for the package. This can be overridden by setting 100# Set the license for the package. This can be overridden by setting
187 )" 190 )"
188fi 191fi
189if [[ -n "${DRIVER}" ]]; then 192if [[ -n "${DRIVER}" ]]; then
190 COMMON_DEPEND+=" 193 COMMON_DEPEND+="
191 x11-base/xorg-server[xorg] 194 x11-base/xorg-server[xorg]
195 "
196fi
197if [[ -n "${DRIVER}" && ${PN} == xf86-video-* ]]; then
198 COMMON_DEPEND+="
192 x11-libs/libpciaccess 199 x11-libs/libpciaccess
193 " 200 "
194 # we also needs some protos and libs in all cases 201 # we also needs some protos and libs in all cases
195 DEPEND+=" 202 DEPEND+="
196 x11-proto/fontsproto 203 x11-proto/fontsproto
208if has doc ${IUSE//+}; then 215if has doc ${IUSE//+}; then
209 DEPEND+=" 216 DEPEND+="
210 doc? ( 217 doc? (
211 app-text/xmlto 218 app-text/xmlto
212 app-doc/doxygen 219 app-doc/doxygen
220 app-text/docbook-xml-dtd:4.1
213 app-text/docbook-xml-dtd:4.2 221 app-text/docbook-xml-dtd:4.2
214 app-text/docbook-xml-dtd:4.3 222 app-text/docbook-xml-dtd:4.3
215 ) 223 )
216 " 224 "
217fi 225fi

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20