| 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.35 2011/03/17 22:40:20 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.36 2011/03/17 22:43:22 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. |
| … | |
… | |
| 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}${XORG_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} |