This commit is contained in:
Anton Bolshakov 2021-06-06 08:16:12 +08:00
parent d61a1386b8
commit 54222d9852
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
5 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST bundler-2.1.4.gem 396800 BLAKE2B f770bd63255df09a20160369dc64e8923e996fb5ea4c11ee763d9a88e5fba142277ccd677861e3c0494b99a36261d5e7bdfb9c40c2abb76322061542f95b8505 SHA512 6c870061a78e17d97a9219433c7ef8fbf1112de17d0e0f3d8b6db1a518318528e3803184278412aabe65008e93f451ffa59465062856918ef488f9438399eff6

View file

@ -0,0 +1,34 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
# The specs require a number of gems to be installed in a temporary
# directory, but this requires network access. They also don't work
# when run with a path that contains "-".
RUBY_FAKEGEM_RECIPE_TEST="none"
# No documentation task
RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
RUBY_FAKEGEM_BINDIR="exe"
RUBY_FAKEGEM_EXTRAINSTALL="man"
inherit ruby-fakegem
DESCRIPTION="An easy way to vendor gem dependencies"
HOMEPAGE="https://github.com/carlhuda/bundler"
LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="+doc test"
ruby_add_rdepend virtual/rubygems
RDEPEND+=" dev-vcs/git !<dev-ruby/bundler-1.17.3-r1:0"
PATCHES=("${FILESDIR}/nosudo.patch")

View file

@ -0,0 +1,13 @@
--- a/lib/bundler/settings.rb.orig 2021-06-06 07:55:24.585385160 +0800
+++ b/lib/bundler/settings.rb 2021-06-06 08:02:30.405361977 +0800
@@ -265,9 +265,7 @@
end
def allow_sudo?
- key = key_for(:path)
- path_configured = @temporary.key?(key) || @local_config.key?(key)
- !path_configured
+ false
end
def ignore_config?

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ruby@gentoo.org</email>
<name>Gentoo Ruby Project</name>
</maintainer>
<upstream>
<remote-id type="github">carlhuda/bundler</remote-id>
</upstream>
</pkgmetadata>

View file

@ -44,6 +44,10 @@ dev-lang/ruby:2.5
<virtual/rubygems-14
<dev-ruby/did_you_mean-1.1.0
#disable sudo
#https://github.com/rubygems/rubygems/issues/4031
>dev-ruby/bundler-2.1.4-r1
#ugh, https://bugs.gentoo.org/627576
<dev-libs/elfutils-0.170-r1