From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NGssy-0003yz-7i for garchives@archives.gentoo.org; Sat, 05 Dec 2009 11:33:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C467CE077B; Sat, 5 Dec 2009 11:33:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A0C7BE077B for ; Sat, 5 Dec 2009 11:33:11 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 5B23167D07 for ; Sat, 5 Dec 2009 11:33:11 +0000 (UTC) Received: from flameeyes by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1NGssw-0001wt-QL for gentoo-commits@lists.gentoo.org; Sat, 05 Dec 2009 11:33:10 +0000 From: "Diego Petteno (flameeyes)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, flameeyes@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: ruby-ng.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: ruby-ng.eclass X-VCS-Directories: eclass X-VCS-Committer: flameeyes X-VCS-Committer-Name: Diego Petteno Content-Type: text/plain; charset=utf8 Message-Id: Sender: Diego Petteno Date: Sat, 05 Dec 2009 11:33:10 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 410bd728-af0d-4b74-a08d-6305d8400cb7 X-Archives-Hash: c72bcb4ba2d9a3e3469d75813b9e1752 flameeyes 09/12/05 11:33:10 Modified: ruby-ng.eclass Log: Add a check for $RUBY to be set in doruby. Revision Changes Path 1.4 eclass/ruby-ng.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/ruby-ng.ecl= ass?rev=3D1.4&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/ruby-ng.ecl= ass?rev=3D1.4&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/ruby-ng.ecl= ass?r1=3D1.3&r2=3D1.4 Index: ruby-ng.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ruby-ng.eclass 5 Dec 2009 11:32:19 -0000 1.3 +++ ruby-ng.eclass 5 Dec 2009 11:33:10 -0000 1.4 @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.3 2009/12/0= 5 11:32:19 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.4 2009/12/0= 5 11:33:10 flameeyes Exp $ # # @ECLASS: ruby-ng.eclass # @MAINTAINER: @@ -411,8 +411,9 @@ # @DESCRIPTION: # Installs the specified file(s) into the sitelibdir of the Ruby interpr= eter in ${RUBY}. doruby() { + [[ -z ${RUBY} ]] && die "\$RUBY is not set" ( # don't want to pollute calling env - insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]') + insinto $(${RUBY} -rrbconfig -e 'print Config::CONFIG["sitelibdir"]') insopts -m 0644 doins "$@" ) || die "failed to install $@"