2009-10-23 17:25:54 +00:00
|
|
|
diff -ur ruby-1.8.6-p383.0-deadcode/configure.in ruby-1.8.6-p383/configure.in
|
|
|
|
--- ruby-1.8.6-p383.0-deadcode/configure.in 2009-07-20 15:24:22.000000000 +0200
|
|
|
|
+++ ruby-1.8.6-p383/configure.in 2009-10-22 16:37:13.729623476 +0200
|
|
|
|
@@ -1613,6 +1613,13 @@
|
2006-04-20 01:08:23 +00:00
|
|
|
rubyw_install_name="$RUBYW_INSTALL_NAME"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
+
|
|
|
|
+AC_ARG_WITH(ruby-prefix,
|
|
|
|
+ AC_HELP_STRING([--with-ruby-prefix], [build ruby with the special library prefix.])
|
|
|
|
+ ,,
|
|
|
|
+ with_ruby_prefix=no)
|
|
|
|
+
|
|
|
|
+if test "x$with_ruby_prefix" = "x"; then
|
|
|
|
case "$target_os" in
|
|
|
|
cygwin*|mingw*|*djgpp*|os2-emx*)
|
|
|
|
RUBY_LIB_PREFIX="/lib/ruby"
|
2009-10-23 17:25:54 +00:00
|
|
|
@@ -1621,20 +1628,30 @@
|
|
|
|
RUBY_LIB_PREFIX="`eval "echo ${libdir}"`/ruby"
|
2006-04-20 01:08:23 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
+else
|
2009-10-23 17:25:54 +00:00
|
|
|
+ RUBY_LIB_PREFIX="${with_ruby_prefix}/ruby"
|
2006-04-20 01:08:23 +00:00
|
|
|
+fi
|
|
|
|
RUBY_LIB_PATH="${RUBY_LIB_PREFIX}/${MAJOR}.${MINOR}"
|
|
|
|
+RUBY_LIB_PATH2="${libdir}/ruby/${MAJOR}.${MINOR}"
|
|
|
|
|
|
|
|
AC_ARG_WITH(sitedir,
|
|
|
|
[ --with-sitedir=DIR site libraries in DIR [PREFIX/lib/ruby/site_ruby]],
|
|
|
|
[sitedir=$withval],
|
2009-10-23 17:25:54 +00:00
|
|
|
[sitedir="`eval "echo ${libdir}"`/ruby/site_ruby"])
|
2007-02-05 10:36:36 +00:00
|
|
|
-SITE_DIR=`eval echo \\"${sitedir}\\"`
|
|
|
|
+SITE_DIR=`eval echo \\"${sitedir}\\" | sed -e "s/lib64/lib/"`
|
2006-09-26 09:39:59 +00:00
|
|
|
+_fc_sitedir="\$(DESTDIR)${sitedir}"
|
2007-03-28 14:08:33 +00:00
|
|
|
+SITE_DIR2=`eval echo \\"${_fc_sitedir}\\"`
|
2007-02-05 10:36:36 +00:00
|
|
|
+sitedir=`eval echo \\"${sitedir}\\" | sed -e "s/lib64/lib/"`
|
2009-10-23 17:25:54 +00:00
|
|
|
+
|
2006-04-20 01:08:23 +00:00
|
|
|
case "$target_os" in
|
|
|
|
cygwin*|mingw*|*djgpp*|os2-emx*)
|
|
|
|
RUBY_SITE_LIB_PATH="`expr "$SITE_DIR" : "$prefix\(/.*\)"`" ||
|
|
|
|
RUBY_SITE_LIB_PATH="$SITE_DIR";;
|
|
|
|
*)
|
|
|
|
- RUBY_SITE_LIB_PATH="$SITE_DIR";;
|
|
|
|
+ RUBY_SITE_LIB_PATH="$SITE_DIR";
|
|
|
|
+ RUBY_SITE_LIB_PATH2="$SITE_DIR2";;
|
|
|
|
esac
|
|
|
|
+RUBY_SITE_LIB_PATH3="${RUBY_SITE_LIB_PATH2}/${MAJOR}.${MINOR}"
|
|
|
|
RUBY_SITE_LIB_PATH2="${RUBY_SITE_LIB_PATH}/${MAJOR}.${MINOR}"
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(RUBY_LIB, "${RUBY_LIB_PATH}")
|
2009-10-23 17:25:54 +00:00
|
|
|
@@ -1644,6 +1661,7 @@
|
2006-04-20 01:08:23 +00:00
|
|
|
AC_SUBST(arch)dnl
|
|
|
|
AC_SUBST(sitearch)dnl
|
|
|
|
AC_SUBST(sitedir)dnl
|
|
|
|
+AC_SUBST(_fc_sitedir)dnl
|
|
|
|
|
|
|
|
configure_args=$ac_configure_args
|
|
|
|
AC_SUBST(configure_args)dnl
|
2009-10-23 17:25:54 +00:00
|
|
|
@@ -1652,7 +1670,7 @@
|
2006-04-20 01:08:23 +00:00
|
|
|
arch="fat-${target_os}"
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(RUBY_THIN_ARCHLIB,
|
|
|
|
- "${RUBY_LIB_PATH}/" __ARCHITECTURE__ "-${target_os}")
|
|
|
|
+ "${RUBY_LIB_PATH2}/" __ARCHITECTURE__ "-${target_os}")
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(RUBY_SITE_THIN_ARCHLIB,
|
|
|
|
"${RUBY_SITE_LIB_PATH}/" __ARCHITECTURE__ "-${target_os}")
|
2009-10-23 17:25:54 +00:00
|
|
|
@@ -1667,8 +1685,8 @@
|
2006-04-20 01:08:23 +00:00
|
|
|
*) sitearch="${arch}" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
-AC_DEFINE_UNQUOTED(RUBY_ARCHLIB, "${RUBY_LIB_PATH}/${arch}")
|
|
|
|
-AC_DEFINE_UNQUOTED(RUBY_SITE_ARCHLIB, "${RUBY_SITE_LIB_PATH2}/${sitearch}")
|
|
|
|
+AC_DEFINE_UNQUOTED(RUBY_ARCHLIB, "${RUBY_LIB_PATH2}/${arch}")
|
|
|
|
+AC_DEFINE_UNQUOTED(RUBY_SITE_ARCHLIB, "${RUBY_SITE_LIB_PATH3}/${sitearch}")
|
|
|
|
|
|
|
|
AC_ARG_WITH(search-path,
|
|
|
|
[ --with-search-path=DIR specify the additional search path],
|
2009-10-23 17:25:54 +00:00
|
|
|
Only in ruby-1.8.6-p383/: configure.in.orig
|
|
|
|
Only in ruby-1.8.6-p383/: configure.in.rej
|
|
|
|
diff -ur ruby-1.8.6-p383.0-deadcode/mkconfig.rb ruby-1.8.6-p383/mkconfig.rb
|
|
|
|
--- ruby-1.8.6-p383.0-deadcode/mkconfig.rb 2008-06-07 18:37:10.000000000 +0200
|
|
|
|
+++ ruby-1.8.6-p383/mkconfig.rb 2009-10-22 16:30:55.776872493 +0200
|
|
|
|
@@ -139,10 +139,10 @@
|
2008-08-23 08:58:47 +00:00
|
|
|
print(*v_others)
|
2006-04-20 01:08:23 +00:00
|
|
|
print <<EOS
|
|
|
|
CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
|
|
|
|
- CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
|
|
|
|
- CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
|
|
|
|
+ CONFIG["rubylibdir"] = "$(prefix)/lib/ruby/$(ruby_version)"
|
|
|
|
+ CONFIG["archdir"] = "$(libdir)/ruby/$(ruby_version)/$(arch)"
|
2006-09-26 09:39:59 +00:00
|
|
|
CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
|
|
|
|
- CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
|
2006-04-20 01:08:23 +00:00
|
|
|
+ CONFIG["sitearchdir"] = "$(_fc_sitedir)/$(ruby_version)/$(sitearch)"
|
|
|
|
CONFIG["topdir"] = File.dirname(__FILE__)
|
|
|
|
MAKEFILE_CONFIG = {}
|
|
|
|
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
|