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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EFB7E1396D1 for ; Mon, 28 Aug 2017 05:54:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E6FA1FC009; Mon, 28 Aug 2017 05:54:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E5D921FC009 for ; Mon, 28 Aug 2017 05:54:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7E84F341BD5 for ; Mon, 28 Aug 2017 05:54:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5CF9853C for ; Mon, 28 Aug 2017 05:54:03 +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: <1503899508.a38d22671ff731408b38c35688b22598bef0effb.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-2.6.13.ebuild X-VCS-Directories: dev-ruby/rubygems/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: a38d22671ff731408b38c35688b22598bef0effb X-VCS-Branch: master Date: Mon, 28 Aug 2017 05:54:03 +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-Archives-Salt: 2b953d25-8533-4931-b176-b1ec7f9bf655 X-Archives-Hash: 8b611ea473ab9acc7008e8bafb3ff22b commit: a38d22671ff731408b38c35688b22598bef0effb Author: Hans de Graaff gentoo org> AuthorDate: Mon Aug 28 04:48:48 2017 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Aug 28 05:51:48 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a38d2267 dev-ruby/rubygems: add 2.6.13 Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-ruby/rubygems/Manifest | 1 + dev-ruby/rubygems/rubygems-2.6.13.ebuild | 111 +++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index a06fb293cdd..37579beb943 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -1,2 +1,3 @@ DIST rubygems-2.5.2.tgz 475434 SHA256 5171ce6fa04c74606991f9c318a924f095241d7ce18c21a00455c8ebe4aeecca SHA512 43544619799ac6f0b22285954a3b46a2d8aea425ef16a26de4ebb5ea1b3a4f2d3a2031ac53bb890554fe935ca1d03101a5d4d9eae4619aaab72a079650fd8921 WHIRLPOOL 59806bd34ab0bfa66bd770c02054c16bd5c5bb836d0213018151339fda422780e5ace4bfecfad408075ae25d6c74e40d0925dccdc7a46aff545b93cc21faa4b2 DIST rubygems-2.6.12.tgz 767895 SHA256 37b745cc1f957170cff4f698f473531e607827b1a6407d12c55c338257990d8d SHA512 ebb672488b50f5fc988eab66ab14ce8e887dcc635f71239a85e32fbf1e919ca70196eb4d3f2fee3486cace7064bab0b8b08339c754b723198e1b0b0a0984ab54 WHIRLPOOL 2134274719415087e1fffda4d648dc489c1363bf1564ec07859c5d22e8b0485a329ce8e14e1bf6bcbff81ee65cf43c2fdd5318faba07b6a912dbdca6a1224c1a +DIST rubygems-2.6.13.tgz 768906 SHA256 d041502ae77e8d49e0a436483fb91f9ad6cc1489e49e0735e7c4a7cf10e728c9 SHA512 c952b6061a9a0778db304c3aa5bea693e71ae2564abfb19f8b123eef66eb1e3877fc7c36f4f1527da97bb320870cbfd4574ac57ad88e850a44fadd67ebdac152 WHIRLPOOL b03b7fcc9b4e84f1692afcc5d7111e75ade5fe777ec73f6006580e65be1f23101f0c29b9d2e9f9af5d66bb5f46ab3919cd11e37126758e9edd66609a47085739 diff --git a/dev-ruby/rubygems/rubygems-2.6.13.ebuild b/dev-ruby/rubygems/rubygems-2.6.13.ebuild new file mode 100644 index 00000000000..6360b68c8e9 --- /dev/null +++ b/dev-ruby/rubygems/rubygems-2.6.13.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24" + +inherit ruby-ng prefix + +DESCRIPTION="Centralized Ruby extension management system" +HOMEPAGE="https://rubygems.org/" +LICENSE="|| ( Ruby MIT )" + +SRC_URI="https://rubygems.org/rubygems/${P}.tgz" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +SLOT="0" +IUSE="server test" + +PDEPEND="server? ( >=dev-ruby/builder-2.1 )" + +ruby_add_bdepend " + test? ( + >=dev-ruby/minitest-4:0 + dev-ruby/rdoc + )" + +all_ruby_prepare() { + + mkdir -p lib/rubygems/defaults || die + cp "${FILESDIR}/gentoo-defaults.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 + + # Skip tests for default gems that all fail + sed -i -e '/test_default_gems_use_full_paths/,/^ end/ s:^:#:' test/rubygems/test_gem.rb || die + sed -i -e '/test_execute_ignore_default_gem_verbose/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_cleanup_command.rb || die + sed -i -e '/test_execute_default_gem/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_contents_command.rb test/rubygems/test_gem_commands_pristine_command.rb || die + sed -i -e '/test_execute_\(default_details\|show_default_gems\)/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_query_command.rb || die + sed -i -e '/test_execute_all/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_uninstall_command.rb || die + sed -i -e '/\(test_default_gem\|test_check_executable_overwrite\|test_require_works_after_cleanup\)/,/^ end/ s:^:#:' \ + test/rubygems/test_{gem_installer,require}.rb || die + sed -i -e '/test_\(load_default_gem\|default_spec_stub\)/,/^ end/ s:^:#:' test/rubygems/test_gem_specification.rb || die + sed -i -e '/test_uninstall_default_gem/,/^ end/ s:^:#:' test/rubygems/test_gem_uninstaller.rb || die + rm -f test/rubygems/test_gem_indexer.rb || die + sed -i -e '/test_\(require_when_gem_defined\|realworld_default_gem\)/,/^ end/ s:^:#:' test/rubygems/test_require.rb || die + + # Avoid tests playing tricks with ruby engine that don't seem to + # work for us. + rm test/rubygems/test_gem_request_set_gem_dependency_api.rb || die + + # Avoid test requiring network access + sed -i -e '/test_download_to_cache/askip "requires network access"' test/rubygems/test_gem_remote_fetcher.rb || die +} + +each_ruby_compile() { + # Not really a build but... + sed -i -e 's:#!.*:#!'"${RUBY}"':' bin/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} -I.:lib:test \ + -e 'Dir["test/**/test_*.rb"].each { |tu| require tu }' || 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 || die + + newbin bin/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') || die +} + +all_ruby_install() { + dodoc History.txt README.rdoc + + if use server; then + newinitd "${FILESDIR}/init.d-gem_server2" gem_server || die "newinitd failed" + newconfd "${FILESDIR}/conf.d-gem_server" gem_server || die "newconfd failed" + 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(21|22|...)" + ewarn +}