mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/bundler: cleanup
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
DIST bundler-1.12.5.tar.gz 371552 BLAKE2B 0aca136308d9c393c945037dc18f7b8e7563017933aa5ef3cf14b50e095c200b82046a9d8cb00641e16507d588fe2aec8da59b22fc063bb4ecfb55b36627e981 SHA512 d42b2a10b97ab9724b9f3c6d1493a46ac212a918acc556ae90faed63b128190fd365cc0ba8c9ed9db30fc285e5c4d4183ddb698eee9a8607e9e40e860e78518d
|
||||
DIST bundler-1.16.1.gem 349696 BLAKE2B 6057aed2e3bffdfa7f3ea8489c4ae79d9241b7b300fd35c4a2c14899ff306183165d1554be793a1856d9fd1c696161161049519fc8915800c68c60a9a5b116d8 SHA512 2cca87aa17b61df98ef98a648a7d7cfe0529015f1278e8cb2298bb12544157933d723bd666d945bcdbaceacbf97a092a3848e2a587bd01cffa73c662d37d4834
|
||||
DIST bundler-1.16.2.gem 352768 BLAKE2B 4ba3729d314aec33a4ce6738a54774d4772714913d132493a8bfd719b53c05e9beb498835c01fb1904336d80fb3bd9466f71cc8e5bd1e34491f7e1f38b7bf9bb SHA512 998708b0eec5cdf7ab89b415a0a5173275b221b46e7151c0f05cb49f64a902a0fb0d77f831c60afe55ac4cafe6f4229d082d3f6c38ec13767add7979853f9221
|
||||
DIST bundler-1.16.3.gem 353792 BLAKE2B 5a36cd3e3a7fed39ea1de8d7bcd27a2f7758e4fd67bcfdbcc877a44c491624b45736e9aa122a14d792f2ff11605d226cdfb5a70c2d6cdadb5e0e4e36d597c96c SHA512 bc6b911a5ad2911c35be1ce4e28d42b7762cfc950bc060cca1527b66f78c5f125ed5524d1fc161f68053f00997742c6354549712be0a49c72877ab32ccbbefe6
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
#RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
# No documentation task
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md ISSUES.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
RUBY_FAKEGEM_BINDIR="exe"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="An easy way to vendor gem dependencies"
|
||||
HOMEPAGE="https://github.com/carlhuda/bundler"
|
||||
SRC_URI="https://github.com/carlhuda/bundler/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc test"
|
||||
|
||||
ruby_add_rdepend virtual/rubygems
|
||||
|
||||
ruby_add_bdepend "doc? ( app-text/ronn )"
|
||||
|
||||
# ruby_add_bdepend "test? ( app-text/ronn )"
|
||||
|
||||
# The specs require a number of gems to be installed in a temporary
|
||||
# directory, but this requires network access. All tests should still
|
||||
# pass with network access.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND+=" dev-vcs/git"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Bundler only supports running the specs from git:
|
||||
# https://github.com/carlhuda/bundler/issues/issue/738
|
||||
sed -i -e '/when Bundler is bundled/,/^ end/ s:^:#:' spec/runtime/setup_spec.rb || die
|
||||
|
||||
# Fails randomly and no clear cause can be found. Might be related
|
||||
# to bug 346357. This was broken in previous releases without a
|
||||
# failing spec, so patch out this spec for now since it is not a
|
||||
# regression.
|
||||
sed -i -e '/works when you bundle exec bundle/,/^ end/ s:^:#:' spec/install/deploy_spec.rb || die
|
||||
|
||||
# Remove unneeded git dependency from gemspec, which we need to use
|
||||
# for bug 491826
|
||||
sed -i -e '/files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# Avoid specs that are not compatible with all rspec versions.
|
||||
sed -e '/has no malformed whitespace/,/^ end/ s:^:#:' \
|
||||
-e '/uses double-quotes consistently/,/^ end/ s:^:#:' \
|
||||
-i spec/quality_spec.rb || die
|
||||
|
||||
# Avoid spec failing with git 2.0.
|
||||
sed -i -e '/on releasing/,/^ end/ s:^:#:' spec/bundler/gem_helper_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
if use doc ; then
|
||||
${RUBY} -S rake man:build || die
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user