Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/hashie/
Date: Sat, 23 May 2020 18:49:28
Message-Id: 1590259748.fbcf60fee6f6436e3e0b76a937912cd219c99cc2.graaff@gentoo
1 commit: fbcf60fee6f6436e3e0b76a937912cd219c99cc2
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 23 17:58:27 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat May 23 18:49:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbcf60fe
7
8 dev-ruby/hashie: add ruby27
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/hashie/hashie-4.1.0-r1.ebuild | 44 ++++++++++++++++++++++++++++++++++
14 1 file changed, 44 insertions(+)
15
16 diff --git a/dev-ruby/hashie/hashie-4.1.0-r1.ebuild b/dev-ruby/hashie/hashie-4.1.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..9f66fbf88a1
19 --- /dev/null
20 +++ b/dev-ruby/hashie/hashie-4.1.0-r1.ebuild
21 @@ -0,0 +1,44 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +USE_RUBY="ruby24 ruby25 ruby26 ruby27"
28 +
29 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
30 +
31 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
32 +
33 +RUBY_FAKEGEM_BINWRAP=""
34 +
35 +RUBY_FAKEGEM_GEMSPEC="hashie.gemspec"
36 +
37 +inherit ruby-fakegem
38 +
39 +DESCRIPTION="Hashie is a small collection of tools that make hashes more powerful"
40 +HOMEPAGE="https://www.mobomo.com/2009/11/hashie-the-hash-toolkit/"
41 +SRC_URI="https://github.com/intridea/hashie/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="MIT"
44 +SLOT="$(ver_cut 1)"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
46 +IUSE=""
47 +
48 +ruby_add_bdepend "test? ( dev-ruby/activesupport )"
49 +
50 +all_ruby_prepare() {
51 + # Remove bundler and fix one spec that depends on its requires
52 + #rm Gemfile || die
53 + sed -i -e '/[Bb]undler/d' Rakefile || die
54 + sed -e '/pry/ s:^:#:' \
55 + -e '1irequire "pathname"; require "tempfile"; require "json"' -i spec/spec_helper.rb || die
56 +
57 + # Avoid dependency on rspec-pending_for and its dependencies
58 + sed -i -e '/pending_for/ s:^:#:' \
59 + spec/spec_helper.rb \
60 + spec/hashie/mash_spec.rb \
61 + spec/hashie/extensions/strict_key_access_spec.rb || die
62 +
63 + # Avoid integration specs to avoid complicated dependencies
64 + rm spec/integration/{elasticsearch,omniauth*,rails}/integration_spec.rb || die
65 +}