From 67897d45d5eaa8d4eb7ca0ebb4c6554754161ed1 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Mon, 30 Mar 2009 15:15:09 +0300 Subject: [PATCH] package: reworked rubygems to not use custmain and export GEM_HOME while building --- ruby/rubygems/rubygems.conf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ruby/rubygems/rubygems.conf b/ruby/rubygems/rubygems.conf index 58c84b5cd..14c9c2f34 100644 --- a/ruby/rubygems/rubygems.conf +++ b/ruby/rubygems/rubygems.conf @@ -2,6 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../rubygems/rubygems.conf +# Copyright (C) 2009 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -11,4 +12,16 @@ # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- -custmain="ruby setup.rb" + +configscript= +makeopt= +makeinstopt= + +rubygems_install(){ + + export GEM_HOME="$root$libdir/ruby/gems/1.8" + ruby setup.rb + +} + +hook_add postmake 5 "rubygems_install"