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_dependency__installer.rb,v 1.1 2023/01/21 13:51:23 taca Exp $

* Add install_root option for pkgsrc's rubygems support.

--- lib/rubygems/dependency_installer.rb.orig	2022-12-25 06:55:25.000000000 +0000
+++ lib/rubygems/dependency_installer.rb
@@@@ -22,6 +22,7 @@@@ class Gem::DependencyInstaller
     :force => false,
     :format_executable => false, # HACK dup
     :ignore_dependencies => false,
+      :install_root => @@install_root,
     :prerelease => false,
     :security_policy => nil, # HACK NoSecurity requires OpenSSL. AlmostNo? Low?
     :wrappers => true,
@@@@ -58,6 +59,7 @@@@ class Gem::DependencyInstaller
   # :format_executable:: See Gem::Installer#initialize.
   # :ignore_dependencies:: Don't install any dependencies.
   # :install_dir:: See Gem::Installer#install.
+  # :install_root:: See Gem::Installer#install.
   # :prerelease:: Allow prerelease versions.  See #install.
   # :security_policy:: See Gem::Installer::new and Gem::Security.
   # :user_install:: See Gem::Installer.new
@@@@ -99,7 +101,12 @@@@ class Gem::DependencyInstaller
     @@installed_gems = []
     @@toplevel_specs = nil
 
-    @@cache_dir = options[:cache_dir] || @@install_dir
+    @@install_root = options[:install_root] || ""
+    install_dir = @@install_dir
+    unless @@install_root.nil? or @@install_root.empty?
+      install_dir = File.join(@@install_root, install_dir)
+    end
+    @@cache_dir = options[:cache_dir] || install_dir
 
     @@errors = []
   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_dependency__installer.rb,v 1.1 2022/01/16 13:57:10 taca Exp $
@

