From 3ebe181ba7a4cde75c7e5a5c5186155b276b0e08 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Mon, 5 Mar 2007 18:26:20 +0000 Subject: [PATCH] =?utf8?q?Allow=20ebuilds=20to=20specify=20GEM=5FSRC.=20Fr?= =?utf8?q?om=20Diego=20Petten=C3=B2=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- eclass/gems.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/gems.eclass b/eclass/gems.eclass index 6d22506d08cb..0beb837329e4 100644 --- a/eclass/gems.eclass +++ b/eclass/gems.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.16 2007/01/31 13:46:07 pclouds Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.17 2007/03/05 18:26:20 rbrown Exp $ # # Author: Rob Cakebread # Current Maintainer: Ruby Herd @@ -45,10 +45,10 @@ gems_src_install() { gems_location if [ -z "${MY_P}" ]; then - GEM_SRC=${DISTDIR}/${P} + [ -z "${GEM_SRC}" ] && GEM_SRC=${DISTDIR}/${P} spec_path=${D}/${GEMSDIR}/specifications/${P}.gemspec else - GEM_SRC=${DISTDIR}/${MY_P} + [ -z "${GEM_SRC}" ] && GEM_SRC=${DISTDIR}/${MY_P} spec_path=${D}/${GEMSDIR}/specifications/${MY_P}.gemspec fi -- 2.26.2