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/yajl-ruby/
Date: Wed, 07 Jul 2021 08:31:13
Message-Id: 1625646661.4336d84f1d5bcd97972f2011a5e489812f19fd84.graaff@gentoo
1 commit: 4336d84f1d5bcd97972f2011a5e489812f19fd84
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 7 08:07:34 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 7 08:31:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4336d84f
7
8 dev-ruby/yajl-ruby: add ruby30; EAPI 7; fix extension
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild | 39 ++++++++++++++++++++++++++++
14 1 file changed, 39 insertions(+)
15
16 diff --git a/dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild b/dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..9c0004d6cd6
19 --- /dev/null
20 +++ b/dev-ruby/yajl-ruby/yajl-ruby-1.4.1-r1.ebuild
21 @@ -0,0 +1,39 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +USE_RUBY="ruby25 ruby26 ruby27 ruby30"
28 +
29 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
30 +
31 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
32 +
33 +RUBY_FAKEGEM_TASK_DOC=""
34 +
35 +RUBY_FAKEGEM_EXTENSIONS=(ext/yajl/extconf.rb)
36 +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/yajl"
37 +
38 +inherit multilib ruby-fakegem
39 +
40 +DESCRIPTION="Ruby C bindings to the Yajl JSON stream-based parser library"
41 +HOMEPAGE="https://github.com/brianmario/yajl-ruby"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~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"
46 +IUSE=""
47 +
48 +RDEPEND="${RDEPEND} dev-libs/yajl"
49 +DEPEND="${DEPEND} dev-libs/yajl"
50 +
51 +each_ruby_prepare() {
52 + # Make sure the right ruby interpreter is used
53 + sed -e '/capture/ s:ruby:'${RUBY}':' -i spec/parsing/large_number_spec.rb || die
54 +}
55 +
56 +each_ruby_test() {
57 + # Set RUBYLIB to pass search path on to additional interpreters that
58 + # are started.
59 + RUBYLIB=lib RSPEC_VERSION=3 ruby-ng_rspec || die
60 +}