diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-11-09 18:25:00 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-11-09 18:25:00 +0000 |
commit | 587ee1137fcd3248c9e95e49e6eaffd533dad4ed (patch) | |
tree | 44298ac80d90c6b00783c9a6b82c40e26d11e976 /eclass | |
parent | Remove old versions. (diff) | |
download | gentoo-2-587ee1137fcd3248c9e95e49e6eaffd533dad4ed.tar.gz gentoo-2-587ee1137fcd3248c9e95e49e6eaffd533dad4ed.tar.bz2 gentoo-2-587ee1137fcd3248c9e95e49e6eaffd533dad4ed.zip |
Add PACKAGE_NAME variable that allows specification of git checkout folder, so we dont have to respecify complete EGIT_REPO_URI.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/xorg-2.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass index bd47ac865a42..3c8f457b9849 100644 --- a/eclass/xorg-2.eclass +++ b/eclass/xorg-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.19 2010/11/05 12:11:55 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.20 2010/11/09 18:25:00 scarabeus Exp $ # # @ECLASS: xorg-2.eclass # @MAINTAINER: @@ -80,8 +80,14 @@ if [[ -z ${MODULE} ]]; then esac fi +# @ECLASS-VARIABLE: PACKAGE_NAME +# @DESCRIPTION: +# For git checkout git repository migth differ from package name +# so it can be overriden via this variable. +: ${PACKAGE_NAME:=${PN}} + if [[ -n ${GIT_ECLASS} ]]; then - EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PN}" + EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}/${PACKAGE_NAME}" else SRC_URI+=" ${BASE_INDIVIDUAL_URI}/${MODULE}/${P}.tar.bz2" fi |