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