diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-04-07 08:52:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-04-07 08:52:46 +0000 |
commit | e12b6a2df1810b088105d609bdbfc2e727ca0457 (patch) | |
tree | 1cae7713381bf4b90b28571622d6e21914f6d7c3 /eclass/ruby.eclass | |
parent | stable amd64, bug 169830 (diff) | |
download | gentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.tar.gz gentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.tar.bz2 gentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.zip |
replace INSDESTTREE/INSOPTIONS with subshells and insinto/insopts
Diffstat (limited to 'eclass/ruby.eclass')
-rw-r--r-- | eclass/ruby.eclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass index 352ffc7f7288..e0eaf0e4da8b 100644 --- a/eclass/ruby.eclass +++ b/eclass/ruby.eclass @@ -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.eclass,v 1.63 2007/03/10 10:27:45 rbrown Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.64 2007/04/07 08:52:46 vapier Exp $ # # Author: Mamoru KOMACHI <usata@gentoo.org> # @@ -123,16 +123,17 @@ ruby_emake() { } ruby_src_compile() { - # You can pass configure options via RUBY_ECONF ruby_econf || die ruby_emake "$@" || die } doruby() { - INSDESTTREE="$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')" \ - INSOPTIONS="-m 0644" \ - doins "$@" || die "failed to install $@" + ( # dont want to pollute calling env + insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]') + insopts -m 0644 + doins "$@" + ) || die "failed to install $@" } ruby_einstall() { |