pvalena / rpms / ruby

Forked from rpms/ruby 3 years ago
Clone
714d9f
diff -ruN ruby-1.8.3.orig/mkconfig.rb ruby-1.8.3/mkconfig.rb
714d9f
--- ruby-1.8.3.orig/mkconfig.rb	2005-09-21 15:10:57.000000000 +0900
714d9f
+++ ruby-1.8.3/mkconfig.rb	2005-09-21 15:17:32.000000000 +0900
714d9f
@@ -74,7 +74,7 @@
714d9f
 
714d9f
 drive = File::PATH_SEPARATOR == ';'
714d9f
 
714d9f
-prefix = '/lib/ruby/' + RUBY_VERSION.sub(/\.\d+$/, '') + '/' + RUBY_PLATFORM
714d9f
+prefix = '/lib64/ruby/' + RUBY_VERSION.sub(/\.\d+$/, '') + '/' + RUBY_PLATFORM
714d9f
 print "  TOPDIR = File.dirname(__FILE__).chomp!(#{prefix.dump})\n"
714d9f
 print "  DESTDIR = ", (drive ? "TOPDIR && TOPDIR[/\\A[a-z]:/i] || " : ""), "'' unless defined? DESTDIR\n"
714d9f
 print "  CONFIG = {}\n"
6955a3
diff -ruN ruby-1.8.3.orig/configure.in ruby-1.8.3/configure.in
6955a3
--- ruby-1.8.3.orig/configure.in	2005-09-07 08:22:56.000000000 +0900
6955a3
+++ ruby-1.8.3/configure.in	2005-09-26 17:46:53.000000000 +0900
6955a3
@@ -1424,15 +1424,15 @@
6955a3
     RUBY_LIB_PREFIX="/lib/ruby"
6955a3
     ;;
6955a3
   *)
6955a3
-    RUBY_LIB_PREFIX="${prefix}/lib/ruby"
6955a3
+    RUBY_LIB_PREFIX="${libdir}/ruby"
6955a3
     ;;
6955a3
 esac
6955a3
 RUBY_LIB_PATH="${RUBY_LIB_PREFIX}/${MAJOR}.${MINOR}"
6955a3
 
6955a3
 AC_ARG_WITH(sitedir,
6955a3
-	    [  --with-sitedir=DIR      site libraries in DIR [PREFIX/lib/ruby/site_ruby]],
6955a3
+	    [  --with-sitedir=DIR      site libraries in DIR [LIBDIR/ruby/site_ruby]],
6955a3
             [sitedir=$withval],
6955a3
-            [sitedir='${prefix}/lib/ruby/site_ruby'])
6955a3
+            [sitedir='${libdir}/ruby/site_ruby'])
6955a3
 SITE_DIR="`eval \"echo ${sitedir}\"`"
6955a3
 case "$target_os" in
6955a3
   cygwin*|mingw*|*djgpp*|os2-emx*)