lang/ruby31: Update to 3.1.0

ReleaseNotes:	https://www.ruby-lang.org/en/news/2021/12/25/ruby-3-1-0-released/
This commit is contained in:
Yasuhiro Kimura
2021-12-26 09:13:28 +09:00
parent 790ed97639
commit 1dd141b734
5 changed files with 767 additions and 38 deletions

View File

@@ -161,7 +161,7 @@ RUBY30= "" # PLIST_SUB helpers
#
# Ruby 3.1
#
RUBY_DISTVERSION= 3.1.0-preview1
RUBY_DISTVERSION= 3.1.0
RUBY_PORTREVISION= 0
RUBY_PORTEPOCH= 1
RUBY31= "" # PLIST_SUB helpers

View File

@@ -93,7 +93,8 @@ _SUF2= ,${PORTEPOCH}
#.endif
# keep in sync with all platforms where libunwind is available
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == armv7 || ${ARCH} == \
i386 || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le
LIB_DEPENDS+= libunwind.so:devel/libunwind
.endif
@@ -128,7 +129,8 @@ RB_SET_CONF_VAR= ${SH} -c \
post-patch:
# We get these from other ports
.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
.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
@@ -188,7 +190,7 @@ post-install-DEBUG-off:
.endif
post-install-DOCS-on:
# Create all dirs required (":u" isn't avaiable in STABLE yet :-()
# Create all dirs required (":u" isn't avaiable in STABLE yet :-()
${MKDIR} ${EXTDOCS:C|^([^/]+)/.*|\1|:S|^|${STAGEDIR}${RUBY_DOCDIR}/|}
.for FILE in ${EXTDOCS}
${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \
@@ -202,7 +204,7 @@ post-install-DOCS-on:
${STAGEDIR}${RUBY_DOCDIR}/
post-install-EXAMPLES-on:
# Create all dirs required (":u" isn't avaiable in STABLE yet :-()
# Create all dirs required (":u" isn't avaiable in STABLE yet :-()
${MKDIR} ${EXTSAMPLES:C|^([^/]+)/.*|\1|:S|^|${STAGEDIR}${RUBY_EXAMPLESDIR}/|}
.for FILE in ${EXTSAMPLES}
${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \

View File

@@ -1,3 +1,3 @@
TIMESTAMP = 1636471941
SHA256 (ruby/ruby-3.1.0-preview1.tar.xz) = 86a836ad42f6a7a469fce71ffec48fd3184af55bf79e488b568a4f64adee551d
SIZE (ruby/ruby-3.1.0-preview1.tar.xz) = 15742844
TIMESTAMP = 1640443819
SHA256 (ruby/ruby-3.1.0.tar.xz) = 1a0e0b69b9b062b6299ff1f6c6d77b66aff3995f63d1d8b8771e7a113ec472e2
SIZE (ruby/ruby-3.1.0.tar.xz) = 14709096

View File

@@ -1,6 +1,6 @@
--- tool/rbinstall.rb.orig 2021-11-09 07:21:54 UTC
--- tool/rbinstall.rb.orig 2021-12-25 12:23:14 UTC
+++ tool/rbinstall.rb
@@ -910,186 +910,6 @@ end
@@ -923,188 +923,6 @@ end
# :startdoc:
@@ -61,7 +61,9 @@
- spec = load_gemspec(src)
- file_collector = RbInstall::Specs::FileCollector.new(src)
- files = file_collector.collect
- next if files.empty?
- if file_collector.skip_install?(files)
- next
- end
- spec.files = files
- spec
- }
@@ -165,7 +167,7 @@
- gems.each do |gem|
- package = Gem::Package.new(gem)
- inst = RbInstall::GemInstaller.new(package, options)
- inst.spec.extension_dir = with_destdir(inst.spec.extension_dir)
- inst.spec.extension_dir = "#{extensions_dir}/#{inst.spec.full_name}"
- begin
- Gem::DefaultUserInteraction.use_ui(silent) {inst.install}
- rescue Gem::InstallError

File diff suppressed because it is too large Load Diff