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/crack/
Date: Fri, 01 Jun 2018 17:11:22
Message-Id: 1527873070.4620539045ef40ae5c70e5196784517f01937700.graaff@gentoo
1 commit: 4620539045ef40ae5c70e5196784517f01937700
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 1 07:48:15 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 1 17:11:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46205390
7
8 dev-ruby/crack: add ruby25 revision with new enough safe_yaml
9
10 Package-Manager: Portage-2.3.36, Repoman-2.3.9
11
12 dev-ruby/crack/crack-0.4.3-r2.ebuild | 33 +++++++++++++++++++++++++++++++++
13 1 file changed, 33 insertions(+)
14
15 diff --git a/dev-ruby/crack/crack-0.4.3-r2.ebuild b/dev-ruby/crack/crack-0.4.3-r2.ebuild
16 new file mode 100644
17 index 00000000000..e74082f18a4
18 --- /dev/null
19 +++ b/dev-ruby/crack/crack-0.4.3-r2.ebuild
20 @@ -0,0 +1,33 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +USE_RUBY="ruby23 ruby24 ruby25"
27 +
28 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
29 +RUBY_FAKEGEM_EXTRADOC="README.md History"
30 +
31 +inherit ruby-fakegem
32 +
33 +DESCRIPTION="Really simple JSON and XML parsing, ripped from Merb and Rails"
34 +HOMEPAGE="https://github.com/jnunemaker/crack"
35 +
36 +LICENSE="MIT"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
39 +IUSE=""
40 +
41 +ruby_add_bdepend "test? ( dev-ruby/minitest )"
42 +ruby_add_rdepend ">=dev-ruby/safe_yaml-1.0.4-r4"
43 +
44 +each_ruby_prepare() {
45 + # Remove tests which fail when run by portage but pass when run by hand
46 + sed -i -e '/{"regex": \/foo.*\/}/d' test/json_test.rb || die
47 + sed -i -e '/{"regex": \/foo.*\/i}/d' test/json_test.rb || die
48 + sed -i -e '/{"regex": \/foo.*\/mix}/d' test/json_test.rb || die
49 +}
50 +
51 +each_ruby_test() {
52 + ${RUBY} -Itest -Ilib -e 'Dir["test/*_test.rb"].each { |f| load f }' || die
53 +}