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.19 2010/11/05 12:11:55 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.20 2010/11/09 18:25:00 scarabeus 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. |
… | |
… | |
78 | x11-proto) MODULE="proto" ;; |
78 | x11-proto) MODULE="proto" ;; |
79 | x11-libs) MODULE="lib" ;; |
79 | x11-libs) MODULE="lib" ;; |
80 | esac |
80 | esac |
81 | fi |
81 | fi |
82 | |
82 | |
|
|
83 | # @ECLASS-VARIABLE: PACKAGE_NAME |
|
|
84 | # @DESCRIPTION: |
|
|
85 | # For git checkout git repository migth differ from package name |
|
|
86 | # so it can be overriden via this variable. |
|
|
87 | : ${PACKAGE_NAME:=${PN}} |
|
|
88 | |
83 | if [[ -n ${GIT_ECLASS} ]]; then |
89 | if [[ -n ${GIT_ECLASS} ]]; then |
84 | EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PN}" |
90 | EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PACKAGE_NAME}" |
85 | else |
91 | else |
86 | SRC_URI+=" ${BASE_INDIVIDUAL_URI}/${MODULE}/${P}.tar.bz2" |
92 | SRC_URI+=" ${BASE_INDIVIDUAL_URI}/${MODULE}/${P}.tar.bz2" |
87 | fi |
93 | fi |
88 | |
94 | |
89 | : ${SLOT:=0} |
95 | : ${SLOT:=0} |