Feature #5617 » 0001-Allow-to-install-RubyGems-into-custom-location-outsi.patch
configure.in | ||
---|---|---|
dir="${VENDOR_DIR}"
|
||
done
|
||
AC_ARG_WITH(rubygemsdir,
|
||
AS_HELP_STRING([--with-rubygemsdir=DIR], [custom rubygems directory]]),
|
||
[rubygemsdir=$withval])
|
||
if test "$rubygemsdir" != ""; then
|
||
AC_DEFINE_UNQUOTED(RUBYGEMS_DIR,"$rubygemsdir")
|
||
fi
|
||
if test "${LOAD_RELATIVE+set}"; then
|
||
AC_DEFINE_UNQUOTED(LOAD_RELATIVE, $LOAD_RELATIVE)
|
||
RUBY_EXEC_PREFIX=""
|
||
... | ... | |
AC_SUBST(ruby_version)dnl
|
||
AC_SUBST(sitedir)dnl
|
||
AC_SUBST(vendordir)dnl
|
||
AC_SUBST(rubygemsdir)dnl
|
||
configure_args=$ac_configure_args
|
||
AC_SUBST(configure_args)dnl
|
tool/mkconfig.rb | ||
---|---|---|
when /^RUBY_SO_NAME$/; next if $so_name
|
||
when /^arch$/; if val.empty? then val = arch else arch = val end
|
||
when /^sitearch/; val = '$(arch)' if val.empty?
|
||
when /^rubygemsdir/; next if val.empty?
|
||
end
|
||
case val
|
||
when /^\$\(ac_\w+\)$/; next
|
tool/rbinstall.rb | ||
---|---|---|
sitearchlibdir = CONFIG["sitearchdir"]
|
||
vendorlibdir = CONFIG["vendorlibdir"]
|
||
vendorarchlibdir = CONFIG["vendorarchdir"]
|
||
rubygemsdir = CONFIG["rubygemsdir"]
|
||
mandir = CONFIG["mandir"]
|
||
capidir = CONFIG["docdir"]
|
||
configure_args = Shellwords.shellwords(CONFIG["configure_args"])
|
||
... | ... | |
install?(:local, :comm, :lib) do
|
||
prepare "library scripts", rubylibdir
|
||
noinst = %w[README* *.txt *.rdoc]
|
||
noinst += %w[*ubygems.rb rubygems/] if rubygemsdir
|
||
install_recursive(File.join(srcdir, "lib"), rubylibdir, :no_install => noinst, :mode => $data_mode)
|
||
if rubygemsdir
|
||
noinst = %w[obsolete.rb]
|
||
install_recursive(File.join(srcdir, "lib", "rubygems"), File.join(rubygemsdir, "rubygems"), :mode => $data_mode)
|
||
install_recursive(File.join(srcdir, "lib", "rbconfig"), File.join(rubygemsdir, "rbconfig"), :no_install => noinst, :mode => $data_mode)
|
||
install(File.join(srcdir, "lib", "ubygems.rb"), File.join(rubygemsdir, "ubygems.rb"), :mode => $data_mode)
|
||
install(File.join(srcdir, "lib", "rubygems.rb"), File.join(rubygemsdir, "rubygems.rb"), :mode => $data_mode)
|
||
end
|
||
end
|
||
install?(:local, :arch, :lib) do
|
version.c | ||
---|---|---|
RUBY_VENDOR_LIB "\0"
|
||
#endif
|
||
#ifdef RUBYGEMS_DIR
|
||
RUBYGEMS_DIR "\0"
|
||
#endif
|
||
RUBY_LIB "\0"
|
||
#ifdef RUBY_THIN_ARCHLIB
|
||
RUBY_THIN_ARCHLIB "\0"
|