| 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.32 2011/03/16 16:12:32 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.34 2011/03/16 20:57:43 mgorny 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. |
| … | |
… | |
| 91 | # For git checkout the git repository might differ from package name. |
91 | # For git checkout the git repository might differ from package name. |
| 92 | # This variable can be used for proper directory specification |
92 | # This variable can be used for proper directory specification |
| 93 | : ${XORG_PACKAGE_NAME:=${PN}} |
93 | : ${XORG_PACKAGE_NAME:=${PN}} |
| 94 | |
94 | |
| 95 | if [[ -n ${GIT_ECLASS} ]]; then |
95 | if [[ -n ${GIT_ECLASS} ]]; then |
| 96 | EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${PACKAGE_NAME}" |
96 | EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}" |
| 97 | elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then |
97 | elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then |
| 98 | SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.bz2" |
98 | SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.bz2" |
| 99 | fi |
99 | fi |
| 100 | |
100 | |
| 101 | : ${SLOT:=0} |
101 | : ${SLOT:=0} |
| … | |
… | |
| 245 | DOC_DEPEND=" |
245 | DOC_DEPEND=" |
| 246 | doc? ( |
246 | doc? ( |
| 247 | app-text/asciidoc |
247 | app-text/asciidoc |
| 248 | app-text/xmlto |
248 | app-text/xmlto |
| 249 | app-doc/doxygen |
249 | app-doc/doxygen |
| 250 | app-text/docbook-xml-dtd:4.1 |
250 | app-text/docbook-xml-dtd:4.1.2 |
| 251 | app-text/docbook-xml-dtd:4.2 |
251 | app-text/docbook-xml-dtd:4.2 |
| 252 | app-text/docbook-xml-dtd:4.3 |
252 | app-text/docbook-xml-dtd:4.3 |
| 253 | ) |
253 | ) |
| 254 | " |
254 | " |
| 255 | case ${XORG_DOC} in |
255 | case ${XORG_DOC} in |