From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C88D15813A for ; Fri, 17 Jan 2025 07:04:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B76CE07E1; Fri, 17 Jan 2025 07:04:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 434E9E07E1 for ; Fri, 17 Jan 2025 07:04:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 98C343431AB for ; Fri, 17 Jan 2025 07:04:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F11692530 for ; Fri, 17 Jan 2025 07:04:13 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1737097437.33ecf7bb482d9c05c3cc2dc49681f1af753b2884.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rubygems/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rubygems/Manifest dev-ruby/rubygems/rubygems-3.6.3.ebuild X-VCS-Directories: dev-ruby/rubygems/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 33ecf7bb482d9c05c3cc2dc49681f1af753b2884 X-VCS-Branch: master Date: Fri, 17 Jan 2025 07:04:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cf851296-bec3-476c-bf49-462950209928 X-Archives-Hash: 9fdc9de4b8adefbc7f5b282cf57f5d22 commit: 33ecf7bb482d9c05c3cc2dc49681f1af753b2884 Author: Hans de Graaff gentoo org> AuthorDate: Fri Jan 17 07:01:10 2025 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Jan 17 07:03:57 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33ecf7bb dev-ruby/rubygems: add 3.6.3 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rubygems/Manifest | 1 + dev-ruby/rubygems/rubygems-3.6.3.ebuild | 123 ++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index 1c62ef305a58..728474780feb 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -6,3 +6,4 @@ DIST rubygems-3.5.23.tar.gz 13176890 BLAKE2B 45fa342eb10e4ea19122bef523771bcc786 DIST rubygems-3.5.3.tar.gz 13495997 BLAKE2B 1c9e01cc15a7afb0dfeaf61d14cea43fa19844a901cf6337f542b14da608dfa016ba438807276018b372f9c6ce8a44df2ea491f08a1217bd9f3fd04cd1ec57a7 SHA512 50f6ccd9f47c6d56c20c2bc23a35f0ca0edb2d55ae9904749bf03d1181acee499cce668df6a8847a5a59b37de0efb884acf028df6b768cb7cd2f1993ca4f8db2 DIST rubygems-3.5.9.tar.gz 13538062 BLAKE2B db8b3c17381572f53df222b7fed53c6c16e2d6bfd6a74a21aa18ee4bc43c7824c5918956076ccc15b93e4ed669d9e58bda8b9736b3435c736c8da726161634a6 SHA512 c1de5b5744665590179efb5389829ace8345703007d880ff99dc55a230482aa696c960add4c2e2d5c290f2a762c3a7a469668158c95cdf4acb4afa82c0d67ecb DIST rubygems-3.6.2.tar.gz 12945336 BLAKE2B 68e3637c78c2ac2f59eb58c26cb47c021fda5e0a6fc93e601731cf56ef81ef7f1829a1488074c8535869edf1566a71fdafe3a44bda379c896fc6872a6d660c6d SHA512 0a7a7a44656ebb717b0bd805a27c18a92e391589a36838e4abecc6c9643192ab9e2a63cd56e113716e635169fa659fcdd1157fa1e394a37c7de7081774365db2 +DIST rubygems-3.6.3.tar.gz 12949599 BLAKE2B 43dfba92af2507a69a939b6c0ffd8642de06b179f4aecfd2df772975c32651828533dda7130089729e2f92f9b87806f0cdf0195b378b3ce398cc4f30e47d5683 SHA512 a8252e661727f86ca3a6dacaf7a882316e236199a9f4cd2fc852e5ec1d0f694803273b97f489d7c55470174812f3a37618002f282c8f7188dc9cbaf92392c3f4 diff --git a/dev-ruby/rubygems/rubygems-3.6.3.ebuild b/dev-ruby/rubygems/rubygems-3.6.3.ebuild new file mode 100644 index 000000000000..2b846e6171b3 --- /dev/null +++ b/dev-ruby/rubygems/rubygems-3.6.3.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33 ruby34" + +inherit ruby-ng prefix + +DESCRIPTION="Centralized Ruby extension management system" +HOMEPAGE="https://rubygems.org/" + +SRC_URI="https://github.com/rubygems/rubygems/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="|| ( Ruby MIT )" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="server test" +RESTRICT="!test? ( test )" + +PDEPEND="server? ( =dev-ruby/builder-3* )" + +ruby_add_depend "virtual/ruby-ssl" + +ruby_add_bdepend " + test? ( + dev-ruby/json + dev-ruby/minitest:5 + dev-ruby/rake + dev-ruby/rdoc + dev-ruby/test-unit + dev-ruby/webrick + )" + +all_ruby_prepare() { + # Remove unpackaged automatiek from Rakefile which stops it from working + sed -i -e '/automatiek/ s:^:#:' -e '/Automatiek/,/^end/ s:^:#:' Rakefile || die + + mkdir -p lib/rubygems/defaults || die + cp "${FILESDIR}/gentoo-defaults-5.rb" lib/rubygems/defaults/operating_system.rb || die + + eprefixify lib/rubygems/defaults/operating_system.rb + + # Disable broken tests when changing default values: + sed -i -e '/test_default_path/,/^ end/ s:^:#:' test/rubygems/test_gem.rb || die + sed -e '/test_initialize_\(path_with_defaults\|regexp_path_separator\)/aomit "gentoo"' \ + -i test/rubygems/test_gem_path_support.rb || die + # Avoid test that won't work as json is also installed as plain ruby code + sed -i -e '/test_realworld_\(\|upgraded_\)default_gem/aomit "gentoo"' test/rubygems/test_require.rb || die + + # Avoid test that requires additional utility scripts + rm -f test/test_changelog_generator.rb || die + + # Avoid tests that require a network connection (for crates.io or other downloads) + rm -f test/rubygems/test_gem_ext_cargo_builder.rb || die + sed -e '/test_gem_exec_gem_uninstall/aomit "requires network"' \ + -i test/rubygems/test_gem_commands_exec_command.rb || die + + # Avoid tests with newer rdoc versions. These tests have been disabled upstream. + sed -e '/test_execute_rdoc/aomit "no longer needed with rdoc 6.9.0"' \ + -i test/rubygems/test_gem_commands_{install,update}_command.rb || die + + # Update manifest after changing files to avoid a test failure. Set + # RUBYLIB to ensure that we consistently use the new code for + # rubygems and the bundled bundler. + if use test; then + RUBYLIB=lib rake update_manifest || die + fi +} + +each_ruby_compile() { + # Not really a build but... + sed -i -e 's:#!.*:#!'"${RUBY}"':' exe/gem +} + +each_ruby_test() { + # Unset RUBYOPT to avoid interferences, bug #158455 et. al. + #unset RUBYOPT + + if [[ "${EUID}" -ne "0" ]]; then + RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} --disable-gems -I.:lib:test:bundler/lib \ + -e 'require "rubygems"; gem "minitest", "~>5.0"; Dir["test/**/test_*.rb"].each { require _1 }' || die "tests failed" + else + ewarn "The userpriv feature must be enabled to run tests, bug 408951." + eerror "Testsuite will not be run." + fi +} + +each_ruby_install() { + # Unset RUBYOPT to avoid interferences, bug #158455 et. al. + unset RUBYOPT + export RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" + + pushd lib &>/dev/null + doruby -r * + popd &>/dev/null + + local sld=$(ruby_rbconfig_value 'sitelibdir') + insinto "${sld#${EPREFIX}}" # bug #320813 + newins "${FILESDIR}/auto_gem.rb.ruby19" auto_gem.rb + + newbin exe/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') +} + +all_ruby_install() { + dodoc CHANGELOG.md README.md + + if use server; then + newinitd "${FILESDIR}/init.d-gem_server2" gem_server + newconfd "${FILESDIR}/conf.d-gem_server" gem_server + fi +} + +pkg_postinst() { + if [[ ! -n $(readlink "${ROOT}"/usr/bin/gem) ]] ; then + eselect ruby set $(eselect --brief --colour=no ruby show | head -n1) + fi + + ewarn + ewarn "To switch between available Ruby profiles, execute as root:" + ewarn "\teselect ruby set ruby(30|31|...)" + ewarn +}