diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-03-14 17:09:41 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-03-14 17:09:41 +0000 |
commit | 940a77f0295f3fab172a5b5feb0630e59722de03 (patch) | |
tree | 46698c31b14a481ace86729b01bc8b3ce65aa6b9 | |
parent | Use pkg-config to detect BLAS/LAPAACK libs (diff) | |
download | gentoo-2-940a77f0295f3fab172a5b5feb0630e59722de03.tar.gz gentoo-2-940a77f0295f3fab172a5b5feb0630e59722de03.tar.bz2 gentoo-2-940a77f0295f3fab172a5b5feb0630e59722de03.zip |
Make BASE_INDIVIDUAL_URI a tweakable value.
When setting it to an explicit empty string, it will signal the eclass
not to provide a SRC_URI at all. This is useful both for software
using the xorg interface but not the freedesktop source uri, and for
writing custom git-based ebuilds.
-rw-r--r-- | eclass/xorg-2.eclass | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass index 2e60b4bab57e..4adef333557d 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.27 2011/03/08 11:31:42 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.28 2011/03/14 17:09:41 flameeyes Exp $ # # @ECLASS: xorg-2.eclass # @MAINTAINER: @@ -24,7 +24,6 @@ GIT_ECLASS="" if [[ ${PV} == *9999* ]]; then GIT_ECLASS="git" XORG_EAUTORECONF="yes" - SRC_URI="" fi # If we're a font package, but not the font.alias one @@ -59,8 +58,12 @@ HOMEPAGE="http://xorg.freedesktop.org/" # before inheriting this eclass. : ${XORG_EAUTORECONF:="no"} -# Set up SRC_URI for individual modular releases -BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual" +# @ECLASS-VARIABLE: BASE_INDIVIDUAL_URI +# @DESCRIPTION: +# Set up SRC_URI for individual modular releases. If set to an empty +# string, no SRC_URI will be provided by the eclass. +: ${BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual"} + # @ECLASS-VARIABLE: MODULE # @DESCRIPTION: # The subdirectory to download source from. Possible settings are app, @@ -88,8 +91,8 @@ fi if [[ -n ${GIT_ECLASS} ]]; then EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/${MODULE}${PACKAGE_NAME}" -else - SRC_URI+=" ${BASE_INDIVIDUAL_URI}/${MODULE}${P}.tar.bz2" +elif [[ -n ${BASE_INDIVIDUAL_URI} ]]; then + SRC_URI="${BASE_INDIVIDUAL_URI}/${MODULE}${P}.tar.bz2" fi : ${SLOT:=0} |