head 1.16; access; symbols pkgsrc-2017Q1:1.15.0.18 pkgsrc-2017Q1-base:1.15 pkgsrc-2016Q4:1.15.0.16 pkgsrc-2016Q4-base:1.15 pkgsrc-2016Q3:1.15.0.14 pkgsrc-2016Q3-base:1.15 pkgsrc-2016Q2:1.15.0.12 pkgsrc-2016Q2-base:1.15 pkgsrc-2016Q1:1.15.0.10 pkgsrc-2016Q1-base:1.15 pkgsrc-2015Q4:1.15.0.8 pkgsrc-2015Q4-base:1.15 pkgsrc-2015Q3:1.15.0.6 pkgsrc-2015Q3-base:1.15 pkgsrc-2015Q2:1.15.0.4 pkgsrc-2015Q2-base:1.15 pkgsrc-2015Q1:1.15.0.2 pkgsrc-2015Q1-base:1.15 pkgsrc-2014Q4:1.14.0.8 pkgsrc-2014Q4-base:1.14 pkgsrc-2014Q3:1.14.0.6 pkgsrc-2014Q3-base:1.14 pkgsrc-2014Q2:1.14.0.4 pkgsrc-2014Q2-base:1.14 pkgsrc-2014Q1:1.14.0.2 pkgsrc-2014Q1-base:1.14 pkgsrc-2013Q4:1.13.0.4 pkgsrc-2013Q4-base:1.13 pkgsrc-2013Q3:1.13.0.2 pkgsrc-2013Q3-base:1.13 pkgsrc-2013Q2:1.11.0.2 pkgsrc-2013Q2-base:1.11 pkgsrc-2013Q1:1.10.0.12 pkgsrc-2013Q1-base:1.10 pkgsrc-2012Q4:1.10.0.10 pkgsrc-2012Q4-base:1.10 pkgsrc-2012Q3:1.10.0.8 pkgsrc-2012Q3-base:1.10 pkgsrc-2012Q2:1.10.0.6 pkgsrc-2012Q2-base:1.10 pkgsrc-2012Q1:1.10.0.4 pkgsrc-2012Q1-base:1.10 pkgsrc-2011Q4:1.10.0.2 pkgsrc-2011Q4-base:1.10 pkgsrc-2011Q3:1.9.0.2 pkgsrc-2011Q3-base:1.9 pkgsrc-2011Q2:1.8.0.4 pkgsrc-2011Q2-base:1.8 pkgsrc-2011Q1:1.8.0.2 pkgsrc-2011Q1-base:1.8 pkgsrc-2010Q4:1.7.0.4 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.2 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.5.0.10 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.8 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.6 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.4 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.2 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.3.0.6 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.4 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.2 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.2.0.8 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.6 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.4 pkgsrc-2008Q1:1.2.0.2 pkgsrc-2008Q1-base:1.2; locks; strict; comment @# @; 1.16 date 2017.04.22.18.09.12; author taca; state dead; branches; next 1.15; commitid Iv1dxNi8sdQ5EyOz; 1.15 date 2015.01.25.16.13.13; author taca; state Exp; branches; next 1.14; commitid 0JNO4xTqRGEAhq7y; 1.14 date 2014.02.19.15.47.32; author taca; state Exp; branches; next 1.13; commitid NRw4OVjrrluV4Jpx; 1.13 date 2013.09.10.16.33.29; author taca; state Exp; branches; next 1.12; commitid BL9G7Z2UIOP9wU4x; 1.12 date 2013.07.07.15.02.56; author taca; state Exp; branches; next 1.11; commitid wMwWhS5iFZQm8yWw; 1.11 date 2013.06.11.14.55.54; author taca; state Exp; branches 1.11.2.1; next 1.10; commitid SPp1wZYhjtGPVcTw; 1.10 date 2011.11.08.15.26.12; author taca; state Exp; branches; next 1.9; 1.9 date 2011.08.12.15.50.44; author taca; state Exp; branches; next 1.8; 1.8 date 2011.03.23.14.35.05; author taca; state Exp; branches; next 1.7; 1.7 date 2010.09.16.12.02.05; author taca; state Exp; branches; next 1.6; 1.6 date 2010.09.10.03.48.40; author taca; state Exp; branches; next 1.5; 1.5 date 2009.06.10.21.44.31; author minskim; state Exp; branches; next 1.4; 1.4 date 2009.04.07.07.35.44; author minskim; state Exp; branches; next 1.3; 1.3 date 2008.09.15.08.43.44; author taca; 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 ; 1.11.2.1 date 2013.07.16.17.00.51; author tron; state Exp; branches; next ; commitid tRjApmEVG8D6vIXw; desc @@ 1.16 log @Remove rubygems package which is provided for ruby18 only. Other version of ruby2* pakcages have builtin rubygems. @ text @$NetBSD: patch-ad,v 1.15 2015/01/25 16:13:13 taca Exp $ * Add install_root option for pkgsrc's rubygems support. --- lib/rubygems/installer.rb.orig 2014-11-30 04:24:42.000000000 +0000 +++ lib/rubygems/installer.rb @@@@ -113,6 +113,9 @@@@ class Gem::Installer # foo_exec18. # :ignore_dependencies:: Don't raise if a dependency is missing. # :install_dir:: The directory to install the gem into. + # :install_root:: The directory to use as a buildroot for "destdir"-style + # installation. All paths during installation are relative + # to the buildroot. # :security_policy:: Use the specified security policy. See Gem::Security # :user_install:: Indicate that the gem should be unpacked into the users # personal gem directory. @@@@ -602,7 +605,13 @@@@ class Gem::Installer # If the user has asked for the gem to be installed in a directory that is # the system gem directory, then use the system bin directory, else create # (or use) a new bin dir under the gem_home. - @@bin_dir = options[:bin_dir] || Gem.bindir(gem_home) + install_root = options[:install_root] + @@bin_dir = options[:bin_dir] || Gem.bindir(gem_home, install_root) + @@development = options[:development] + unless install_root.nil? or install_root.empty? + @@install_root = File.expand_path install_root + @@gem_home = File.join(@@install_root, @@gem_home) + end @@development = options[:development] @@build_root = options[:build_root] @@@@ -794,6 +803,9 @@@@ TEXT return if @@build_args.empty? build_info_dir = File.join gem_home, 'build_info' + unless @@install_root.nil? or @@install_root.empty? + build_info_dir = File.join @@gem_home, "build_info" + end FileUtils.mkdir_p build_info_dir @ 1.15 log @Update rubygems to 2.4.5 and make this package for ruby18 only. Changes are too many to write here, please refer rubygem's github: https://github.com/rubygems/rubygems/blob/master/History.txt. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.14 2014/02/19 15:47:32 taca Exp $ @ 1.14 log @Check install_root's value is nil before it is empty string. Reported a problem from @@_ki_nu via Twitter. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.13 2013/09/10 16:33:29 taca Exp $ d5 1 a5 1 --- lib/rubygems/installer.rb.orig 2013-09-09 23:41:27.000000000 +0000 d7 1 a7 1 @@@@ -98,6 +98,9 @@@@ class Gem::Installer d17 1 a17 11 @@@@ -548,7 +551,8 @@@@ class Gem::Installer :env_shebang => false, :force => false, :install_dir => Gem.dir, - :only_install_dir => false + :only_install_dir => false, + :install_root => nil, }.merge options @@env_shebang = options[:env_shebang] @@@@ -563,8 +567,13 @@@@ class Gem::Installer d24 1 a24 1 @@development = options[:development] d29 12 a41 2 @@build_args = options[:build_args] || Gem::Command.build_args end @ 1.13 log @Update rubygems to 2.0.8. This includes a fix for CVE-2013-4287 in rubygems. === 2.0.8 / 2013-09-09 Security fixes: * RubyGems 2.0.7 and earlier are vulnerable to excessive CPU usage due to a backtracking in Gem::Version validation. See CVE-2013-4287 for full details including vulnerable APIs. Fixed versions include 2.0.8, 1.8.26 and 1.8.23.1 (for Ruby 1.9.3). Issue #626 by Damir Sharipov. Bug fixes: * Fixed Gem.clear_paths when Security is defined at top-level. Pull request #625 by elarkin === 2.0.7 / 2013-08-15 * Extensions may now be built in parallel (therefore gems may be installed in parallel). Bug #607 by Hemant Kumar. * Changed broken link to RubyGems Bookshelf to point to RubyGems guides. Ruby pull request #369 by 謝致邦. * Fixed various test failures due to platform differences or poor tests. Patches by Yui Naruse and Koichi Sasada. * Fixed documentation for Kernel#require. === 2.0.6 / 2013-07-24 Bug fixes: * Fixed the `--no-install` and `-I` options to `gem list` and friends. Bug #593 by Blargel. * Fixed crash when installing gems with extensions under the `-V` flag. Bug #601 by Nick Hoffman. * Fixed race condition retrieving HTTP connections in Gem::Request on JRuby. Bug #597 by Hemant Kumar. * Fixed building extensions on ruby 1.9.3 under mingw. Bug #594 by jonforums, Bug #599 by Chris Riesbeck * Restored default of remote search to `gem search`. === 2.0.5 / 2013-07-11 Bug fixes: * Fixed building of extensions that run ruby in their makefiles. Bug #589 by Zachary Salzbank. === 2.0.4 / 2013-07-09 Bug fixes: * Fixed error caused by gem install not finding the right platform for your platform. Bug #576 by John Anderson * Fixed pushing gems with the default host. Bug #495 by Utkarsh Kukreti * Improved unhelpful error message from `gem owner --remove`. Bug #488 by Steve Klabnik * Fixed typo in `gem spec` help. Pull request #563 by oooooooo * Fixed creation of build_info with --install-dir. Bug #457 by Vít Ondruch. * RubyGems converts non-string dependency names to strings now. Bug #505 by Terence Lee * Outdated prerelease versions are now listed in `gem outdated`. * RubyGems now only calls fsync() on the specification when installing, not every file from the gem. This improves the performance of gem installation on some systems. Pull Request #556 by Grzesiek Kolodziejczyk * Removed surprise search term anchoring in `gem search` to restore 1.8-like search behavior while still defaulting to --remote. Pull request #562 by Ben Bleything * Fixed handling of DESTDIR when building extensions. Pull request #573 by Akinori MUSHA * Fixed documentation of `gem pristine` defaults (--all is not a default). Pull request #577 by Shannon Skipper * Fixed a windows extension-building test failure. Pull request #575 by Hiroshi Shirosaki * Fixed issue with `gem update` where it would attempt to use a Version instead of a Requirement to find the latest gem. Fixes #570 by Nick Cox. * RubyGems now ignores an empty but set RUBYGEMS_HOST environment variable. Based on pull request #558 by Robin Dupret. * Removed duplicate creation of gem subdirectories in Gem::DependencyInstaller. Pull Request #456 by Vít Ondruch * RubyGems now works with Ruby built with `--with-ruby-version=''`. Pull Request #455 by Vít Ondruch * Fixed race condition when two threads require the same gem. Ruby bug report #8374 by Joel VanderWerf * Cleaned up siteconf between extension build and extension install. Pull request #587 by Dominic Cleal * Fix deprecation warnings when converting gemspecs to yaml. Ruby commit r41148 by Yui Naruse @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.12 2013/07/07 15:02:56 taca Exp $ d35 1 a35 1 + unless install_root.nil? or install_root == "" @ 1.12 log @Fix creating proper build_info directory. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.11 2013/06/11 14:55:54 taca Exp $ d5 1 a5 1 --- lib/rubygems/installer.rb.orig 2013-03-05 21:25:39.000000000 +0000 d7 1 a7 1 @@@@ -89,6 +89,9 @@@@ class Gem::Installer d17 1 a17 1 @@@@ -538,7 +541,8 @@@@ class Gem::Installer d27 1 a27 1 @@@@ -553,8 +557,13 @@@@ class Gem::Installer a41 11 @@@@ -773,7 +782,9 @@@@ EOF def write_build_info_file return if @@build_args.empty? - open spec.build_info_file, 'w' do |io| + build_info_file = (@@options[:install_root].nil?) ? spec.build_info_file : + File.join(@@options[:install_root], spec.build_info_file) + open build_info_file, 'w' do |io| @@build_args.each do |arg| io.puts arg end @ 1.11 log @Update rubygems to 2.0.3. THere are too many changes to write here, please refer these release notes. http://blog.rubygems.org/2013/03/11/2.0.3-released.html http://blog.rubygems.org/2013/03/06/2.0.2-released.html http://blog.rubygems.org/2013/03/05/2.0.1-released.html http://blog.rubygems.org/2013/02/24/2.0.0-released.html http://blog.rubygems.org/2013/02/08/2.0.0.rc.2-released.html http://blog.rubygems.org/2012/12/03/2.0.0-preview2.html @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.10 2011/11/08 15:26:12 taca Exp $ d5 1 a5 1 --- lib/rubygems/installer.rb.orig 2013-02-21 21:50:03.000000000 +0000 d42 11 @ 1.11.2.1 log @Pullup ticket #4179 - requested by taca misc/rubygems: build fix textproc/ruby-xslt: build fix Revisions pulled up: - converters/ruby-unf_ext/Makefile 1.4 - converters/ruby-unf_ext/PLIST 1.3 - databases/ruby-ldap/Makefile 1.15 - databases/ruby-ldap/PLIST 1.6 - databases/ruby-odbc/Makefile 1.14 - databases/ruby-odbc/PLIST 1.8 - databases/ruby-pg/Makefile 1.16 - databases/ruby-pg/PLIST 1.10 - devel/ruby-rbtree/Makefile 1.10 - devel/ruby-rbtree/PLIST 1.6 - graphics/ruby-gd/Makefile 1.40 - graphics/ruby-gd/PLIST 1.9 - lang/ruby/gem.mk 1.21-1.22 - lang/ruby193-base/Makefile 1.31 - lang/ruby193-base/PLIST 1.9 - lang/ruby193-base/distinfo 1.23 - lang/ruby193-base/patches/patch-lib_rubygems_command.rb 1.1 - lang/ruby193-base/patches/patch-lib_rubygems_command__manager.rb 1.1 - lang/ruby193-base/patches/patch-lib_rubygems_dependency__installer.rb 1.4 - lang/ruby193-base/patches/patch-lib_rubygems_gem__runner.rb 1.1 - lang/ruby193-base/patches/patch-lib_rubygems_installer.rb 1.2 - lang/ruby193-base/patches/patch-lib_rubygems_specification.rb 1.4 - math/ruby-narray/Makefile 1.2 - math/ruby-narray/PLIST 1.2 - misc/rubygems/Makefile 1.53 - misc/rubygems/PLIST 1.23 - misc/rubygems/distinfo 1.42 - misc/rubygems/patches/patch-ad 1.12 - security/ruby-shadow/Makefile 1.2 - security/ruby-shadow/PLIST 1.2 - textproc/ruby-libxml/Makefile 1.19 - textproc/ruby-libxml/PLIST 1.12 - textproc/ruby-xslt/Makefile 1.11 - textproc/ruby-xslt/PLIST 1.7 - www/ruby-fcgi/Makefile 1.16 - www/ruby-fcgi/PLIST 1.5 --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:01:01 UTC 2013 Modified Files: pkgsrc/lang/ruby193-base: Makefile PLIST distinfo pkgsrc/lang/ruby193-base/patches: patch-lib_rubygems_dependency__installer.rb patch-lib_rubygems_installer.rb patch-lib_rubygems_specification.rb Added Files: pkgsrc/lang/ruby193-base/patches: patch-lib_rubygems_command.rb patch-lib_rubygems_command__manager.rb patch-lib_rubygems_gem__runner.rb Log Message: Add partly support build_info to bundled rubygems to make compatibilty with rubygems 2.0.3. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:02:57 UTC 2013 Modified Files: pkgsrc/misc/rubygems: Makefile distinfo pkgsrc/misc/rubygems/patches: patch-ad Log Message: Fix creating proper build_info directory. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:12:56 UTC 2013 Modified Files: pkgsrc/misc/rubygems: PLIST Log Message: Remove Ruby's version denendent directory. No PKGREVISION bump for short time updates. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:16:38 UTC 2013 Modified Files: pkgsrc/lang/ruby: gem.mk Log Message: Fix gem handling. o Don't assume _DISTDIR end with '/' (by DESTDIR). o A small clean up to GEM_CLEANBUILD handling. A few clean up. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:18:11 UTC 2013 Modified Files: pkgsrc/converters/ruby-unf_ext: Makefile PLIST Log Message: No need to specify GEM_CLEANBUILD and fix PLIST. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:20:16 UTC 2013 Modified Files: pkgsrc/databases/ruby-ldap: Makefile PLIST Log Message: o Clean up GEM_CLEANBUILD and fix PLIST. o Use RUBY_DLEXT in PLIST. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:21:33 UTC 2013 Modified Files: pkgsrc/databases/ruby-odbc: Makefile PLIST Log Message: Add build_info file to PLIST. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:22:55 UTC 2013 Modified Files: pkgsrc/databases/ruby-pg: Makefile PLIST Log Message: Add build_info file to PLIST. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:26:00 UTC 2013 Modified Files: pkgsrc/devel/ruby-rbtree: Makefile PLIST Log Message: Change GEM_CLEANBUILD not to include the same Ruby's extension file in package. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:27:26 UTC 2013 Modified Files: pkgsrc/graphics/ruby-gd: Makefile PLIST Log Message: o Add build_info file to PLIST. o Utilize GEM_NAME in PLIST. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:29:47 UTC 2013 Modified Files: pkgsrc/math/ruby-narray: Makefile PLIST Log Message: Change GEM_CLEANBUILD not to include working file to package. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:32:56 UTC 2013 Modified Files: pkgsrc/security/ruby-shadow: Makefile PLIST Log Message: o Clean up GEM_CLEANBUILD not to include the same Ruby's extension file and working files in package o Use RUBY_DLEXT in PLIST. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:34:45 UTC 2013 Modified Files: pkgsrc/textproc/ruby-libxml: Makefile PLIST Log Message: o Add build_info file to PLIST. o Don't include extconf.h, a working file to package. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 15:36:37 UTC 2013 Modified Files: pkgsrc/www/ruby-fcgi: Makefile PLIST Log Message: o Add build_info file to PLIST. o Utilize GEM_NAME in PLIST. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: taca Date: Sun Jul 7 16:07:25 UTC 2013 Modified Files: pkgsrc/textproc/ruby-xslt: Makefile PLIST Log Message: Add build_info file to PLIST. Bump PKGREVISION. --- Module Name: pkgsrc Committed By: jperkin Date: Sun Jul 14 21:08:17 UTC 2013 Modified Files: pkgsrc/lang/ruby: gem.mk Log Message: Fix shell syntax error which has been breaking all gem builds on SunOS for the past week as per the reports on pkgsrc-bulk. Not sure why it wasn't showing up on other platforms, but I am assuming this is the correct fix. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- lib/rubygems/installer.rb.orig 2013-03-05 21:25:39.000000000 +0000 a41 11 @@@@ -773,7 +782,9 @@@@ EOF def write_build_info_file return if @@build_args.empty? - open spec.build_info_file, 'w' do |io| + build_info_file = (@@options[:install_root].nil?) ? spec.build_info_file : + File.join(@@options[:install_root], spec.build_info_file) + open build_info_file, 'w' do |io| @@build_args.each do |arg| io.puts arg end @ 1.10 log @* Make --install-root change same as ruby193-base. * Don't generate .require_paths. It was only needed with Ruby 1.9.1 which had never supported by pkgsrc. * Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.9 2011/08/12 15:50:44 taca Exp $ d5 1 a5 1 --- lib/rubygems/installer.rb.orig 2011-08-26 00:30:44.000000000 +0000 d7 2 a8 2 @@@@ -85,6 +85,9 @@@@ class Gem::Installer # for a signed-gems-only policy. d14 5 a18 18 # :format_executable:: Format the executable the same as the ruby executable. # If your ruby is ruby18, foo_exec will be installed as # foo_exec18. @@@@ -283,7 +286,11 @@@@ class Gem::Installer # If the user has asked for the gem to be installed in a directory that is # the system gem directory, then use the system bin directory, else create # (or use) a new bin dir under the gem_home. - bindir = @@bin_dir || Gem.bindir(gem_home) + bindir = @@bin_dir || (Gem.bindir @@gem_home, @@install_root) + + unless @@install_root.nil? or @@install_root == "" + bindir = File.join(@@install_root, bindir) + end Dir.mkdir bindir unless File.exist? bindir raise Gem::FilePermissionError.new(bindir) unless File.writable? bindir @@@@ -416,6 +423,7 @@@@ class Gem::Installer :exec_format => false, d21 2 d27 7 a33 3 @@@@ -427,6 +435,11 @@@@ class Gem::Installer @@wrappers = options[:wrappers] @@bin_dir = options[:bin_dir] a34 1 + install_root = options[:install_root] d40 2 a41 2 raise "NOTE: Installer option :source_index is dead" if options[:source_index] @ 1.9 log @Update rubygems package to 1.8.7 with adding compatibility to read older gemspec files. Changes are too may to write here, please refer History.txt file. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.8 2011/03/23 14:35:05 taca Exp $ a3 2 * Disable Gem::QUICKLOADER_SUCKAGE while Ruby 1.9.2's rubygems generates .require_paths file. d5 1 a5 1 --- lib/rubygems/installer.rb.orig 2011-05-31 21:55:13.000000000 +0000 d7 1 a7 11 @@@@ -39,7 +39,8 @@@@ class Gem::Installer include Gem::UserInteraction - include Gem::RequirePathsBuilder if Gem::QUICKLOADER_SUCKAGE + # For gem based package compatibility, generate .require_paths file. + include Gem::RequirePathsBuilder # if Gem::QUICKLOADER_SUCKAGE attr_reader :gem @@@@ -85,6 +86,9 @@@@ class Gem::Installer d17 1 a17 11 @@@@ -195,7 +199,8 @@@@ class Gem::Installer generate_bin write_spec - write_require_paths_file_if_needed if Gem::QUICKLOADER_SUCKAGE + # For gem based package compatibility, generate .require_paths file. + write_require_paths_file_if_needed # if Gem::QUICKLOADER_SUCKAGE cache_file = spec.cache_file FileUtils.cp gem, cache_file unless File.exist? cache_file @@@@ -283,7 +288,11 @@@@ class Gem::Installer d30 1 a30 1 @@@@ -416,6 +425,7 @@@@ class Gem::Installer d38 1 a38 1 @@@@ -427,6 +437,11 @@@@ class Gem::Installer @ 1.8 log @Update rubygems package to 1.6.2. For complete changes, please refer: https://github.com/rubygems/rubygems/blob/master/History.txt @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.7 2010/09/16 12:02:05 taca Exp $ d7 1 a7 1 --- lib/rubygems/installer.rb.orig 2011-03-04 00:01:24.000000000 +0000 d17 3 a19 4 ## # The directory a gem's executables will be installed into @@@@ -87,6 +88,9 @@@@ class Gem::Installer # :force:: Overrides all version checks and security policy checks, except d22 1 a25 1 # :install_dir:: The directory to install the gem into. d28 2 a29 1 @@@@ -174,7 +178,8 @@@@ class Gem::Installer d37 3 a39 3 cached_gem = Gem.cache_gem(File.basename(@@gem), @@gem_home) unless File.exist? cached_gem then @@@@ -263,7 +268,11 @@@@ class Gem::Installer d43 2 a44 2 - bindir = @@bin_dir ? @@bin_dir : Gem.bindir(@@gem_home) + bindir = @@bin_dir ? @@bin_dir : (Gem.bindir @@gem_home, @@install_root) d52 1 a52 1 @@@@ -392,6 +401,7 @@@@ class Gem::Installer a56 1 :source_index => Gem.source_index, d59 3 a61 1 @@@@ -406,6 +416,11 @@@@ class Gem::Installer a63 1 @@source_index = options[:source_index] a68 1 end d70 2 a71 1 def load_gem_file @ 1.7 log @Update rubygems to 1.3.7. o pkgsrc changes: * Add patches to keep output of specification sub-command as before. * Make sure to 'yaml is loaded in Gem::Specification::from_yaml(). === 1.3.7 / 2010-05-13 NOTE: http://rubygems.org is now the default source for downloading gems. You may have sources set via ~/.gemrc, so you should replace http://gems.rubyforge.org with http://rubygems.org http://gems.rubyforge.org will continue to work for the forseeable future. New features: * `gem` commands * `gem install` and `gem fetch` now report alternate platforms when a matching one couldn't be found. * `gem contents` --prefix is now the default as specified in --help. Bug #27211 by Mamoru Tasaka. * `gem fetch` can fetch of old versions again. Bug #27960 by Eric Hankins. * `gem query` and friends output now lists platforms. Bug #27856 by Greg Hazel. * `gem server` now allows specification of multiple gem dirs for documentation. Bug #27573 by Yuki Sonoda. * `gem unpack` can unpack gems again. Bug #27872 by Timothy Jones. * `gem unpack` now unpacks remote gems. * --user-install is no longer the default. If you really liked it, see Gem::ConfigFile to learn how to set it by default. (This change was made in 1.3.6) * RubyGems now has platform support for IronRuby. Patch #27951 by Will Green. Bug fixes: * Require rubygems/custom_require if --disable-gem was set. Bug #27700 by Roger Pack. * RubyGems now protects against exceptions being raised by plugins. * rubygems/builder now requires user_interaction. Ruby Bug #1040 by Phillip Toland. * Gem::Dependency support #version_requirements= with a warning. Fix for old Rails versions. Bug #27868 by Wei Jen Lu. * Gem::PackageTask depends on the package dir like the other rake package tasks so dependencies can be hooked up correctly. === 1.3.6 / 2010-02-17 New features: * `gem` commands * Added `gem push` and `gem owner` for interacting with modern/Gemcutter sources * `gem dep` now supports --prerelease. * `gem fetch` now supports --prerelease. * `gem server` now supports --bind. Patch #27357 by Bruno Michel. * `gem rdoc` no longer overwrites built documentation. Use --overwrite force rebuilding. Patch #25982 by Akinori MUSHA. * Captial letters are now allowed in prerelease versions. Bug fixes: * Development deps are no longer added to rubygems-update gem so older versions can update sucessfully. * Installer bugs: * Prerelease gems can now depend on non-prerelease gems. * Development dependencies are ignored unless explicitly needed. Bug #27608 by Roger Pack. * `gem` commands * `gem which` now fails if no paths were found. Adapted patch #27681 by Caio Chassot. * `gem server` no longer has invalid markup. Bug #27045 by Eric Young. * `gem list` and friends show both prerelease and regular gems when --prerelease --all is given * Gem::Format no longer crashes on empty files. Bug #27292 by Ian Ragsdale. * Gem::GemPathSearcher handles nil require_paths. Patch #27334 by Roger Pack. * Gem::RemoteFetcher no longer copies the file if it is where we want it. Patch #27409 by Jakub Stastny. Deprecation Notices: * lib/rubygems/timer.rb has been removed. * Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. * Bulk index update is no longer supported. * Gem::manage_gems was removed in 1.3.3. * Time::today was removed in 1.3.3. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.6 2010/09/10 03:48:40 taca Exp $ d3 3 a5 1 Add install_root option for pkgsrc's rubygems support. d7 1 a7 1 --- lib/rubygems/installer.rb.orig 2010-04-20 06:47:36.000000000 +0000 d9 12 a20 1 @@@@ -84,6 +84,9 @@@@ class Gem::Installer a22 1 # :install_dir:: The directory to install the gem into. d26 1 d29 24 a52 2 # foo_exec18. @@@@ -99,6 +102,7 @@@@ class Gem::Installer d60 1 a60 1 @@@@ -113,6 +117,11 @@@@ class Gem::Installer d69 1 d71 1 a71 15 begin @@format = Gem::Format.from_file_by_path @@gem, @@security_policy @@@@ -289,7 +298,11 @@@@ class Gem::Installer # If the user has asked for the gem to be installed in a directory that is # the system gem directory, then use the system bin directory, else create # (or use) a new bin dir under the gem_home. - bindir = @@bin_dir ? @@bin_dir : Gem.bindir(@@gem_home) + bindir = @@bin_dir ? @@bin_dir : (Gem.bindir @@gem_home, @@install_root) + + unless @@install_root.nil? or @@install_root == "" + bindir = File.join(@@install_root, bindir) + end Dir.mkdir bindir unless File.exist? bindir raise Gem::FilePermissionError.new(bindir) unless File.writable? bindir @ 1.6 log @* take maintainer ship. * Add LICENSE. * Adjust new ruby packages' framework. * Command name is gem${RUBY_VER} == gem18 now and add ALTERNATIVES. * Add comments to patches. * Overhalt --install_root option. * Avoid access HOME when --install_root is enabled. * honor PKG_SYSCONFDIR. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.5 2009/06/10 21:44:31 minskim Exp $ d5 1 a5 1 --- lib/rubygems/installer.rb.orig 2009-03-31 21:06:19.000000000 -0700 d7 1 a7 1 @@@@ -85,6 +85,9 @@@@ class Gem::Installer d17 1 a17 1 @@@@ -100,6 +103,7 @@@@ class Gem::Installer d25 1 a25 1 @@@@ -114,6 +118,11 @@@@ class Gem::Installer d37 1 a37 1 @@@@ -312,7 +321,11 @@@@ class Gem::Installer @ 1.5 log @Update rubygems to 1.3.4. New features since 1.3.1: * RubyGems now loads plugins from rubygems_plugin.rb in installed gems. This can be used to add commands (See Gem::CommandManager) or add install/uninstall hooks (See Gem::Installer and Gem::Uninstaller). * Gem::Version now understands prerelease versions using letters. (eg. '1.2.1.b') Thanks to Josh Susser, Alex Vollmer and Phil Hagelberg. * RubyGems now includes a Rake task for creating gems which replaces rake's Rake::GemPackageTask. See Gem::PackageTask. * Gem::find_files now returns paths in $LOAD_PATH. * Added Gem::promote_load_path for use with Gem::find_files * Added Gem::bin_path to make finding executables easier. Patch #24114 by James Tucker. * Various improvements to build arguments for installing gems. * `gem contents` added --all and --no-prefix. * Gem::Specification * #validate strips directories and errors on not-files. * #description no longer removes newlines. * #name must be a String. * FIXME and TODO are no longer allowed in various fields. * Added support for a license attribute. Feature #11041 (partial). * Removed Gem::Specification::list, too much process growth. Bug #23668 by Steve Purcell. * `gem generate_index` * Can now generate an RSS feed. * Modern indicies can now be updated incrementally. * Legacy indicies can be updated separately from modern. * `gem server` allows port names (from /etc/services) with --port. * `gem server` now has search that jumps to RDoc. Patch #22959 by Vladimir Dobriakov. * `gem spec` can retrieve single fields from a spec (like `gem spec rake authors`). * Gem::Specification#has_rdoc= is deprecated and ignored (defaults to true) * RDoc is now generated regardless of Gem::Specification#has_rdoc? @ text @d1 3 a3 1 $NetBSD$ @ 1.4 log @Update rubygems to 1.3.1. New features since 1.2.0: * RubyGems doesn't print LOCAL/REMOTE titles for `gem query` and friends if stdout is not a TTY, except with --both. * Added Gem.find_files, allows a gem to discover features provided by other gems. * Added pre/post (un)install hooks for packagers of RubyGems. (Not for gems themselves). * RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use --no-user-install command-line switch to disable this behavior. * Fetching specs for update now uses If-Modified-Since requests. * RubyGems now updates the ri cache when the rdoc gem is installed and documentation is generated. @ text @d3 1 a3 1 --- lib/rubygems/installer.rb.orig 2008-10-10 11:22:39.000000000 -0700 d5 1 a5 1 @@@@ -80,6 +80,9 @@@@ class Gem::Installer d15 1 a15 1 @@@@ -95,6 +98,7 @@@@ class Gem::Installer d23 5 a27 5 @@@@ -109,6 +113,11 @@@@ class Gem::Installer @@bin_dir = options[:bin_dir] @@development = options[:development] @@source_index = options[:source_index] + install_root = options[:install_root] d35 1 a35 1 @@@@ -310,7 +319,11 @@@@ class Gem::Installer @ 1.3 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 @d1 1 a1 1 $NetBSD: patch-ad,v 1.2 2008/03/31 15:40:43 jlam Exp $ d3 1 a3 1 --- lib/rubygems/installer.rb.orig 2008-06-07 09:15:11.000000000 +0900 d5 1 a5 1 @@@@ -51,6 +51,9 @@@@ class Gem::Installer d15 4 a18 4 @@@@ -63,6 +66,7 @@@@ class Gem::Installer options = { :force => false, :install_dir => Gem.dir, d20 4 a23 5 :exec_format => false, :env_shebang => false, :bin_dir => nil @@@@ -78,6 +82,11 @@@@ class Gem::Installer @@wrappers = options[:wrappers] d26 1 d35 1 a35 1 @@@@ -234,7 +243,11 @@@@ class Gem::Installer @ 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 @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- lib/rubygems/installer.rb.orig 2008-03-28 21:10:33.000000000 -0400 d15 1 a15 1 @@@@ -62,6 +65,7 @@@@ class Gem::Installer d23 1 a23 9 @@@@ -70,12 +74,17 @@@@ class Gem::Installer @@env_shebang = options[:env_shebang] @@force = options[:force] gem_home = options[:install_dir] - @@gem_home = Pathname.new(gem_home).expand_path + @@gem_home = File.expand_path gem_home @@ignore_dependencies = options[:ignore_dependencies] @@format_executable = options[:format_executable] @@security_policy = options[:security_policy] d26 1 d35 1 a35 1 @@@@ -227,7 +236,11 @@@@ class Gem::Installer d39 1 a39 1 - bindir = @@bin_dir ? @@bin_dir : (Gem.bindir @@gem_home) @ 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. --- lib/rubygems/installer.rb.orig 2007-12-20 19:43:06.000000000 -0500 d5 25 a29 1 @@@@ -73,6 +73,14 @@@@ class Gem::Installer d33 5 a37 6 + @@build_root = options[:build_root] + @@bin_dir = Gem.bindir @@gem_home + unless @@build_root.nil? or @@build_root == "" + @@build_root = Pathname.new(@@build_root).expand_path + @@gem_home = File.join(@@build_root, @@gem_home) + @@bin_dir = File.join(@@build_root, @@bin_dir) a38 1 + d42 1 a42 1 @@@@ -224,7 +232,7 @@@@ class Gem::Installer d46 6 a51 2 - bindir = Gem.bindir @@gem_home + bindir = @@bin_dir @