From d9272f78857ee465e021a0a67db9bfbc5b6a5530 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 4 Dec 2006 22:05:53 +0000 Subject: [PATCH] Add a doruby function to install ruby files in the right place without reinventing the wheel every time. --- eclass/ruby.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass index 40a279962d5b..9937a16e4d5a 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.54 2006/07/07 14:09:47 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.55 2006/12/04 22:05:53 flameeyes Exp $ # # Author: Mamoru KOMACHI # @@ -114,6 +114,12 @@ ruby_src_compile() { ruby_emake "$@" || die } +doruby() { + INSDESTTREE="$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')" \ + INSOPTIONS="-m 0644" \ + doins "$@" || die "failed to install $@" +} + ruby_einstall() { local siteruby -- 2.26.2