summaryrefslogtreecommitdiff
path: root/dev-lang/ruby
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-09-16 22:05:01 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-09-16 22:05:01 +0100
commitcc4618c9ba3d974948ebf340b542d8cb01db2f55 (patch)
tree125ee67bb9e0d548771cf7b61d04bb1f0dc57687 /dev-lang/ruby
parent677b7ba5c317778df2ad7e70df94b9b7eec4adbc (diff)
gentoo resync : 16.09.2021
Diffstat (limited to 'dev-lang/ruby')
-rw-r--r--dev-lang/ruby/Manifest16
-rw-r--r--dev-lang/ruby/files/2.4/002_windows_crossdev.patch64
-rw-r--r--dev-lang/ruby/files/2.4/005_no-undefined-ext.patch11
-rw-r--r--dev-lang/ruby/files/2.4/009_no-gems.patch112
-rw-r--r--dev-lang/ruby/files/2.4/011-gcc8.patch64
-rw-r--r--dev-lang/ruby/files/2.4/012-openssl_1.1.patch339
-rw-r--r--dev-lang/ruby/files/2.5/001-ia64-update-ia64-specific-code-to-use-execution-cont.patch67
-rw-r--r--dev-lang/ruby/files/2.5/002-autoconf-2.70.patch65
-rw-r--r--dev-lang/ruby/files/2.5/005_no-undefined-ext.patch11
-rw-r--r--dev-lang/ruby/files/2.5/009_no-gems.patch95
-rw-r--r--dev-lang/ruby/files/2.5/011-no-gems.patch85
-rw-r--r--dev-lang/ruby/metadata.xml2
-rw-r--r--dev-lang/ruby/ruby-2.5.8-r2.ebuild220
-rw-r--r--dev-lang/ruby/ruby-2.5.9-r1.ebuild246
14 files changed, 2 insertions, 1395 deletions
diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest
index 4a2d3078666a..50db3b0b3552 100644
--- a/dev-lang/ruby/Manifest
+++ b/dev-lang/ruby/Manifest
@@ -1,13 +1,3 @@
-AUX 2.4/002_windows_crossdev.patch 2175 BLAKE2B 988871c957bd1b54c0ce46d98f47b67dc9a708a641ed27b8159021384dec8fe72ecfab0c8c081dfab8025c1de7b356771bb45ed6b6911d200e81edc75c095dfd SHA512 5e88b30680f1d1d34e218972180271f57dce4db0299e423ce96901e8eadb9e461e38649adfc10d0361e8715ec94bfc7fe3198a95eca2d817cfccc3a677b60523
-AUX 2.4/005_no-undefined-ext.patch 479 BLAKE2B b11ae86049ed792e5f98e6e56d93468b0a3346aa33b8df076f1c50569bebeaa73f8d59452749654c4771fb7677ff4be19d7f566f6b7e548613caba6310f54dcd SHA512 347cbc588ac2551bd0f66cdcfa79d63ed51e0a743aa981420ed5205bda35efae752795b6a527985948b978e755b5c25a29c663cb5651fe58f37c3d9e711be42e
-AUX 2.4/009_no-gems.patch 4153 BLAKE2B c7d056d46cd769a00c3ae8b3866ad7ca7126fe008362461561693b6da7fb867c5418cc9f5fb11af242842af5edab050b68fafd349b8c6e75af208f6a36850900 SHA512 ec63fa29a6be3b86b4bde397292a2de73accbdab479ae881af9d364d7c8cb1f2a3e85c809735d47375b52923754d4abbd26a63c01616926189fda5e4a5a8a454
-AUX 2.4/011-gcc8.patch 2470 BLAKE2B d6fe2e34e7c33ca7bccf3b934092ef43b4ba8766d8c160a0548fa4946fc61a763634037c3180479896802e6e75828af043e75839fd03cc9e4b6e126c833d2cb8 SHA512 1636dc821a822ab6ec919e576ebba9e9cba64540801df6a2b4411e650930ec5cdc3ab28aeb3c5d45d3304f73af52372c2dee91833bcd9952692f3167d21007d2
-AUX 2.4/012-openssl_1.1.patch 12158 BLAKE2B b7a77180159d6e2620a148b1c8dc2b137dbad0263d4f588c2d533a0ab9775ea0e685770fc708c3d4ae7ac53c16f657b990af39032219807925e46bcf11478d6b SHA512 050eeb45f7bc8a11bcd7fea0dfabb6137a009cc8f8337aa1c62ca4cd476ff0d66723148a20764a72843a5809f3dd66fe7a607a6098e5da990c90a3d2e15a6f54
-AUX 2.5/001-ia64-update-ia64-specific-code-to-use-execution-cont.patch 2501 BLAKE2B 7c166f47ce8264354272c7f74ebee5fbe038b1cf06230c6507f62d823be266959b622a0a61920845dfc38fbe7846c4ccd1cabf8e133f456e94b1da5197c49526 SHA512 72319113329c7c3c74e5bab21b67256327a65fbe01827cd32ea289de769a91b493c5d1eb35a087ed026105a9e5daf8b0bc17374c01ef1a83cb408440d6316706
-AUX 2.5/002-autoconf-2.70.patch 1916 BLAKE2B bd5d2f079aee5506b7c3d77642dad8ce465aabeea3fc0d86065e14cc5bb6d2d77e99cfc1a895674c4654d20a8322c9d21c518bca598d3be1e069bed88c8945db SHA512 8f6c7da86d618dd5f47019e1fdf1094294b46dd4d0c097ef90a62ca3ef41972ffb84bd1d40de0a3851682d9615215fc705f1b0d205724d8178ddd353d85eca75
-AUX 2.5/005_no-undefined-ext.patch 486 BLAKE2B 715f952cab863847f420afb020cac6819e4ab4e8f5527bdf550dd51eef37e272e7e89cbda5b6f9f137fdac89dfc5e99d42be8ae5712c255f11a0628cf07dc84d SHA512 6bbded9fce0c091b7cfb170c9dc2b0882b0e8bbf8fe31eaf596f3620853c8c75aa64c2648d5a72a0208a6ab6d711eb080a2d6aa98352933eda3b874bdd39cee8
-AUX 2.5/009_no-gems.patch 3454 BLAKE2B f2439a799776c39ba16f1503d573c90ea6d74fc2bad3b3874a961add6b605bb064c683080a4258ed1a0e83bca5cb67c02ba68bceb6acea7613ab7166e16a2f4c SHA512 bef8b2763993755b5b6ccba0b5cbe002fd721405d7c274f421ae3d95fa4d0d99cdf946f5fa9a907cac2c3696b2cc23f2f2e030b3a70eca93081e49b02f25a072
-AUX 2.5/011-no-gems.patch 3139 BLAKE2B ce05d6ef90001b3011167ba0827ef7852173fa508d6b4cd584f853e90a9d18325e7f2823e306fe7dd139cbdcce2a3c31cc7d2546909798489dec082dcc00d937 SHA512 758cf5ba94ab38753e8489284587254d172c308509d7542ecaca0a368cfd0834561e9d51e814c388f1b607740627ddd9cfc239c02333c24bcf7b7fb890e6909e
AUX 2.6/002-autoconf-2.70.patch 1916 BLAKE2B bd5d2f079aee5506b7c3d77642dad8ce465aabeea3fc0d86065e14cc5bb6d2d77e99cfc1a895674c4654d20a8322c9d21c518bca598d3be1e069bed88c8945db SHA512 8f6c7da86d618dd5f47019e1fdf1094294b46dd4d0c097ef90a62ca3ef41972ffb84bd1d40de0a3851682d9615215fc705f1b0d205724d8178ddd353d85eca75
AUX 2.6/005_no-undefined-ext.patch 486 BLAKE2B 715f952cab863847f420afb020cac6819e4ab4e8f5527bdf550dd51eef37e272e7e89cbda5b6f9f137fdac89dfc5e99d42be8ae5712c255f11a0628cf07dc84d SHA512 6bbded9fce0c091b7cfb170c9dc2b0882b0e8bbf8fe31eaf596f3620853c8c75aa64c2648d5a72a0208a6ab6d711eb080a2d6aa98352933eda3b874bdd39cee8
AUX 2.6/009_no-gems.patch 1261 BLAKE2B 359d0a73c374e5c464eb0343d33272244bb88ba200977007a93f3c3c776779a013174fc2c97717e4ae4a1495011d3baae80e68b07433eab1320955a49aed8b59 SHA512 1607b9c2021e5b5f08cf28c64d3f3ddd077bc47df02a353182a9bc70dc6831ea18e8681d9808bb6841939d64082ae4966081014ee110d2090ec67ffe8faa9b8b
@@ -17,14 +7,10 @@ AUX 2.7/003-did-you-mean.patch 459 BLAKE2B af0f9c8b5a79c80c68163de7c766042ad2769
AUX 2.7/010-default-gem-location.patch 688 BLAKE2B 4c2074d69b9fe5258a2fe0e38bb501a39f34ad1fa08ef338224edba1f06073138cbe3d831ecdf9910c989a7f0a1c6c6b73ced0d8ff212207a3a3df5f4d90b5de SHA512 65206a6ca42ade0413ae1467f41082f4a93b3166644d2504cff3d280d23da02fd41aea5aca69dd43f6081b436db90a5b1e98725d8fa51519ca302c02ec526ad7
AUX 3.0/001-socksocket-fix.patch 457 BLAKE2B cf3e15858481cdaa48be2cb3685bed663d9de792c743f6ef07ea5d2be214d630ee9bd70c1b6958110516d69a1889fdc4cf26676e52c55d4d530588b8274f962e SHA512 77381cb3c8d4a87a5ae06966d5dd00a38ea07148ed2feacb883e1d041d85ae0a6d64b30fd213f2ac0b1a07e3722f0e724cd0ec8414e74dc4de8844d849584b00
AUX 3.0/010-default-gem-location.patch 753 BLAKE2B 2e9c209521e113c9b5b66ef305a2f29e042bc9330cc95ca847e04aec7a9450de48904bf583265aceec5984e8384e78a37b16a65435962ffc3ef458019b5ebedf SHA512 af63cd6c2c998533fd518abc6f48d1acb0f185e3bc9c4747301f7c7f3b3780e456f32db0252a0a03306dbc19a63d24c031fcfb7c35d732190fa68763e5817dcd
-DIST ruby-2.5.8.tar.xz 11298404 BLAKE2B 3256c0448e72b63c0bd89f89a27fa9c09c8feed54d42cd79899b7d5cfe9dbc29ca708d12c630b3f52ff85b0c6a4011ae7ff0483d64b2fd445700a72a91028035 SHA512 2886be764a454425c5beef2777c64a70ee0d048b07896b327633d904f5077fea4299526689f9e2ac4dcd2fc4811cf9a6c8ce75367ed35d29dfe1a54222872e0d
-DIST ruby-2.5.9.tar.xz 11314448 BLAKE2B ed3c698f076066b0ca771d69ffeb92bf10de6fe051a36d373445ce071af850cb707344becf610657b473d14c7d4dcfb6a814b9d69ed6999e69c6dc3bfb3eaee4 SHA512 239f73eb4049ae2654b648ab927b1f74643d38a5f29572e4bd4e6aa3c53c1df29e0a995fd90d4ab9d4b2ff073fd809b12df820ccb1ddf395684bba6be1855b7a
DIST ruby-2.6.8.tar.xz 11599488 BLAKE2B e5b2949233d8540f72d4d8b9c246f9bd0d1342426d2a1c19cb240b7c86f37299e9dc1dfc98ef2a86d1d91055865b4542d690de5567c71189bf2973a4989fa0fd SHA512 d040ad2238523587d8f356fcb796b8b6ad7f8caff7dd6df09e3f7efcbfa0369e33600e78c7f2bc713ae77c040757cce5c4fec223cb9070209f2bf741899c556d
DIST ruby-2.7.4.tar.xz 12067588 BLAKE2B 2680a7ccd1daf3d156d9519d9132853e68f5f1aad592abce3e73fdd03314a6c28e7d94590153aead86af8952ff51f804ee029f8100b0137919cc27373cb8b9cd SHA512 2cbb70ecfdd69120e789023ddb2b25cab0d03bc33fdc367a8f74ca8a3ee785c18c8ded9de3ecee627c7e275ffb85147e6abf921b6a61e31851b37c7fedf45bf9
DIST ruby-3.0.2.tar.xz 14746080 BLAKE2B 47c5591261fb63b1ec3ca719ea6b0c348937456c3711351c1f5317d1e6a748de197e90c8bd4ff822f7b2d4580ad7ed0b54b9eb7aaa5166ea1a15ab2deae96439 SHA512 0f702e2d8ca1342a9d4284dbdd234a3588e057b92566353aa7c21835cf09a3932864b2acf459a976960a1704e9befa562155d36b98b7cda8bd99526e10a374c4
-EBUILD ruby-2.5.8-r2.ebuild 6154 BLAKE2B 1db3898b01e7af02e42c7c638046ec52f5cecb3acab8f638135b86db73a41f400766fb5cd2b7c99b5ac626d058739eb6f337c21b5e8f6bcfc5bc40a6189b8c2e SHA512 d284b48493f5915304ba42a4a91664bc247ba4c187d1ce7c54d6e163c6b8d65af7ec6d7b6086c949ee9545df0f0070353e59e4608900e1736a8d2ce65f943453
-EBUILD ruby-2.5.9-r1.ebuild 7030 BLAKE2B 3ccf395a5f5bf5a4c84c45ad5ac1e86201c471776207f0f03e05508bf0c8cb75c700c3ea9570f86b9af2c0c0936503d0d56127083b54533969b1a226574bda07 SHA512 4ebf5e39da37cc48e318ba70237336a1abf98ce209168e334d2dfce0b03e171f427dd1d285ec1d4da72cace005914f0111e1407f2a5c794e4305b8456eefe269
EBUILD ruby-2.6.8.ebuild 7481 BLAKE2B c37e80c3f6debd1befd5d8b5cfff7ffa547557e94fecfb51c962a7a4ce6052fd047d9f5f143302d5d53887bac0463b65f2649b199625430fd5a49e32c565884a SHA512 b3be72cde078972a1e6dd9969dd7dd085d4fed10d2c7a87128773962955e788cd11868a93f44adb2887a23bffebca3a4155309bb9cb0af55fa2df851f48410c0
EBUILD ruby-2.7.4.ebuild 7720 BLAKE2B fd322cb2b1e580e2bc64c273f5bd6983b267dec2f3b3cd5a13aef3ef3406936f5a24802f0403afa787a92a803f98a9b17bf2323ae1b9f2357c2c9ee500d001c1 SHA512 3e438dededf89ee6ad6d7e7e9c842714c6f904023ebcd11de25ddf8520170c3057515392640503264d3c7041e19fbdc81a990eb032e09c7f7af28ab80779b832
EBUILD ruby-3.0.2.ebuild 7684 BLAKE2B 8783bf44e0da28ea94b68b65795d551e88e25628284ae1671074b38843a39d52a908e82ae6ce6e4ad91e7c1ef37d307ded17c153a0cbbc15bae6f92222351b0e SHA512 582bf0a50b4d0f00bfaba643ea2ef79a22c354b8650da1dde2d05e11689d0ac0f8e67b79793451f6a246e8f30be4760188e5f08164169a91a1e1ee90aa62574c
-MISC metadata.xml 523 BLAKE2B 4ed08360a279c8d44fe87f677cdc24a76eda6d37c591186951e16321f464d4451d0d1299c4e1d996bffe15a8cca672d4c5c1bc5fb0aa6cda69b8eff90ec31df8 SHA512 f74c386a3d6314d630aff11c40314db40b7f9fb202910480b37aa65b7bac62d6e87fa7590b2a26aa1713bb65be486ed84138e1273eaf7c8b966d7414e6b55464
+MISC metadata.xml 524 BLAKE2B 78b64ea8e53d1bcfa249561354ef45ca34cdbcf6c4147944e98e6a17d884f5b4b29c0ddb6047bf2883a57f9a53386626bb7a779ef80ddcb33301d0e3822ead6b SHA512 1b254526486eb7d1d132f1286056d55963cb569ab47ccc94d625a9789e4dd3c45b5639510535543d96d2d7a3ccae13535e2e35ba9d78873d75ecac3bedfae762
diff --git a/dev-lang/ruby/files/2.4/002_windows_crossdev.patch b/dev-lang/ruby/files/2.4/002_windows_crossdev.patch
deleted file mode 100644
index 7e290d434f03..000000000000
--- a/dev-lang/ruby/files/2.4/002_windows_crossdev.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-Bug: https://bugs.gentoo.org/show_bug.cgi?id=618878
-
-A few patches to make crossdev for mingw-w64 play nice with ruby's ebuilds.
-Basic gist is that without the following patch to configure.in ruby-2.4.1
-hardcodes 240 into the shared, static, and import library names, which when
-built with the current ruby ebuilds results in names like libx64-msvcrt-ruby24240.dll and so on. The patch is in ruby-trunk[1], but may take a while
-to hit the tarballs that gentoo uses.
-
-Index: configure.in
-===================================================================
---- a/configure.in (revision 57824)
-+++ b/configure.in (revision 57825)
-@@ -3825,7 +3825,23 @@
-
- AC_ARG_WITH(soname,
- AS_HELP_STRING([--with-soname=SONAME], [base name of shared library]),
-- [RUBY_SO_NAME=$withval], [RUBY_SO_NAME='$(RUBY_BASE_NAME)'])
-+ [RUBY_SO_NAME=$withval],
-+ [
-+ AS_CASE(["$target_os"],
-+ [darwin*], [
-+ RUBY_SO_NAME='$(RUBY_BASE_NAME).$(RUBY_PROGRAM_VERSION)'
-+ ],
-+ [cygwin*], [
-+ RUBY_SO_NAME='$(RUBY_BASE_NAME)$(MAJOR)$(MINOR)0'
-+ ],
-+ [mingw*], [
-+ RUBY_SO_NAME="${rb_cv_msvcrt}"'-$(RUBY_BASE_NAME)$(MAJOR)$(MINOR)0'
-+ AS_IF([test x"${target_cpu}" != xi386], [
-+ RUBY_SO_NAME="${target_cpu}-${RUBY_SO_NAME}"
-+ ])
-+ ],
-+ [RUBY_SO_NAME='$(RUBY_BASE_NAME)'])
-+ ])
-
- LIBRUBY_LDSHARED=$LDSHARED
- LIBRUBY_DLDFLAGS=$DLDFLAGS
-@@ -3925,7 +3941,6 @@
- SOLIBS='-lm -lc'
- ],
- [darwin*], [
-- RUBY_SO_NAME="$RUBY_SO_NAME"'.$(RUBY_PROGRAM_VERSION)'
- LIBRUBY_LDSHARED='$(CC) -dynamiclib'
- if test "$load_relative" = yes; then
- libprefix="@executable_path/../${libdir_basename}"
-@@ -4157,7 +4172,6 @@
- fi
- ],
- [cygwin*|mingw*], [
-- RUBY_SO_NAME="${RUBY_SO_NAME}"'$(MAJOR)$(MINOR)0'
- LIBRUBY_DLDFLAGS="${DLDFLAGS}"' -Wl,--out-implib=$(LIBRUBY)'
- AS_CASE(["$target_os"],
- [cygwin*], [
-@@ -4167,10 +4181,6 @@
- fi
- ],
- [mingw*], [
-- RUBY_SO_NAME="${rb_cv_msvcrt}-${RUBY_SO_NAME}"
-- if test x"${target_cpu}" != xi386; then
-- RUBY_SO_NAME="${target_cpu}-${RUBY_SO_NAME}"
-- fi
- if test x"$enable_shared" = xyes; then
- LIBRUBY_SO='$(RUBY_SO_NAME)'.dll
- LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)'
diff --git a/dev-lang/ruby/files/2.4/005_no-undefined-ext.patch b/dev-lang/ruby/files/2.4/005_no-undefined-ext.patch
deleted file mode 100644
index f27993240128..000000000000
--- a/dev-lang/ruby/files/2.4/005_no-undefined-ext.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ruby-1.9.3-preview1.orig/configure.in
-+++ ruby-1.9.3-preview1/configure.in
-@@ -2038,7 +2038,7 @@ if test "$with_dln_a_out" != yes; then
- [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu], [
- : ${LDSHARED='$(CC) -shared'}
- if test "$rb_cv_binary_elf" = yes; then
-- LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
-+ LDFLAGS="$LDFLAGS -Wl,-export-dynamic -Wl,--no-undefined"
- fi
- rb_cv_dlopen=yes],
- [interix*], [ : ${LDSHARED='$(CC) -shared'}
diff --git a/dev-lang/ruby/files/2.4/009_no-gems.patch b/dev-lang/ruby/files/2.4/009_no-gems.patch
deleted file mode 100644
index 6e4e2643d4c0..000000000000
--- a/dev-lang/ruby/files/2.4/009_no-gems.patch
+++ /dev/null
@@ -1,112 +0,0 @@
---- a/tool/rbinstall.rb.~1~ 2016-10-17 09:17:07.000000000 +0200
-+++ b/tool/rbinstall.rb 2016-12-25 08:20:07.873491045 +0100
-@@ -695,107 +695,11 @@
- # :startdoc:
-
- install?(:ext, :comm, :gem) do
-- gem_dir = Gem.default_dir
-- directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
-- prepare "default gems", gem_dir, directories
--
-- spec_dir = File.join(gem_dir, directories.grep(/^spec/)[0])
-- default_spec_dir = "#{spec_dir}/default"
-- makedirs(default_spec_dir)
--
-- gems = Dir.glob(srcdir+"/{lib,ext}/**/*.gemspec").map {|src|
-- spec = Gem::Specification.load(src) || raise("invalid spec in #{src}")
-- file_collector = RbInstall::Specs::FileCollector.new(File.dirname(src))
-- files = file_collector.collect
-- next if files.empty?
-- spec.files = files
-- spec
-- }
-- gems.compact.sort_by(&:name).each do |gemspec|
-- full_name = "#{gemspec.name}-#{gemspec.version}"
--
-- puts "#{" "*30}#{gemspec.name} #{gemspec.version}"
-- gemspec_path = File.join(default_spec_dir, "#{full_name}.gemspec")
-- open_for_install(gemspec_path, $data_mode) do
-- gemspec.to_ruby
-- end
--
-- unless gemspec.executables.empty? then
-- bin_dir = File.join(gem_dir, 'gems', full_name, gemspec.bindir)
-- makedirs(bin_dir)
--
-- execs = gemspec.executables.map {|exec| File.join(srcdir, 'bin', exec)}
-- install(execs, bin_dir, :mode => $script_mode)
-- end
-- end
-+ # gems are unbundled in Gentoo
- end
-
- install?(:ext, :comm, :gem) do
-- gem_dir = Gem.default_dir
-- directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
-- prepare "bundle gems", gem_dir, directories
-- install_dir = with_destdir(gem_dir)
-- installed_gems = {}
-- options = {
-- :install_dir => install_dir,
-- :bin_dir => with_destdir(bindir),
-- :domain => :local,
-- :ignore_dependencies => true,
-- :dir_mode => $dir_mode,
-- :data_mode => $data_mode,
-- :prog_mode => $prog_mode,
-- :wrappers => true,
-- :format_executable => true,
-- }
-- gem_ext_dir = "#$extout/gems/#{CONFIG['arch']}"
-- extensions_dir = Gem::StubSpecification.gemspec_stub("", gem_dir, gem_dir).extensions_dir
-- Gem::Specification.each_gemspec([srcdir+'/gems/*']) do |path|
-- dir = File.dirname(path)
-- spec = Dir.chdir(dir) {
-- Gem::Specification.load(File.basename(path))
-- }
-- next unless spec.platform == Gem::Platform::RUBY
-- next unless spec.full_name == path[srcdir.size..-1][/\A\/gems\/([^\/]+)/, 1]
-- spec.extension_dir = "#{extensions_dir}/#{spec.full_name}"
-- if File.directory?(ext = "#{gem_ext_dir}/#{spec.full_name}")
-- spec.extensions[0] ||= "-"
-- end
-- ins = RbInstall::UnpackedInstaller.new(spec, options)
-- puts "#{" "*30}#{spec.name} #{spec.version}"
-- ins.install
-- File.chmod($data_mode, File.join(install_dir, "specifications", "#{spec.full_name}.gemspec"))
-- unless spec.extensions.empty?
-- install_recursive(ext, spec.extension_dir)
-- end
-- installed_gems[spec.full_name] = true
-- end
-- installed_gems, gems = Dir.glob(srcdir+'/gems/*.gem').partition {|gem| installed_gems.key?(File.basename(gem, '.gem'))}
-- unless installed_gems.empty?
-- install installed_gems, gem_dir+"/cache"
-- end
-- next if gems.empty?
-- if defined?(Zlib)
-- Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name)))
-- silent = Gem::SilentUI.new
-- gems.each do |gem|
-- inst = Gem::Installer.new(gem, options)
-- inst.spec.extension_dir = with_destdir(inst.spec.extension_dir)
-- begin
-- Gem::DefaultUserInteraction.use_ui(silent) {inst.install}
-- rescue Gem::InstallError => e
-- next
-- end
-- gemname = File.basename(gem)
-- puts "#{" "*30}#{gemname}"
-- end
-- # fix directory permissions
-- # TODO: Gem.install should accept :dir_mode option or something
-- File.chmod($dir_mode, *Dir.glob(install_dir+"/**/"))
-- # fix .gemspec permissions
-- File.chmod($data_mode, *Dir.glob(install_dir+"/specifications/*.gemspec"))
-- else
-- puts "skip installing bundle gems because of lacking zlib"
-- end
-+ # gems are unbundled in Gentoo
- end
-
- parse_args()
diff --git a/dev-lang/ruby/files/2.4/011-gcc8.patch b/dev-lang/ruby/files/2.4/011-gcc8.patch
deleted file mode 100644
index cb2443631dd8..000000000000
--- a/dev-lang/ruby/files/2.4/011-gcc8.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 027b576b31cd12bad575b3a39476726273f58c41 Mon Sep 17 00:00:00 2001
-From: naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
-Date: Mon, 18 Dec 2017 09:03:59 +0000
-Subject: [PATCH] suppress warning: 'const' attribute on function returning
- 'void'
-
-git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
----
- include/ruby/intern.h | 4 ++--
- include/ruby/ruby.h | 2 +-
- internal.h | 4 ++--
- 3 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/include/ruby/intern.h b/include/ruby/intern.h
-index 5684b3230a67..a711b861159f 100644
---- a/include/ruby/intern.h
-+++ b/include/ruby/intern.h
-@@ -249,9 +249,9 @@ PRINTF_ARGS(NORETURN(void rb_name_error_str(VALUE, const char*, ...)), 2, 3);
- NORETURN(void rb_invalid_str(const char*, const char*));
- NORETURN(void rb_error_frozen(const char*));
- NORETURN(void rb_error_frozen_object(VALUE));
--CONSTFUNC(void rb_error_untrusted(VALUE));
-+void rb_error_untrusted(VALUE);
- void rb_check_frozen(VALUE);
--CONSTFUNC(void rb_check_trusted(VALUE));
-+void rb_check_trusted(VALUE);
- #define rb_check_frozen_internal(obj) do { \
- VALUE frozen_obj = (obj); \
- if (OBJ_FROZEN(frozen_obj)) { \
-diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
-index 9c7d2fb68439..3210103c648a 100644
---- a/include/ruby/ruby.h
-+++ b/include/ruby/ruby.h
-@@ -628,7 +628,7 @@ int ruby_safe_level_2_warning(void) __attribute__((const,warning("$SAFE=2 to 4 a
- # define rb_set_safe_level(level) rb_set_safe_level(RUBY_SAFE_LEVEL_CHECK(level, error))
- #endif
- void rb_set_safe_level_force(int);
--CONSTFUNC(void rb_secure_update(VALUE));
-+void rb_secure_update(VALUE);
- NORETURN(void rb_insecure_operation(void));
-
- VALUE rb_errinfo(void);
-diff --git a/internal.h b/internal.h
-index d0257a8d8ba0..4ccf3218c6ca 100644
---- a/internal.h
-+++ b/internal.h
-@@ -1110,7 +1110,7 @@ VALUE rb_invcmp(VALUE, VALUE);
- struct rb_block;
- int rb_dvar_defined(ID, const struct rb_block *);
- int rb_local_defined(ID, const struct rb_block *);
--CONSTFUNC(const char * rb_insns_name(int i));
-+const char * rb_insns_name(int i);
- VALUE rb_insns_name_array(void);
-
- /* complex.c */
-@@ -1136,7 +1136,7 @@ void Init_ext(void);
-
- /* encoding.c */
- ID rb_id_encoding(void);
--CONSTFUNC(void rb_gc_mark_encodings(void));
-+void rb_gc_mark_encodings(void);
- rb_encoding *rb_enc_get_from_index(int index);
- rb_encoding *rb_enc_check_str(VALUE str1, VALUE str2);
- int rb_encdb_replicate(const char *alias, const char *orig);
diff --git a/dev-lang/ruby/files/2.4/012-openssl_1.1.patch b/dev-lang/ruby/files/2.4/012-openssl_1.1.patch
deleted file mode 100644
index edf344bedc8c..000000000000
--- a/dev-lang/ruby/files/2.4/012-openssl_1.1.patch
+++ /dev/null
@@ -1,339 +0,0 @@
-From 7af808153dd34a980e027a04d4490ae38019b3ed Mon Sep 17 00:00:00 2001
-From: Mark Wright <gienah@gentoo.org>
-Date: Sun, 15 Oct 2017 01:24:12 +1100
-Subject: [PATCH] Fix build failure against OpenSSL 1.1 built with
- no-deprecated Thanks rhenium for the code review and fixes.
-
----
- ext/openssl/openssl_missing.h | 4 +++
- ext/openssl/ossl.c | 23 ++++++---------
- ext/openssl/ossl.h | 5 ++++
- ext/openssl/ossl_cipher.c | 14 ++++-----
- ext/openssl/ossl_engine.c | 54 ++++++++++++++++++++++-------------
- ext/openssl/ossl_ssl.c | 2 +-
- ext/openssl/ossl_x509cert.c | 4 +--
- ext/openssl/ossl_x509crl.c | 4 +--
- 8 files changed, 63 insertions(+), 47 deletions(-)
-
-diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h
-index cc31f6ac..debd25ad 100644
---- a/ext/openssl/openssl_missing.h
-+++ b/ext/openssl/openssl_missing.h
-@@ -209,6 +209,10 @@ IMPL_PKEY_GETTER(EC_KEY, ec)
- # define X509_get0_notAfter(x) X509_get_notAfter(x)
- # define X509_CRL_get0_lastUpdate(x) X509_CRL_get_lastUpdate(x)
- # define X509_CRL_get0_nextUpdate(x) X509_CRL_get_nextUpdate(x)
-+# define X509_set1_notBefore(x, t) X509_set_notBefore(x, t)
-+# define X509_set1_notAfter(x, t) X509_set_notAfter(x, t)
-+# define X509_CRL_set1_lastUpdate(x, t) X509_CRL_set_lastUpdate(x, t)
-+# define X509_CRL_set1_nextUpdate(x, t) X509_CRL_set_nextUpdate(x, t)
- #endif
-
- #if !defined(HAVE_SSL_SESSION_GET_PROTOCOL_VERSION)
-diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
-index 93ecc7d4..245385e7 100644
---- a/ext/openssl/ossl.c
-+++ b/ext/openssl/ossl.c
-@@ -1109,25 +1109,14 @@ Init_openssl(void)
- /*
- * Init all digests, ciphers
- */
-- /* CRYPTO_malloc_init(); */
-- /* ENGINE_load_builtin_engines(); */
-+#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000
-+ if (!OPENSSL_init_ssl(0, NULL))
-+ rb_raise(rb_eRuntimeError, "OPENSSL_init_ssl");
-+#else
- OpenSSL_add_ssl_algorithms();
- OpenSSL_add_all_algorithms();
- ERR_load_crypto_strings();
- SSL_load_error_strings();
--
-- /*
-- * FIXME:
-- * On unload do:
-- */
--#if 0
-- CONF_modules_unload(1);
-- destroy_ui_method();
-- EVP_cleanup();
-- ENGINE_cleanup();
-- CRYPTO_cleanup_all_ex_data();
-- ERR_remove_state(0);
-- ERR_free_strings();
- #endif
-
- /*
-@@ -1149,7 +1138,11 @@ Init_openssl(void)
- /*
- * Version of OpenSSL the ruby OpenSSL extension is running with
- */
-+#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000
-+ rb_define_const(mOSSL, "OPENSSL_LIBRARY_VERSION", rb_str_new2(OpenSSL_version(OPENSSL_VERSION)));
-+#else
- rb_define_const(mOSSL, "OPENSSL_LIBRARY_VERSION", rb_str_new2(SSLeay_version(SSLEAY_VERSION)));
-+#endif
-
- /*
- * Version number of OpenSSL the ruby OpenSSL extension was built with
-diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h
-index f08889b2..5a15839c 100644
---- a/ext/openssl/ossl.h
-+++ b/ext/openssl/ossl.h
-@@ -35,6 +35,11 @@
- #if !defined(OPENSSL_NO_OCSP)
- # include <openssl/ocsp.h>
- #endif
-+#include <openssl/bn.h>
-+#include <openssl/rsa.h>
-+#include <openssl/dsa.h>
-+#include <openssl/evp.h>
-+#include <openssl/dh.h>
-
- /*
- * Common Module
-diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c
-index bfa76c1a..e6179733 100644
---- a/ext/openssl/ossl_cipher.c
-+++ b/ext/openssl/ossl_cipher.c
-@@ -508,9 +508,9 @@ ossl_cipher_set_iv(VALUE self, VALUE iv)
- StringValue(iv);
- GetCipher(self, ctx);
-
- #if defined(HAVE_AUTHENTICATED_ENCRYPTION)
-- if (EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_FLAG_AEAD_CIPHER)
-+ if (EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & EVP_CIPH_FLAG_AEAD_CIPHER)
- iv_len = (int)(VALUE)EVP_CIPHER_CTX_get_app_data(ctx);
- #endif
- if (!iv_len)
- iv_len = EVP_CIPHER_CTX_iv_length(ctx);
-@@ -535,7 +535,7 @@ ossl_cipher_is_authenticated(VALUE self)
-
- GetCipher(self, ctx);
-
- #if defined(HAVE_AUTHENTICATED_ENCRYPTION)
-- return (EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_FLAG_AEAD_CIPHER) ? Qtrue : Qfalse;
-+ return (EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & EVP_CIPH_FLAG_AEAD_CIPHER) ? Qtrue : Qfalse;
- #else
- return Qfalse;
- #endif
-@@ -606,7 +606,7 @@ ossl_cipher_get_auth_tag(int argc, VALUE *argv, VALUE self)
-
- GetCipher(self, ctx);
-
-- if (!(EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_FLAG_AEAD_CIPHER))
-+ if (!(EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & EVP_CIPH_FLAG_AEAD_CIPHER))
- ossl_raise(eCipherError, "authentication tag not supported by this cipher");
-
- ret = rb_str_new(NULL, tag_len);
-@@ -641,7 +641,7 @@ ossl_cipher_set_auth_tag(VALUE self, VALUE vtag)
- tag_len = RSTRING_LENINT(vtag);
-
- GetCipher(self, ctx);
-- if (!(EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_FLAG_AEAD_CIPHER))
-+ if (!(EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & EVP_CIPH_FLAG_AEAD_CIPHER))
- ossl_raise(eCipherError, "authentication tag not supported by this cipher");
-
- if (!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, tag_len, tag))
-@@ -668,7 +668,7 @@ ossl_cipher_set_auth_tag_len(VALUE self, VALUE vlen)
- EVP_CIPHER_CTX *ctx;
-
- GetCipher(self, ctx);
-- if (!(EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_FLAG_AEAD_CIPHER))
-+ if (!(EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & EVP_CIPH_FLAG_AEAD_CIPHER))
- ossl_raise(eCipherError, "AEAD not supported by this cipher");
-
- if (!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, tag_len, NULL))
-@@ -695,7 +695,7 @@ ossl_cipher_set_iv_length(VALUE self, VALUE iv_length)
- EVP_CIPHER_CTX *ctx;
-
- GetCipher(self, ctx);
-- if (!(EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_FLAG_AEAD_CIPHER))
-+ if (!(EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & EVP_CIPH_FLAG_AEAD_CIPHER))
- ossl_raise(eCipherError, "cipher does not support AEAD");
-
- if (!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, len, NULL))
-@@ -786,9 +786,9 @@ ossl_cipher_iv_length(VALUE self)
- int len = 0;
-
- GetCipher(self, ctx);
- #if defined(HAVE_AUTHENTICATED_ENCRYPTION)
-- if (EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_FLAG_AEAD_CIPHER)
-+ if (EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(ctx)) & EVP_CIPH_FLAG_AEAD_CIPHER)
- len = (int)(VALUE)EVP_CIPHER_CTX_get_app_data(ctx);
- #endif
- if (!len)
- len = EVP_CIPHER_CTX_iv_length(ctx);
-diff --git a/ext/openssl/ossl_engine.c b/ext/openssl/ossl_engine.c
-index d69b5dca..5ca0d4ca 100644
---- a/ext/openssl/ossl_engine.c
-+++ b/ext/openssl/ossl_engine.c
-@@ -46,13 +46,25 @@ VALUE eEngineError;
- /*
- * Private
- */
--#define OSSL_ENGINE_LOAD_IF_MATCH(x) \
-+#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000
-+#define OSSL_ENGINE_LOAD_IF_MATCH(engine_name, x) \
- do{\
-- if(!strcmp(#x, RSTRING_PTR(name))){\
-- ENGINE_load_##x();\
-+ if(!strcmp(#engine_name, RSTRING_PTR(name))){\
-+ if (OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_##x, NULL))\
-+ return Qtrue;\
-+ else\
-+ ossl_raise(eEngineError, "OPENSSL_init_crypto"); \
-+ }\
-+}while(0)
-+#else
-+#define OSSL_ENGINE_LOAD_IF_MATCH(engine_name, x) \
-+do{\
-+ if(!strcmp(#engine_name, RSTRING_PTR(name))){\
-+ ENGINE_load_##engine_name();\
- return Qtrue;\
- }\
- }while(0)
-+#endif
-
- static void
- ossl_engine_free(void *engine)
-@@ -94,55 +106,55 @@ ossl_engine_s_load(int argc, VALUE *argv, VALUE klass)
- StringValueCStr(name);
- #ifndef OPENSSL_NO_STATIC_ENGINE
- #if HAVE_ENGINE_LOAD_DYNAMIC
-- OSSL_ENGINE_LOAD_IF_MATCH(dynamic);
-+ OSSL_ENGINE_LOAD_IF_MATCH(dynamic, DYNAMIC);
- #endif
- #if HAVE_ENGINE_LOAD_4758CCA
-- OSSL_ENGINE_LOAD_IF_MATCH(4758cca);
-+ OSSL_ENGINE_LOAD_IF_MATCH(4758cca, 4758CCA);
- #endif
- #if HAVE_ENGINE_LOAD_AEP
-- OSSL_ENGINE_LOAD_IF_MATCH(aep);
-+ OSSL_ENGINE_LOAD_IF_MATCH(aep, AEP);
- #endif
- #if HAVE_ENGINE_LOAD_ATALLA
-- OSSL_ENGINE_LOAD_IF_MATCH(atalla);
-+ OSSL_ENGINE_LOAD_IF_MATCH(atalla, ATALLA);
- #endif
- #if HAVE_ENGINE_LOAD_CHIL
-- OSSL_ENGINE_LOAD_IF_MATCH(chil);
-+ OSSL_ENGINE_LOAD_IF_MATCH(chil, CHIL);
- #endif
- #if HAVE_ENGINE_LOAD_CSWIFT
-- OSSL_ENGINE_LOAD_IF_MATCH(cswift);
-+ OSSL_ENGINE_LOAD_IF_MATCH(cswift, CSWIFT);
- #endif
- #if HAVE_ENGINE_LOAD_NURON
-- OSSL_ENGINE_LOAD_IF_MATCH(nuron);
-+ OSSL_ENGINE_LOAD_IF_MATCH(nuron, NURON);
- #endif
- #if HAVE_ENGINE_LOAD_SUREWARE
-- OSSL_ENGINE_LOAD_IF_MATCH(sureware);
-+ OSSL_ENGINE_LOAD_IF_MATCH(sureware, SUREWARE);
- #endif
- #if HAVE_ENGINE_LOAD_UBSEC
-- OSSL_ENGINE_LOAD_IF_MATCH(ubsec);
-+ OSSL_ENGINE_LOAD_IF_MATCH(ubsec, UBSEC);
- #endif
- #if HAVE_ENGINE_LOAD_PADLOCK
-- OSSL_ENGINE_LOAD_IF_MATCH(padlock);
-+ OSSL_ENGINE_LOAD_IF_MATCH(padlock, PADLOCK);
- #endif
- #if HAVE_ENGINE_LOAD_CAPI
-- OSSL_ENGINE_LOAD_IF_MATCH(capi);
-+ OSSL_ENGINE_LOAD_IF_MATCH(capi, CAPI);
- #endif
- #if HAVE_ENGINE_LOAD_GMP
-- OSSL_ENGINE_LOAD_IF_MATCH(gmp);
-+ OSSL_ENGINE_LOAD_IF_MATCH(gmp, GMP);
- #endif
- #if HAVE_ENGINE_LOAD_GOST
-- OSSL_ENGINE_LOAD_IF_MATCH(gost);
-+ OSSL_ENGINE_LOAD_IF_MATCH(gost, GOST);
- #endif
- #if HAVE_ENGINE_LOAD_CRYPTODEV
-- OSSL_ENGINE_LOAD_IF_MATCH(cryptodev);
-+ OSSL_ENGINE_LOAD_IF_MATCH(cryptodev, CRYPTODEV);
- #endif
- #if HAVE_ENGINE_LOAD_AESNI
-- OSSL_ENGINE_LOAD_IF_MATCH(aesni);
-+ OSSL_ENGINE_LOAD_IF_MATCH(aesni, AESNI);
- #endif
- #endif
- #ifdef HAVE_ENGINE_LOAD_OPENBSD_DEV_CRYPTO
-- OSSL_ENGINE_LOAD_IF_MATCH(openbsd_dev_crypto);
-+ OSSL_ENGINE_LOAD_IF_MATCH(openbsd_dev_crypto, OPENBSD_DEV_CRYPTO);
- #endif
-- OSSL_ENGINE_LOAD_IF_MATCH(openssl);
-+ OSSL_ENGINE_LOAD_IF_MATCH(openssl, OPENSSL);
- rb_warning("no such builtin loader for `%"PRIsVALUE"'", name);
- return Qnil;
- #endif /* HAVE_ENGINE_LOAD_BUILTIN_ENGINES */
-@@ -160,7 +172,9 @@ ossl_engine_s_load(int argc, VALUE *argv, VALUE klass)
- static VALUE
- ossl_engine_s_cleanup(VALUE self)
- {
-+#if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000
- ENGINE_cleanup();
-+#endif
- return Qnil;
- }
-
-diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
-index 8e3c0c42..d32a299c 100644
---- a/ext/openssl/ossl_ssl.c
-+++ b/ext/openssl/ossl_ssl.c
-@@ -379,7 +379,7 @@ ossl_call_session_get_cb(VALUE ary)
-
- /* this method is currently only called for servers (in OpenSSL <= 0.9.8e) */
- static SSL_SESSION *
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
-+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
- ossl_sslctx_session_get_cb(SSL *ssl, const unsigned char *buf, int len, int *copy)
- #else
- ossl_sslctx_session_get_cb(SSL *ssl, unsigned char *buf, int len, int *copy)
-diff --git a/ext/openssl/ossl_x509cert.c b/ext/openssl/ossl_x509cert.c
-index cf82a53d..8d16b9b7 100644
---- a/ext/openssl/ossl_x509cert.c
-+++ b/ext/openssl/ossl_x509cert.c
-@@ -440,7 +440,7 @@ ossl_x509_set_not_before(VALUE self, VALUE time)
-
- GetX509(self, x509);
- asn1time = ossl_x509_time_adjust(NULL, time);
-- if (!X509_set_notBefore(x509, asn1time)) {
-+ if (!X509_set1_notBefore(x509, asn1time)) {
- ASN1_TIME_free(asn1time);
- ossl_raise(eX509CertError, "X509_set_notBefore");
- }
-@@ -479,7 +479,7 @@ ossl_x509_set_not_after(VALUE self, VALUE time)
-
- GetX509(self, x509);
- asn1time = ossl_x509_time_adjust(NULL, time);
-- if (!X509_set_notAfter(x509, asn1time)) {
-+ if (!X509_set1_notAfter(x509, asn1time)) {
- ASN1_TIME_free(asn1time);
- ossl_raise(eX509CertError, "X509_set_notAfter");
- }
-diff --git a/ext/openssl/ossl_x509crl.c b/ext/openssl/ossl_x509crl.c
-index 5ecd7ea0..45cf7fb4 100644
---- a/ext/openssl/ossl_x509crl.c
-+++ b/ext/openssl/ossl_x509crl.c
-@@ -226,7 +226,7 @@ ossl_x509crl_set_last_update(VALUE self, VALUE time)
-
- GetX509CRL(self, crl);
- asn1time = ossl_x509_time_adjust(NULL, time);
-- if (!X509_CRL_set_lastUpdate(crl, asn1time)) {
-+ if (!X509_CRL_set1_lastUpdate(crl, asn1time)) {
- ASN1_TIME_free(asn1time);
- ossl_raise(eX509CRLError, "X509_CRL_set_lastUpdate");
- }
-@@ -257,7 +257,7 @@ ossl_x509crl_set_next_update(VALUE self, VALUE time)
-
- GetX509CRL(self, crl);
- asn1time = ossl_x509_time_adjust(NULL, time);
-- if (!X509_CRL_set_nextUpdate(crl, asn1time)) {
-+ if (!X509_CRL_set1_nextUpdate(crl, asn1time)) {
- ASN1_TIME_free(asn1time);
- ossl_raise(eX509CRLError, "X509_CRL_set_nextUpdate");
- }
diff --git a/dev-lang/ruby/files/2.5/001-ia64-update-ia64-specific-code-to-use-execution-cont.patch b/dev-lang/ruby/files/2.5/001-ia64-update-ia64-specific-code-to-use-execution-cont.patch
deleted file mode 100644
index 2ade8b8d4203..000000000000
--- a/dev-lang/ruby/files/2.5/001-ia64-update-ia64-specific-code-to-use-execution-cont.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From 5af43b1ec2674e9f86090790bc61abdb96be14ff Mon Sep 17 00:00:00 2001
-From: hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
-Date: Tue, 30 Jan 2018 05:43:42 +0000
-Subject: [PATCH] ia64: update ia64-specific code to use execution context
-
-This change follows commit 837fd5e494731d7d44786f29e7d6e8c27029806f
-in '#ifdef __ia64' branches.
-
-Noticed as a build failure by John Paul Adrian Glaubitz:
-
-```
- cont.c:502:50: error: 'rb_thread_t {aka struct rb_thread_struct}'
- has no member named 'machine'
- size = cont->machine.register_stack_size =
- th->machine.register_stack_end - th->machine.register_stack_start;
- ^~
-```
-
-The change is trivial: update 'th->machine' usage to 'th->ec->machine'.
-Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-
-git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
----
- cont.c | 6 +++---
- thread.c | 2 +-
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/cont.c b/cont.c
-index f48fd2e52b..93a64f8fe6 100644
---- a/cont.c
-+++ b/cont.c
-@@ -475,7 +475,7 @@ cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont)
-
- SET_MACHINE_STACK_END(&th->ec->machine.stack_end);
- #ifdef __ia64
-- th->machine.register_stack_end = rb_ia64_bsp();
-+ th->ec->machine.register_stack_end = rb_ia64_bsp();
- #endif
-
- if (th->ec->machine.stack_start > th->ec->machine.stack_end) {
-@@ -499,8 +499,8 @@ cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont)
-
- #ifdef __ia64
- rb_ia64_flushrs();
-- size = cont->machine.register_stack_size = th->machine.register_stack_end - th->machine.register_stack_start;
-- cont->machine.register_stack_src = th->machine.register_stack_start;
-+ size = cont->machine.register_stack_size = th->ec->machine.register_stack_end - th->ec->machine.register_stack_start;
-+ cont->machine.register_stack_src = th->ec->machine.register_stack_start;
- if (cont->machine.register_stack) {
- REALLOC_N(cont->machine.register_stack, VALUE, size);
- }
-diff --git a/thread.c b/thread.c
-index acb53354fd..23957eba09 100644
---- a/thread.c
-+++ b/thread.c
-@@ -133,7 +133,7 @@ static inline void blocking_region_end(rb_thread_t *th, struct rb_blocking_regio
-
- #ifdef __ia64
- #define RB_GC_SAVE_MACHINE_REGISTER_STACK(th) \
-- do{(th)->machine.register_stack_end = rb_ia64_bsp();}while(0)
-+ do{(th)->ec->machine.register_stack_end = rb_ia64_bsp();}while(0)
- #else
- #define RB_GC_SAVE_MACHINE_REGISTER_STACK(th)
- #endif
---
-2.16.1
-
diff --git a/dev-lang/ruby/files/2.5/002-autoconf-2.70.patch b/dev-lang/ruby/files/2.5/002-autoconf-2.70.patch
deleted file mode 100644
index 576ed6c759bd..000000000000
--- a/dev-lang/ruby/files/2.5/002-autoconf-2.70.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From 6160ea5e22ee7353a0814159c94bd3cf890a52ce Mon Sep 17 00:00:00 2001
-From: Sergei Trofimovich <slyfox@gentoo.org>
-Date: Mon, 16 Nov 2020 08:42:15 +0000
-Subject: [PATCH] configure.ac: fix for upcoming autoconf-2.70
-
-The failure initially noticed on `autoconf-2.69d` (soon to become 2.70):
-
-```
-$ ./configure
-./configure: line 8720: syntax error near unexpected token `fi'
-./configure: line 8720: `fi'
-```
-
-Before the change generated `./configure ` snippet looked like:
-
-```
- if ! $CC -E -xc - <<SRC >/dev/null
-then :
-
- #if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
- #error premature clang
- #endif
-SRC
- as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5
-fi
-```
-
-Note the newline that breaks here-document syntax.
-
-After the change the snippet does not use here-document.
-
-Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
----
- configure.ac | 15 ++++++++-------
- 1 file changed, 8 insertions(+), 7 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index a5e3dc76f6..4e4a52f066 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -271,13 +271,14 @@ AS_CASE(["$host_os:$build_os"],
- # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported)
- # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn)
- # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
-- AS_IF([! $CC -E -xc - <<SRC >/dev/null], [
-- @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
-- @%:@error premature clang
-- @%:@endif
--SRC
-- AC_MSG_ERROR([clang version 3.0 or later is required])
-- ])
-+ AC_PREPROC_IFELSE(
-+ [AC_LANG_PROGRAM([
-+ @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
-+ @%:@error premature clang
-+ @%:@endif
-+ ])],
-+ [],
-+ [AC_MSG_ERROR([clang version 3.0 or later is required])])
- ])
-
- AS_CASE(["$target_os"],
---
-2.29.2
-
diff --git a/dev-lang/ruby/files/2.5/005_no-undefined-ext.patch b/dev-lang/ruby/files/2.5/005_no-undefined-ext.patch
deleted file mode 100644
index 1f0fdda08da5..000000000000
--- a/dev-lang/ruby/files/2.5/005_no-undefined-ext.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/configure.ac.~1~ 2017-12-15 10:43:40.000000000 +0100
-+++ b/configure.ac 2017-12-25 11:02:19.099076831 +0100
-@@ -3233,7 +3233,7 @@
- [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu | haiku*], [
- : ${LDSHARED='$(CC) -shared'}
- AS_IF([test "$rb_cv_binary_elf" = yes], [
-- LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
-+ LDFLAGS="$LDFLAGS -Wl,-export-dynamic -Wl,--no-undefined"
- ])
- rb_cv_dlopen=yes],
- [interix*], [ : ${LDSHARED='$(CC) -shared'}
diff --git a/dev-lang/ruby/files/2.5/009_no-gems.patch b/dev-lang/ruby/files/2.5/009_no-gems.patch
deleted file mode 100644
index e12429a43242..000000000000
--- a/dev-lang/ruby/files/2.5/009_no-gems.patch
+++ /dev/null
@@ -1,95 +0,0 @@
---- a/tool/rbinstall.rb.~1~ 2017-10-30 06:45:20.000000000 +0100
-+++ b/tool/rbinstall.rb 2017-12-25 11:06:53.340432435 +0100
-@@ -700,20 +700,10 @@
- # :startdoc:
-
- install?(:ext, :comm, :gem, :'default-gems', :'default-gems-comm') do
-- install_default_gem('lib', srcdir)
-+ # Gems are unbundled in Gentoo
- end
- install?(:ext, :arch, :gem, :'default-gems', :'default-gems-arch') do
-- install_default_gem('ext', srcdir) do |path|
-- # assume that gemspec and extconf.rb are placed in the same directory
-- success = false
-- begin
-- IO.foreach(File.dirname(path[(srcdir.size+1)..-1]) + "/Makefile") do |l|
-- break success = true if /^TARGET\s*=/ =~ l
-- end
-- rescue Errno::ENOENT
-- end
-- success
-- end
-+ # Gems are unbundled in Gentoo
- end
-
- def load_gemspec(file)
-@@ -765,68 +755,7 @@
- end
-
- install?(:ext, :comm, :gem, :'bundled-gems') do
-- gem_dir = Gem.default_dir
-- directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
-- prepare "bundled gems", gem_dir, directories
-- install_dir = with_destdir(gem_dir)
-- installed_gems = {}
-- options = {
-- :install_dir => install_dir,
-- :bin_dir => with_destdir(bindir),
-- :domain => :local,
-- :ignore_dependencies => true,
-- :dir_mode => $dir_mode,
-- :data_mode => $data_mode,
-- :prog_mode => $prog_mode,
-- :wrappers => true,
-- :format_executable => true,
-- }
-- gem_ext_dir = "#$extout/gems/#{CONFIG['arch']}"
-- extensions_dir = Gem::StubSpecification.gemspec_stub("", gem_dir, gem_dir).extensions_dir
-- Gem::Specification.each_gemspec([srcdir+'/gems/*']) do |path|
-- spec = load_gemspec(path)
-- next unless spec.platform == Gem::Platform::RUBY
-- next unless spec.full_name == path[srcdir.size..-1][/\A\/gems\/([^\/]+)/, 1]
-- spec.extension_dir = "#{extensions_dir}/#{spec.full_name}"
-- if File.directory?(ext = "#{gem_ext_dir}/#{spec.full_name}")
-- spec.extensions[0] ||= "-"
-- end
-- ins = RbInstall::UnpackedInstaller.new(spec, options)
-- puts "#{INDENT}#{spec.name} #{spec.version}"
-- ins.install
-- File.chmod($data_mode, File.join(install_dir, "specifications", "#{spec.full_name}.gemspec"))
-- unless spec.extensions.empty?
-- install_recursive(ext, spec.extension_dir)
-- end
-- installed_gems[spec.full_name] = true
-- end
-- installed_gems, gems = Dir.glob(srcdir+'/gems/*.gem').partition {|gem| installed_gems.key?(File.basename(gem, '.gem'))}
-- unless installed_gems.empty?
-- install installed_gems, gem_dir+"/cache"
-- end
-- next if gems.empty?
-- if defined?(Zlib)
-- Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name)))
-- silent = Gem::SilentUI.new
-- gems.each do |gem|
-- inst = Gem::Installer.new(gem, options)
-- inst.spec.extension_dir = with_destdir(inst.spec.extension_dir)
-- begin
-- Gem::DefaultUserInteraction.use_ui(silent) {inst.install}
-- rescue Gem::InstallError => e
-- next
-- end
-- gemname = File.basename(gem)
-- puts "#{INDENT}#{gemname}"
-- end
-- # fix directory permissions
-- # TODO: Gem.install should accept :dir_mode option or something
-- File.chmod($dir_mode, *Dir.glob(install_dir+"/**/"))
-- # fix .gemspec permissions
-- File.chmod($data_mode, *Dir.glob(install_dir+"/specifications/*.gemspec"))
-- else
-- puts "skip installing bundled gems because of lacking zlib"
-- end
-+ # Gems are unbundled in Gentoo
- end
-
- parse_args()
diff --git a/dev-lang/ruby/files/2.5/011-no-gems.patch b/dev-lang/ruby/files/2.5/011-no-gems.patch
deleted file mode 100644
index 2ebe064c8ac6..000000000000
--- a/dev-lang/ruby/files/2.5/011-no-gems.patch
+++ /dev/null
@@ -1,85 +0,0 @@
---- a/tool/rbinstall.rb.~1~ 2017-10-30 06:45:20.000000000 +0100
-+++ b/tool/rbinstall.rb 2017-12-25 11:06:53.340432435 +0100
-@@ -700,10 +700,10 @@
- # :startdoc:
-
- install?(:ext, :comm, :gem, :'default-gems', :'default-gems-comm') do
-- install_default_gem('lib', srcdir)
-+ # Gems are unbundled in Gentoo
- end
- install?(:ext, :arch, :gem, :'default-gems', :'default-gems-arch') do
-- install_default_gem('ext', srcdir)
-+ # Gems are unbundled in Gentoo
- end
-
- def load_gemspec(file)
-@@ -765,68 +755,7 @@
- end
-
- install?(:ext, :comm, :gem, :'bundled-gems') do
-- gem_dir = Gem.default_dir
-- directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
-- prepare "bundled gems", gem_dir, directories
-- install_dir = with_destdir(gem_dir)
-- installed_gems = {}
-- options = {
-- :install_dir => install_dir,
-- :bin_dir => with_destdir(bindir),
-- :domain => :local,
-- :ignore_dependencies => true,
-- :dir_mode => $dir_mode,
-- :data_mode => $data_mode,
-- :prog_mode => $prog_mode,
-- :wrappers => true,
-- :format_executable => true,
-- }
-- gem_ext_dir = "#$extout/gems/#{CONFIG['arch']}"
-- extensions_dir = Gem::StubSpecification.gemspec_stub("", gem_dir, gem_dir).extensions_dir
-- Gem::Specification.each_gemspec([srcdir+'/gems/*']) do |path|
-- spec = load_gemspec(path)
-- next unless spec.platform == Gem::Platform::RUBY
-- next unless spec.full_name == path[srcdir.size..-1][/\A\/gems\/([^\/]+)/, 1]
-- spec.extension_dir = "#{extensions_dir}/#{spec.full_name}"
-- if File.directory?(ext = "#{gem_ext_dir}/#{spec.full_name}")
-- spec.extensions[0] ||= "-"
-- end
-- ins = RbInstall::UnpackedInstaller.new(spec, options)
-- puts "#{INDENT}#{spec.name} #{spec.version}"
-- ins.install
-- File.chmod($data_mode, File.join(install_dir, "specifications", "#{spec.full_name}.gemspec"))
-- unless spec.extensions.empty?
-- install_recursive(ext, spec.extension_dir)
-- end
-- installed_gems[spec.full_name] = true
-- end
-- installed_gems, gems = Dir.glob(srcdir+'/gems/*.gem').partition {|gem| installed_gems.key?(File.basename(gem, '.gem'))}
-- unless installed_gems.empty?
-- install installed_gems, gem_dir+"/cache"
-- end
-- next if gems.empty?
-- if defined?(Zlib)
-- Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name)))
-- silent = Gem::SilentUI.new
-- gems.each do |gem|
-- inst = Gem::Installer.new(gem, options)
-- inst.spec.extension_dir = with_destdir(inst.spec.extension_dir)
-- begin
-- Gem::DefaultUserInteraction.use_ui(silent) {inst.install}
-- rescue Gem::InstallError => e
-- next
-- end
-- gemname = File.basename(gem)
-- puts "#{INDENT}#{gemname}"
-- end
-- # fix directory permissions
-- # TODO: Gem.install should accept :dir_mode option or something
-- File.chmod($dir_mode, *Dir.glob(install_dir+"/**/"))
-- # fix .gemspec permissions
-- File.chmod($data_mode, *Dir.glob(install_dir+"/specifications/*.gemspec"))
-- else
-- puts "skip installing bundled gems because of lacking zlib"
-- end
-+ # Gems are unbundled in Gentoo
- end
-
- parse_args()
diff --git a/dev-lang/ruby/metadata.xml b/dev-lang/ruby/metadata.xml
index 3a5415201c60..81c93980c211 100644
--- a/dev-lang/ruby/metadata.xml
+++ b/dev-lang/ruby/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ruby@gentoo.org</email>
diff --git a/dev-lang/ruby/ruby-2.5.8-r2.ebuild b/dev-lang/ruby/ruby-2.5.8-r2.ebuild
deleted file mode 100644
index b8c9bb040a1e..000000000000
--- a/dev-lang/ruby/ruby-2.5.8-r2.ebuild
+++ /dev/null
@@ -1,220 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools flag-o-matic multilib
-
-MY_P="${PN}-$(ver_cut 1-3)"
-S=${WORKDIR}/${MY_P}
-
-SLOT=$(ver_cut 1-2)
-MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
-RUBYVERSION=${SLOT}.0
-
-DESCRIPTION="An object-oriented scripting language"
-HOMEPAGE="https://www.ruby-lang.org/"
-SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
-
-LICENSE="|| ( Ruby-BSD BSD-2 )"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~mips ppc ppc64 ~s390 sparc x86"
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc +rdoc rubytests socks5 +ssl static-libs tk xemacs"
-
-RDEPEND="
- berkdb? ( sys-libs/db:= )
- gdbm? ( sys-libs/gdbm:= )
- jemalloc? ( dev-libs/jemalloc:= )
- ssl? (
- dev-libs/openssl:0=
- )
- socks5? ( >=net-proxy/dante-1.1.13 )
- tk? (
- dev-lang/tcl:0=[threads]
- dev-lang/tk:0=[threads]
- )
- dev-libs/libyaml
- dev-libs/libffi:=
- sys-libs/readline:0=
- sys-libs/zlib
- virtual/libcrypt:=
- >=app-eselect/eselect-ruby-20171225
-"
-
-DEPEND="${RDEPEND}"
-
-BUNDLED_GEMS="
- >=dev-ruby/did_you_mean-1.2.0:2.5[ruby_targets_ruby25]
- >=dev-ruby/minitest-5.10.3[ruby_targets_ruby25]
- >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby25]
- >=dev-ruby/power_assert-1.1.1[ruby_targets_ruby25]
- >=dev-ruby/rake-12.3.0[ruby_targets_ruby25]
- >=dev-ruby/test-unit-3.2.7[ruby_targets_ruby25]
- >=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby25]
-"
-
-PDEPEND="
- ${BUNDLED_GEMS}
- virtual/rubygems[ruby_targets_ruby25]
- >=dev-ruby/json-2.0.2[ruby_targets_ruby25]
- rdoc? ( >=dev-ruby/rdoc-6.1.2[ruby_targets_ruby25] )
- xemacs? ( app-xemacs/ruby-modes )"
-
-src_prepare() {
- eapply "${FILESDIR}"/${SLOT}/{001,005,011}*.patch
-
- einfo "Unbundling gems..."
- cd "$S"
- # Remove bundled gems that we will install via PDEPEND, bug
- # 539700. Use explicit version numbers to ensure rm fails when they
- # change so we can update dependencies accordingly.
- rm -f gems/{did_you_mean-1.2.0,minitest-5.10.3,net-telnet-0.1.1,power_assert-1.1.1,rake-12.3.0,test-unit-3.2.7,xmlrpc-0.3.0}.gem || die
-
- einfo "Removing bundled libraries..."
- rm -fr ext/fiddle/libffi-3.2.1 || die
-
- eapply_user
-
- eautoreconf
-}
-
-src_configure() {
- local modules= myconf=
-
- # -fomit-frame-pointer makes ruby segfault, see bug #150413.
- filter-flags -fomit-frame-pointer
- # In many places aliasing rules are broken; play it safe
- # as it's risky with newer compilers to leave it as it is.
- append-flags -fno-strict-aliasing
-
- # Socks support via dante
- if use socks5 ; then
- # Socks support can't be disabled as long as SOCKS_SERVER is
- # set and socks library is present, so need to unset
- # SOCKS_SERVER in that case.
- unset SOCKS_SERVER
- fi
-
- # Increase GC_MALLOC_LIMIT if set (default is 8000000)
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
- fi
-
- # ipv6 hack, bug 168939. Needs --enable-ipv6.
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
-
- # Determine which modules *not* to build depending in the USE flags.
- if ! use berkdb ; then
- modules="${modules},dbm"
- fi
- if ! use gdbm ; then
- modules="${modules},gdbm"
- fi
- if ! use ssl ; then
- modules="${modules},openssl"
- fi
- if ! use tk ; then
- modules="${modules},tk"
- fi
-
- # Provide an empty LIBPATHENV because we disable rpath but we do not
- # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
- # #564272
- INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
- --program-suffix=${MY_SUFFIX} \
- --with-soname=ruby${MY_SUFFIX} \
- --enable-shared \
- --enable-pthread \
- --disable-rpath \
- --with-out-ext="${modules}" \
- $(use_with jemalloc jemalloc) \
- $(use_enable socks5 socks) \
- $(use_enable doc install-doc) \
- --enable-ipv6 \
- $(use_enable static-libs static) \
- $(use_enable static-libs install-static-library) \
- $(use_with static-libs static-linked-ext) \
- $(use_enable debug) \
- ${myconf} \
- --enable-option-checking=no
-}
-
-src_compile() {
- emake V=1 EXTLDFLAGS="${LDFLAGS}"
-}
-
-src_test() {
- emake -j1 V=1 test
-
- elog "Ruby's make test has been run. Ruby also ships with a make check"
- elog "that cannot be run until after ruby has been installed."
- elog
- if use rubytests; then
- elog "You have enabled rubytests, so they will be installed to"
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
- elog "than root, and you must place them into a writeable directory."
- elog "Then call: "
- elog
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
- else
- elog "Enable the rubytests USE flag to install the make check tests"
- fi
-}
-
-src_install() {
- # Remove the remaining bundled gems. We do this late in the process
- # since they are used during the build to e.g. create the
- # documentation.
- rm -rf ext/json || die
-
- # Ruby is involved in the install process, we don't want interference here.
- unset RUBYOPT
-
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
-
- LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
- RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
- for d in $(find "${S}/ext" -type d) ; do
- RUBYLIB="${RUBYLIB}:$d"
- done
- export LD_LIBRARY_PATH RUBYLIB
-
- emake V=1 DESTDIR="${D}" install
-
- # Remove installed rubygems and rdoc copy
- rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
- rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
- rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
- rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
-
- if use doc; then
- make DESTDIR="${D}" install-doc || die "make install-doc failed"
- fi
-
- if use examples; then
- dodoc -r sample
- fi
-
- dodoc ChangeLog NEWS doc/NEWS* README*
-
- if use rubytests; then
- pushd test
- insinto /usr/share/${PN}-${SLOT}/test
- doins -r .
- popd
- fi
-}
-
-pkg_postinst() {
- if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
- eselect ruby set ruby${MY_SUFFIX}
- fi
-
- elog
- elog "To switch between available Ruby profiles, execute as root:"
- elog "\teselect ruby set ruby(23|24|...)"
- elog
-}
-
-pkg_postrm() {
- eselect ruby cleanup
-}
diff --git a/dev-lang/ruby/ruby-2.5.9-r1.ebuild b/dev-lang/ruby/ruby-2.5.9-r1.ebuild
deleted file mode 100644
index 7b5728b5c054..000000000000
--- a/dev-lang/ruby/ruby-2.5.9-r1.ebuild
+++ /dev/null
@@ -1,246 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools flag-o-matic multilib
-
-MY_P="${PN}-$(ver_cut 1-3)"
-S=${WORKDIR}/${MY_P}
-
-SLOT=$(ver_cut 1-2)
-MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
-RUBYVERSION=${SLOT}.0
-
-DESCRIPTION="An object-oriented scripting language"
-HOMEPAGE="https://www.ruby-lang.org/"
-SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
-
-LICENSE="|| ( Ruby-BSD BSD-2 )"
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc +rdoc rubytests socks5 +ssl static-libs systemtap tk xemacs"
-
-RDEPEND="
- berkdb? ( sys-libs/db:= )
- gdbm? ( sys-libs/gdbm:= )
- jemalloc? ( dev-libs/jemalloc:= )
- ssl? (
- dev-libs/openssl:0=
- )
- socks5? ( >=net-proxy/dante-1.1.13 )
- systemtap? ( dev-util/systemtap )
- tk? (
- dev-lang/tcl:0=[threads]
- dev-lang/tk:0=[threads]
- )
- dev-libs/libyaml
- dev-libs/libffi:=
- sys-libs/readline:0=
- sys-libs/zlib
- virtual/libcrypt:=
- >=app-eselect/eselect-ruby-20171225
-"
-
-DEPEND="${RDEPEND}"
-
-BUNDLED_GEMS="
- >=dev-ruby/did_you_mean-1.2.0:2.5[ruby_targets_ruby25]
- >=dev-ruby/minitest-5.10.3[ruby_targets_ruby25]
- >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby25]
- >=dev-ruby/power_assert-1.1.1[ruby_targets_ruby25]
- >=dev-ruby/rake-12.3.0[ruby_targets_ruby25]
- >=dev-ruby/test-unit-3.2.7[ruby_targets_ruby25]
- >=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby25]
-"
-
-PDEPEND="
- ${BUNDLED_GEMS}
- virtual/rubygems[ruby_targets_ruby25]
- >=dev-ruby/json-2.0.2[ruby_targets_ruby25]
- rdoc? ( >=dev-ruby/rdoc-6.1.2[ruby_targets_ruby25] )
- xemacs? ( app-xemacs/ruby-modes )"
-
-src_prepare() {
- eapply "${FILESDIR}"/${SLOT}/{001,002,005,011}*.patch
-
- einfo "Unbundling gems..."
- cd "$S"
- # Remove bundled gems that we will install via PDEPEND, bug
- # 539700. Use explicit version numbers to ensure rm fails when they
- # change so we can update dependencies accordingly.
- rm -f gems/{did_you_mean-1.2.0,minitest-5.10.3,net-telnet-0.1.1,power_assert-1.1.1,rake-12.3.0,test-unit-3.2.7,xmlrpc-0.3.0}.gem || die
-
- einfo "Removing bundled libraries..."
- rm -fr ext/fiddle/libffi-3.2.1 || die
-
- if use prefix ; then
- # Fix hardcoded SHELL var in mkmf library
- sed -i -e "s#\(SHELL = \).*#\1${EPREFIX}/bin/sh#" lib/mkmf.rb || die
-
- if [[ ${CHOST} == *darwin* ]] ; then
- # avoid symlink loop on Darwin (?!)
- sed -i \
- -e '/LIBRUBY_ALIASES=/s/lib$(RUBY_INSTALL_NAME).$(SOEXT)//' \
- configure.ac || die
-
- # make ar/libtool hack for Darwin work
- sed -i \
- -e "s/ac_cv_prog_ac_ct_AR='libtool/ac_cv_prog_AR='${CHOST}-libtool/" \
- configure.ac || die
- fi
- fi
-
- eapply_user
-
- eautoreconf
-}
-
-src_configure() {
- local modules= myconf=
-
- # -fomit-frame-pointer makes ruby segfault, see bug #150413.
- filter-flags -fomit-frame-pointer
- # In many places aliasing rules are broken; play it safe
- # as it's risky with newer compilers to leave it as it is.
- append-flags -fno-strict-aliasing
-
- # Socks support via dante
- if use socks5 ; then
- # Socks support can't be disabled as long as SOCKS_SERVER is
- # set and socks library is present, so need to unset
- # SOCKS_SERVER in that case.
- unset SOCKS_SERVER
- fi
-
- # Increase GC_MALLOC_LIMIT if set (default is 8000000)
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
- fi
-
- # ipv6 hack, bug 168939. Needs --enable-ipv6.
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
-
- # Determine which modules *not* to build depending in the USE flags.
- if ! use berkdb ; then
- modules="${modules},dbm"
- fi
- if ! use gdbm ; then
- modules="${modules},gdbm"
- fi
- if ! use ssl ; then
- modules="${modules},openssl"
- fi
- if ! use tk ; then
- modules="${modules},tk"
- fi
-
- # Provide an empty LIBPATHENV because we disable rpath but we do not
- # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
- # #564272
- INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
- --program-suffix=${MY_SUFFIX} \
- --with-soname=ruby${MY_SUFFIX} \
- --with-readline-dir="${EPREFIX}"/usr \
- --enable-shared \
- --enable-pthread \
- --disable-rpath \
- --with-out-ext="${modules}" \
- $(use_with jemalloc jemalloc) \
- $(use_enable socks5 socks) \
- $(use_enable systemtap dtrace) \
- $(use_enable doc install-doc) \
- --enable-ipv6 \
- $(use_enable static-libs static) \
- $(use_enable static-libs install-static-library) \
- $(use_with static-libs static-linked-ext) \
- $(use_enable debug) \
- ${myconf} \
- --enable-option-checking=no
-}
-
-src_compile() {
- emake V=1 EXTLDFLAGS="${LDFLAGS}"
-}
-
-src_test() {
- emake -j1 V=1 test
-
- elog "Ruby's make test has been run. Ruby also ships with a make check"
- elog "that cannot be run until after ruby has been installed."
- elog
- if use rubytests; then
- elog "You have enabled rubytests, so they will be installed to"
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
- elog "than root, and you must place them into a writeable directory."
- elog "Then call: "
- elog
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
- else
- elog "Enable the rubytests USE flag to install the make check tests"
- fi
-}
-
-src_install() {
- # Remove the remaining bundled gems. We do this late in the process
- # since they are used during the build to e.g. create the
- # documentation.
- rm -rf ext/json || die
-
- # Ruby is involved in the install process, we don't want interference here.
- unset RUBYOPT
-
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
-
- LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
-
- if [[ ${CHOST} == *darwin* ]] ; then
- DYLD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${DYLD_LIBRARY_PATH+:}${DYLD_LIBRARY_PATH}"
- export DYLD_LIBRARY_PATH
- fi
-
- RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
- for d in $(find "${S}/ext" -type d) ; do
- RUBYLIB="${RUBYLIB}:$d"
- done
- export LD_LIBRARY_PATH RUBYLIB
-
- emake V=1 DESTDIR="${D}" install
-
- # Remove installed rubygems and rdoc copy
- rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
- rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
- rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
- rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
-
- if use doc; then
- make DESTDIR="${D}" install-doc || die "make install-doc failed"
- fi
-
- if use examples; then
- dodoc -r sample
- fi
-
- dodoc ChangeLog NEWS doc/NEWS* README*
-
- if use rubytests; then
- pushd test
- insinto /usr/share/${PN}-${SLOT}/test
- doins -r .
- popd
- fi
-}
-
-pkg_postinst() {
- if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
- eselect ruby set ruby${MY_SUFFIX}
- fi
-
- elog
- elog "To switch between available Ruby profiles, execute as root:"
- elog "\teselect ruby set ruby(23|24|...)"
- elog
-}
-
-pkg_postrm() {
- eselect ruby cleanup
-}