forked from Lainports/freebsd-ports
lang/ruby30: Update to 3.0.1
Changes: https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/ https://www.ruby-lang.org/en/news/2021/04/05/ruby-3-0-1-released/ PR: 251741 Reported by: Yasuhiro Kimura <yasu@utahime.org>
This commit is contained in:
parent
2ed31f3767
commit
95fa9913f7
6 changed files with 914 additions and 632 deletions
|
|
@ -83,13 +83,13 @@ _SUF1= _${PORTREVISION}
|
|||
_SUF2= ,${PORTEPOCH}
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == "FreeBSD"
|
||||
.if exists(/usr/sbin/dtrace) && (${ARCH} == amd64 || ${ARCH} == i386)
|
||||
CONFIGURE_ARGS+=--enable-dtrace
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-dtrace
|
||||
.endif
|
||||
.endif
|
||||
#.if ${OPSYS} == "FreeBSD"
|
||||
#.if exists(/usr/sbin/dtrace) && (${ARCH} == amd64 || ${ARCH} == i386)
|
||||
#CONFIGURE_ARGS+=--enable-dtrace
|
||||
#.else
|
||||
#CONFIGURE_ARGS+=--disable-dtrace
|
||||
#.endif
|
||||
#.endif
|
||||
|
||||
# keep in sync with all platforms where libunwind is available
|
||||
.if (${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH:Mpowerpc64*})
|
||||
|
|
@ -108,12 +108,12 @@ CONFIGURE_ENV+= ac_cv_func__setjmp=yes
|
|||
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
||||
PLIST_SUB+= IF_DEFAULT=""
|
||||
.else
|
||||
PKGNAMESUFFIX= ${RUBY_VER:C/\.//}
|
||||
PKGNAMESUFFIX= ${RUBY_SUFFIX}
|
||||
PLIST_SUB+= IF_DEFAULT="@comment "
|
||||
.endif
|
||||
|
||||
INSTALLED_SCRIPTS= erb ruby
|
||||
INSTALLED_MANUALS= erb ruby
|
||||
INSTALLED_SCRIPTS= ruby
|
||||
INSTALLED_MANUALS= ruby
|
||||
|
||||
EXTSAMPLES= bigdecimal/sample/*.rb
|
||||
|
||||
|
|
@ -127,11 +127,8 @@ RB_SET_CONF_VAR=${SH} -c '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]
|
|||
|
||||
post-patch:
|
||||
# We get these from other ports
|
||||
.for d in bin/bundle* bin/gem bin/*racc* bin/irb bin/rdoc bin/ri \
|
||||
lib/bundler* libexec/bundler* \
|
||||
man/bundle* man/gemfile* man/irb.1 man/ri.1 \
|
||||
ext/dbm ext/gdbm ext/win32ole
|
||||
@${RM} -r ${BUILD_WRKSRC}/${d}
|
||||
.for d in bin/* ext/dbm ext/gdbm ext/win32* lib/bundler* libexec/bundler* man/bundle* man/erb.1 man/gemfile* man/irb.1 man/ri.1
|
||||
@${RM} -r ${BUILD_WRKSRC}/${d}
|
||||
.endfor
|
||||
|
||||
post-build:
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1601660611
|
||||
SHA256 (ruby/ruby-3.0.0-preview1.tar.xz) = aa7cce0c99f4ea2145fef9b78d74a44857754396790cd23bad75d759811e7a2a
|
||||
SIZE (ruby/ruby-3.0.0-preview1.tar.xz) = 12703060
|
||||
TIMESTAMP = 1618171945
|
||||
SHA256 (ruby/ruby-3.0.1.tar.xz) = d06bccd382d03724b69f674bc46cd6957ba08ed07522694ce44b9e8ffc9c48e2
|
||||
SIZE (ruby/ruby-3.0.1.tar.xz) = 14486780
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
--- tool/rbinstall.rb.orig 2020-10-02 17:47:07 UTC
|
||||
--- tool/rbinstall.rb.orig 2020-12-08 09:02:31 UTC
|
||||
+++ tool/rbinstall.rb
|
||||
@@ -864,147 +864,6 @@ end
|
||||
@@ -864,164 +864,6 @@ end
|
||||
|
||||
# :startdoc:
|
||||
|
||||
|
|
@ -11,16 +11,28 @@
|
|||
- install_default_gem('ext', srcdir)
|
||||
-end
|
||||
-
|
||||
-def load_gemspec(file)
|
||||
-def load_gemspec(file, expanded = false)
|
||||
- file = File.realpath(file)
|
||||
- code = File.read(file, encoding: "utf-8:-")
|
||||
- code.gsub!(/`git.*?`/m, '""')
|
||||
- code.gsub!(/%x\[git.*?\]/m, '""')
|
||||
- code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\([^\)]*\)/m) do
|
||||
- files = []
|
||||
- if expanded
|
||||
- base = File.dirname(file)
|
||||
- Dir.glob("**/*", File::FNM_DOTMATCH, base: base) do |n|
|
||||
- case File.basename(n); when ".", ".."; next; end
|
||||
- next if File.directory?(File.join(base, n))
|
||||
- files << n.dump
|
||||
- end
|
||||
- end
|
||||
- "[" + files.join(", ") + "]"
|
||||
- end
|
||||
- spec = eval(code, binding, file)
|
||||
- unless Gem::Specification === spec
|
||||
- raise TypeError, "[#{file}] isn't a Gem::Specification (#{spec.class} instead)."
|
||||
- end
|
||||
- spec.loaded_from = file
|
||||
- spec.files.reject! {|n| n.end_with?(".gemspec") or n.start_with?(".git")}
|
||||
-
|
||||
- spec
|
||||
-end
|
||||
-
|
||||
|
|
@ -93,9 +105,14 @@
|
|||
- next if /^\s*(?:#|$)/ =~ name
|
||||
- next unless /^(\S+)\s+(\S+).*/ =~ name
|
||||
- gem_name = "#$1-#$2"
|
||||
- path = "#{srcdir}/.bundle/gems/#{gem_name}/#$1.gemspec"
|
||||
- next unless File.exist?(path)
|
||||
- spec = load_gemspec(path)
|
||||
- path = "#{srcdir}/.bundle/gems/#{gem_name}/#{gem_name}.gemspec"
|
||||
- if File.exist?(path)
|
||||
- spec = load_gemspec(path)
|
||||
- else
|
||||
- path = "#{srcdir}/.bundle/gems/#{gem_name}/#$1.gemspec"
|
||||
- next unless File.exist?(path)
|
||||
- spec = load_gemspec(path, true)
|
||||
- end
|
||||
- next unless spec.platform == Gem::Platform::RUBY
|
||||
- next unless spec.full_name == gem_name
|
||||
- spec.extension_dir = "#{extensions_dir}/#{spec.full_name}"
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
From a9ff39087092b21059fca046ace9ca87770692a4 Mon Sep 17 00:00:00 2001
|
||||
From: Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Date: Tue, 29 Sep 2020 13:41:59 +0900
|
||||
Subject: [PATCH] Fixed installation failure [Bug #17191]
|
||||
|
||||
Try update and extract bundled gems only when baseruby is
|
||||
available. It should be done only when installing from
|
||||
developemental build and not from the tarball, but it is not
|
||||
obvious to differentiate them.
|
||||
---
|
||||
common.mk | 2 +-
|
||||
defs/gmake.mk | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git common.mk common.mk
|
||||
index 603429bd35..509f09c1fe 100644
|
||||
--- common.mk
|
||||
+++ common.mk
|
||||
@@ -1296,7 +1296,7 @@ update-config_files: PHONY
|
||||
config.guess config.sub
|
||||
|
||||
refresh-gems: update-bundled_gems prepare-gems
|
||||
-prepare-gems: update-gems extract-gems
|
||||
+prepare-gems: $(HAVE_BASERUBY:yes=update-gems) $(HAVE_BASERUBY:yes=extract-gems)
|
||||
|
||||
update-gems$(gnumake:yes=-nongnumake): PHONY
|
||||
$(ECHO) Downloading bundled gem files...
|
||||
diff --git defs/gmake.mk defs/gmake.mk
|
||||
index 7e9566fee6..31af44a4f1 100644
|
||||
--- defs/gmake.mk
|
||||
+++ defs/gmake.mk
|
||||
@@ -246,7 +246,7 @@ HELP_EXTRA_TASKS = \
|
||||
" update-github: merge master branch and push it to Pull Request [PR=1234]" \
|
||||
""
|
||||
|
||||
-extract-gems: update-gems
|
||||
+extract-gems: $(HAVE_BASERUBY:yes=update-gems)
|
||||
|
||||
BUNDLED_GEMS := $(shell sed '/^[ ]*\#/d;/^[ ]*$$/d;s/[ ][ ]*/-/;s/[ ].*//' $(srcdir)/gems/bundled_gems)
|
||||
|
||||
--
|
||||
2.28.0
|
||||
|
||||
|
|
@ -5,8 +5,10 @@ Some of the standard commands are provided as separate ports for ease
|
|||
of upgrading:
|
||||
|
||||
devel/ruby-gems: gem - RubyGems package manager
|
||||
devel/rubygem-erb: erb - Templating system for Ruby
|
||||
devel/rubygem-irb: irb - Interactive Ruby
|
||||
devel/rubygem-rake: rake - Ruby Make
|
||||
devel/rubygem-rbs: rbs - Language for type signatures for Ruby and standard library definitions
|
||||
devel/rubygem-rdoc: rdoc - Ruby Documentation System
|
||||
sysutils/rubygem-bundler: bundler - Tool that manages gem dependencies for ruby applications
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue