| 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 | |
| 23 | GIT_ECLASS="" |
23 | GIT_ECLASS="" |
| 24 | if [[ ${PV} == *9999* ]]; then |
24 | if [[ ${PV} == *9999* ]]; then |
| 25 | GIT_ECLASS="git" |
25 | GIT_ECLASS="git" |
| 26 | XORG_EAUTORECONF="yes" |
26 | XORG_EAUTORECONF="yes" |
| 27 | SRC_URI="" |
|
|
| 28 | fi |
27 | fi |
| 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 |
| 31 | FONT_ECLASS="" |
30 | FONT_ECLASS="" |
| 32 | if [[ ${PN} == font* \ |
31 | if [[ ${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. |
| 63 | BASE_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 | |
| 89 | if [[ -n ${GIT_ECLASS} ]]; then |
92 | if [[ -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}" |
| 91 | else |
94 | elif [[ -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" |
| 93 | fi |
96 | fi |
| 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 | )" |
| 188 | fi |
191 | fi |
| 189 | if [[ -n "${DRIVER}" ]]; then |
192 | if [[ -n "${DRIVER}" ]]; then |
| 190 | COMMON_DEPEND+=" |
193 | COMMON_DEPEND+=" |
| 191 | x11-base/xorg-server[xorg] |
194 | x11-base/xorg-server[xorg] |
|
|
195 | " |
|
|
196 | fi |
|
|
197 | if [[ -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 |
| … | |
… | |
| 208 | if has doc ${IUSE//+}; then |
215 | if 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 | " |
| 217 | fi |
225 | fi |