head	1.2;
access;
symbols
	pkgsrc-2026Q1:1.1.0.26
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.24
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.22
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.20
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.18
	pkgsrc-2025Q1-base:1.1
	pkgsrc-2024Q4:1.1.0.16
	pkgsrc-2024Q4-base:1.1
	pkgsrc-2024Q3:1.1.0.14
	pkgsrc-2024Q3-base:1.1
	pkgsrc-2024Q2:1.1.0.12
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.10
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.8
	pkgsrc-2023Q4-base:1.1
	pkgsrc-2023Q3:1.1.0.6
	pkgsrc-2023Q3-base:1.1
	pkgsrc-2023Q2:1.1.0.4
	pkgsrc-2023Q2-base:1.1
	pkgsrc-2023Q1:1.1.0.2
	pkgsrc-2023Q1-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2026.04.08.14.42.46;	author taca;	state dead;
branches;
next	1.1;
commitid	LBrBmvgvKv0FiaBG;

1.1
date	2023.01.21.13.51.23;	author taca;	state Exp;
branches;
next	;
commitid	laCmrgsL9wEKIpaE;


desc
@@


1.2
log
@lang/ruby32-base: remove package

Ruby 3.2 is EOL.
@
text
@$NetBSD: patch-lib_rubygems_commands_setup__command.rb,v 1.1 2023/01/21 13:51:23 taca Exp $

* Make sure to setup under DESTDIR.

--- lib/rubygems/commands/setup_command.rb.orig	2022-11-24 10:20:31.000000000 +0000
+++ lib/rubygems/commands/setup_command.rb
@@@@ -185,7 +185,7 @@@@ By default, this RubyGems will install g
 
     uninstall_old_gemcutter
 
-    documentation_success = install_rdoc
+    documentation_success = install_rdoc install_destdir
 
     say
     if @@verbose
@@@@ -318,11 +318,15 @@@@ By default, this RubyGems will install g
     end
   end
 
-  def install_rdoc
+  def install_rdoc(install_destdir)
     gem_doc_dir = File.join Gem.dir, "doc"
     rubygems_name = "rubygems-#{Gem::VERSION}"
     rubygems_doc_dir = File.join gem_doc_dir, rubygems_name
 
+    unless install_destdir.empty?
+      FileUtils.mkdir_p gem_doc_dir unless File.exist?(gem_doc_dir)
+    end
+
     begin
       Gem.ensure_gem_subdirectories Gem.dir
     rescue SystemCallError
@@@@ -333,7 +337,7 @@@@ By default, this RubyGems will install g
        (!File.exist?(rubygems_doc_dir) ||
         File.writable?(rubygems_doc_dir))
       say "Removing old RubyGems RDoc and ri" if @@verbose
-      Dir[File.join(Gem.dir, "doc", "rubygems-[0-9]*")].each do |dir|
+      Dir[File.join(gem_doc_dir, "rubygems-[0-9]*")].each do |dir|
         rm_rf dir
       end
 
@


1.1
log
@lang/ruby32-base: add ruby32-base version 3.2.0

Ruby is a dynamic, open source programming language with a focus on
simplicity and productivity.  It has an elegant syntax that is natural to
read and easy to write.

Features of Ruby are shown below.
  + Simple Syntax
  + *Normal* Object-Oriented features (ex. class, method calls)
  + *Advanced* Object-Oriented features (ex. Mix-in, Singleton-method)
  + Operator Overloading
  + Exception Handling
  + Iterators and Closures
  + Garbage Collection
  + Dynamic Loading of Object files (on some architecture)
  + Highly Portable (works on many UNIX machines, and on Windows, Mac, etc.)

Ruby 3.2 introduces a number of new features and performance improvements,
here are some of them:
  * Performance: YJIT: New experimental in-process JIT compiler
  * Development supports
	- debug gem: A new debugger
	- error_highlight: Fine-grained error location in backtrace
	- IRB Autocomplete and Document Display

This package is Ruby 3.2 release minimum base package.
@
text
@d1 1
a1 1
$NetBSD: patch-lib_rubygems_commands_setup__command.rb,v 1.2 2022/11/26 13:02:49 taca Exp $
@

