head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.14 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.12 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.10 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.8 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.6 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.4 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.2 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.4.0.6 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.4 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.2 pkgsrc-2008Q1:1.2.0.2 pkgsrc-2008Q1-base:1.2; locks; strict; comment @# @; 1.5 date 2008.09.15.08.43.44; author taca; state dead; branches; next 1.4; 1.4 date 2008.06.19.14.52.36; author taca; state Exp; branches; next 1.3; 1.3 date 2008.04.13.06.01.59; author jlam; state Exp; branches; next 1.2; 1.2 date 2008.03.31.15.40.43; author jlam; state Exp; branches; next 1.1; 1.1 date 2008.03.08.00.43.55; author jlam; state Exp; branches; next ; desc @@ 1.5 log @Update rubygems pacakge to 1.2.0. Release 1.2.0 adds new features and fixes some bugs. New features: * RubyGems no longer performs bulk updates and instead only fetches the gemspec files it needs. Alternate sources will need to upgrade to RubyGems 1.2 to allow RubyGems to take advantage of the new metadata updater. If a pre 1.2 remote source is in the sources list, RubyGems will revert to the bulk update code for compatibility. * RubyGems now has runtime and development dependency types. Use #add_development_dependency and #add_runtime_dependency. All typeless dependencies are considered to be runtime dependencies. * RubyGems will now require rubygems/defaults/operating_system.rb and rubygems/defaults/#{RBX_ENGINE}.rb if they exist. This allows packagers and ruby implementers to add custom behavior to RubyGems via these files. (If the RubyGems API is insufficient, please suggest improvements via the RubyGems list.) * /etc/gemrc (and windows equivalent) for global settings * setup.rb now handles --vendor and --destdir for packagers * `gem stale` command that lists gems by last access time Bugs Fixed: * File modes from gems are now honored, patch #19737 * Marshal Gem::Specification objects from the future can now be loaded. * A trailing / is now added to remote sources when missing, bug #20134 * Gems with legacy platforms will now be correctly uninstalled, patch #19877 * `gem install --no-wrappers` followed by `gem install --wrappers` no longer overwrites executables * `gem pristine` now forces reinstallation of gems, bug #20387 * RubyGems gracefully handles ^C while loading .gemspec files from disk, bug #20523 * Paths are expanded in more places, bug #19317, bug #19896 * Gem::DependencyInstaller resets installed gems every install, bug #19444 * Gem.default_path is now honored if GEM_PATH is not set, patch #19502 Other Changes Include: * setup.rb * stub files created by RubyGems 0.7.x and older are no longer removed. When upgrading from these ancient versions, upgrade to 1.1.x first to clean up stubs. * RDoc is no longer required until necessary, patch #20414 * `gem server` * Now completely matches the output of `gem generate_index` and has correct content types * Refreshes from source directories for every hit. The server will no longer need to be restarted after installing gems. * `gem query --details` and friends now display author, homepage, rubyforge url and installed location * `gem install` without -i no longer reinstalls dependencies if they are in GEM_PATH but not in GEM_HOME * Gem::RemoteFetcher now performs persistent connections for HEAD requests, bug #7973 @ text @$NetBSD: patch-ae,v 1.4 2008/06/19 14:52:36 taca Exp $ --- setup.rb.orig 2008-04-02 08:22:20.000000000 +0900 +++ setup.rb @@@@ -37,6 +37,9 @@@@ if ARGV.include? '--help' or ARGV.includ puts " --prefix=DIR Prefix path for installing RubyGems" puts " Will not affect gem repository location" puts + puts " --install-root=DIR Root directory for installing RubyGems" + puts " Will not affect gem repository" + puts puts " --no-format-executable Force installation as `gem`" puts puts " --no-rdoc Don't build RDoc for RubyGems" @@@@ -67,7 +70,7 @@@@ lib_dir = nil bin_dir = nil if ARGV.grep(/^--prefix/).empty? then - lib_dir = Gem::ConfigMap[:sitelibdir] + lib_dir = Gem::ConfigMap[:vendorlibdir] bin_dir = Gem::ConfigMap[:bindir] else prefix = nil @@@@ -96,11 +99,30 @@@@ else else lib_dir = File.join prefix, 'lib' bin_dir = File.join prefix, 'bin' - - mkdir_p lib_dir - mkdir_p bin_dir end end + +unless ARGV.grep(/^--install-root/).empty? then + install_root = nil + + install_root_arg = ARGV.grep(/^--install-root=/).first + if install_root_arg =~ /^--install-root=(.*)/ then + install_root = $1 + else + path_index = ARGV.index '--install-root' + install_root = ARGV[path_index + 1] + end + + install_root = File.expand_path install_root + + raise "invalid --install-root #{install_root.inspect}" if install_root.nil? + + bin_dir = File.join(install_root, bin_dir) + lib_dir = File.join(install_root, lib_dir) +end + +mkdir_p lib_dir +mkdir_p bin_dir Dir.chdir 'lib' do lib_files = Dir[File.join('**', '*rb')] @ 1.4 log @- Switch to use vendor_dir with Ruby 1.8.7. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.3 2008/04/13 06:01:59 jlam Exp $ @ 1.3 log @Update misc/rubygems to 1.1.1. Changes from version 1.1.0 include: * Gem.prefix now returns non-nil only when RubyGems was installed outside sitelibdir or libdir. * The `gem server` gem list now correctly links to gem details. * `gem update --system` now passes --no-format-executable to setup.rb. * Gem::SourceIndex#refresh! now works with multiple gem repositories. * Downloaded gems now go into --install-dir's cache directory. * Various fixes to downloading gem metadata. * `gem install --force` now ignores network errors too. * `gem pristine` now rebuilds extensions. * `gem update --system` now works on virgin Apple ruby. * Gem::RemoteFetcher handles Errno::ECONNABORTED. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- setup.rb.orig 2008-04-01 19:22:20.000000000 -0400 d15 9 @ 1.2 log @Update rubygems to 1.1.0. Changes from version 1.0.1 include: + Port patches to allow gems to be installed into an "installion root" from 1.0.1nb2. + Rename the --build-root option to --install-root, which more accurately reflects the purpose of the option. + Update rubygem.mk to work with rubygems-1.1.0. + Require 1.1.0 as the minimum rubygems version for the build. + Remove GEM_FORMAT and special code to extract the gemspec file from a gem archive -- `gem spec' can now do it correctly by itself. + Rename various *buildroot* targets to *install-root* to match the name of the `gem' option. * RubyGems now uses persistent connections on index updates and only updates from a latest index by default, cutting candidate gems for updates to roughly 1/4 (at present). Index updates are much faster now. * `gem list -r` may only show the latest version of a gem, add --all to see all gems. * `gem spec` now extracts specifications from .gem files. * `gem query --installed` to aid automation of checking for gems. This update has been tested with the 3 packages in pkgsrc that install using the ``gem'' command: devel/rubyforge misc/ruby-gem_plugin www/mongrel This update has also been tested with the 129 packages in my local tree that install using the ``gem'' command. @ text @d3 1 a3 1 --- setup.rb.orig 2008-03-27 19:09:24.000000000 -0400 d5 1 a5 1 @@@@ -34,6 +34,9 @@@@ if ARGV.include? '--help' or ARGV.includ d15 10 a24 6 @@@@ -83,11 +86,30 @@@@ else lib_dir = File.join prefix, 'lib' bin_dir = File.join prefix, 'bin' +end + d27 1 a27 3 - mkdir_p lib_dir - mkdir_p bin_dir d42 2 a43 2 end d46 1 a46 1 + a48 1 @ 1.1 log @+ Add patches by Marcus Rueckert for destdir-style installation of gems. Patches from the OpenSuSE rubygems-1.0.1 src rpm. + Support user-destdir installation. + Dynamically generate the entire portion of the PLIST that corresponds to the documentation generated by rubygem at install-time. Bump the PKGREVISION to 1. @ text @d3 1 a3 3 Patch by Marcus Rueckert for staged installation of gems. --- setup.rb.orig 2007-12-20 20:15:55.000000000 -0500 d5 3 a7 3 @@@@ -24,6 +24,9 @@@@ if ARGV.include? '--help' then puts " --prefix=DIR Prefix path for installing RubyGems" puts " Will not affect gem repository" d9 2 a10 2 + puts " --buildroot=DIR Staging directory for installing RubyGems (for packagers)" + puts " Will not affect gem repository" d12 1 a12 2 puts " --format-executable Make the gem command's prefix and suffix match ruby's" puts " If ruby is installed as ruby19, gem will be gem19" d14 2 a15 1 @@@@ -74,11 +77,30 @@@@ else d21 8 a28 6 +unless ARGV.grep(/^--buildroot/).empty? then + buildroot = nil + + buildroot_arg = ARGV.grep(/^--buildroot=/).first + if buildroot_arg =~ /^--buildroot=(.*)/ then + buildroot = $1 d30 2 a31 2 + path_index = ARGV.index '--buildroot' + buildroot = ARGV[path_index + 1] d34 3 a36 5 + buildroot = File.expand_path buildroot - mkdir_p lib_dir - mkdir_p bin_dir + raise "invalid --buildroot #{buildroot.inspect}" if buildroot.nil? d38 2 a39 2 + bin_dir = File.join(buildroot, bin_dir) + lib_dir = File.join(buildroot, lib_dir) @