--- ruby/Makefile.orig 2007-03-13 08:31:21.000000000 -0400 +++ ruby/Makefile 2007-03-13 08:31:50.000000000 -0400 @@ -128,8 +128,8 @@ @echo "Installing generated code" @for i in $(MODULES) ; \ do \ - $(INSTALL_DATA) $${i}.rb $(install_rubydir) ; \ - $(INSTALL_DATA) -r $$i $(install_rubydir) ; \ + $(INSTALL_DATA) $${i}.rb $(install_rubylibdir) ; \ + $(INSTALL_DATA) -r $$i $(install_rubylibdir) ; \ done clean:: --- src/IceRuby/Makefile.orig 2007-03-13 08:31:58.000000000 -0400 +++ src/IceRuby/Makefile 2007-03-13 08:35:59.000000000 -0400 @@ -48,6 +48,6 @@ ln -s $(SONAME) $@ install:: all - $(call installlib,$(install_libdir),$(libdir),$(LIBFILENAME),$(SONAME),$(LIBNAME)) + $(call installlib,$(install_rubyarchdir),$(libdir),$(LIBFILENAME),$(SONAME),$(LIBNAME)) include .depend --- config/Make.rules.orig 2008-04-02 13:13:25.000000000 -0400 +++ config/Make.rules 2008-04-02 13:15:14.000000000 -0400 @@ -12,13 +12,13 @@ # if it does not exist. # -prefix ?= /opt/Ice-$(VERSION) +prefix ?= $(DESTDIR)/usr # # The "root directory" for runpath embedded in executables. Can be unset # to avoid adding a runpath to Ice executables. # -embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR) +#embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR) # # Define OPTIMIZE as yes if you want to build with optimization. @@ -45,8 +45,10 @@ RUBY = ruby endif -RUBY_INCLUDE_DIR = $(shell $(RUBY) -e 'require "rbconfig"; puts Config::expand("$$(archdir)")') -RUBY_LIB_DIR = $(shell $(RUBY) -e 'require "rbconfig"; puts Config::expand("$$(libdir)")') +RUBY_ARCH_DIR = $(shell $(RUBY) -e 'require "rbconfig"; puts Config::expand("$$(archdir)")') +RUBY_LIB_DIR = $(shell $(RUBY) -e 'require "rbconfig"; puts Config::expand("$$(rubylibdir)")') +RUBY_SITEARCH_DIR = $(shell $(RUBY) -e 'require "rbconfig"; puts Config::expand("$$(sitearchdir)")') +RUBY_SITELIB_DIR = $(shell $(RUBY) -e 'require "rbconfig"; puts Config::expand("$$(sitelibdir)")') RUBY_SHARED = $(shell $(RUBY) -e 'require "rbconfig"; puts Config::MAKEFILE_CONFIG["ENABLE_SHARED"]') @@ -56,7 +58,7 @@ RUBY_LIB = $(shell $(RUBY) -e 'require "rbconfig"; puts Config::expand("-l$$(RUBY_SO_NAME)-static")') endif -RUBY_FLAGS = -I$(RUBY_INCLUDE_DIR) +RUBY_FLAGS = -I$(RUBY_ARCH_DIR) RUBY_LIBS = -L$(RUBY_LIB_DIR) $(RUBY_LIB) # ---------------------------------------------------------------------- @@ -77,8 +79,8 @@ endif libdir = $(top_srcdir)/ruby -install_rubydir = $(prefix)/ruby -install_libdir = $(prefix)/ruby +install_rubylibdir = $(DESTDIR)/$(RUBY_SITELIB_DIR) +install_rubyarchdir = $(DESTDIR)/$(RUBY_SITELIB_DIR) # # Platform specific definitions --- Makefile.orig 2008-04-23 09:17:07.000000000 -0400 +++ Makefile 2008-04-23 09:17:27.000000000 -0400 @@ -13,11 +13,11 @@ SUBDIRS = src ruby -install:: install-common - @if test ! -d $(install_rubydir) ; \ +install:: + @if test ! -d $(install_rubylibdir) ; \ then \ - echo "Creating $(install_rubydir)..." ; \ - $(call mkdir,$(install_rubydir)) ; \ + echo "Creating $(install_rubylibdir)..." ; \ + mkdir -p $(install_rubylibdir) ; \ fi $(EVERYTHING)::