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

* Add install_root option for pkgsrc's rubygems support.
* Tweak build_info directory with destdir to store build_args.

--- lib/rubygems/installer.rb.orig	2022-11-24 10:20:31.000000000 +0000
+++ lib/rubygems/installer.rb
@@@@ -166,6 +166,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.
@@@@ -669,7 +672,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)
+    unless install_root.nil? or install_root.empty?
+      @@install_root = File.expand_path install_root
+      @@gem_home = File.join(@@install_root, @@gem_home)
+      @@plugins_dir         = Gem.plugindir(@@gem_home)
+    end
     @@development         = options[:development]
     @@build_root          = options[:build_root]
 
@@@@ -928,6 +937,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
 
     dir_mode = options[:dir_mode]
     FileUtils.mkdir_p build_info_dir, :mode => dir_mode && 0755
@


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_installer.rb,v 1.2 2022/11/26 13:02:49 taca Exp $
@

