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/nio4r/
Date: Sat, 06 Feb 2021 06:59:51
Message-Id: 1612594004.109e0c3c2f5843560e7415f1ce76f04bdc069e77.graaff@gentoo
1 commit: 109e0c3c2f5843560e7415f1ce76f04bdc069e77
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 6 06:46:44 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 6 06:46:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=109e0c3c
7
8 dev-ruby/nio4r: add 2.5.5
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/nio4r/Manifest | 1 +
14 dev-ruby/nio4r/nio4r-2.5.5.ebuild | 40 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 41 insertions(+)
16
17 diff --git a/dev-ruby/nio4r/Manifest b/dev-ruby/nio4r/Manifest
18 index 451e6b3f223..43255a3babc 100644
19 --- a/dev-ruby/nio4r/Manifest
20 +++ b/dev-ruby/nio4r/Manifest
21 @@ -1 +1,2 @@
22 DIST nio4r-2.5.4.gem 110080 BLAKE2B 9aaed6cd4d74cf6ff3fed114d7c0c9162afb646aa6eadf294e0a6710dfca1e6b4ccf1eb8850c8704f3792eb6695034612813db08fbf74814556455db6ab48b4a SHA512 f7e383516ac6b55fd49339280e624a4c35f9cd2d31915b3d117189506522d967fc53a43cde75e8601f3fe0530e1322aeaa8c94a09289ddbefb2afd8d067341ec
23 +DIST nio4r-2.5.5.gem 121344 BLAKE2B 5e63c528055c4db6b52de7e3f1a0f32aa8b1776d21c303a16030376e1548860a72eae4c2fea09ee5dd458e49e2b4f0da50fe80e4e82f5dbba44b194dce4c35fc SHA512 e0d661b17f44aa5b469061a9b22c1cb565d01d1cf5318e4db39dcc4452bff99774c250853511c2b9742d61ccec123fec76d375069bad74ecb2f411c4495a4121
24
25 diff --git a/dev-ruby/nio4r/nio4r-2.5.5.ebuild b/dev-ruby/nio4r/nio4r-2.5.5.ebuild
26 new file mode 100644
27 index 00000000000..635dfac5b37
28 --- /dev/null
29 +++ b/dev-ruby/nio4r/nio4r-2.5.5.ebuild
30 @@ -0,0 +1,40 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +USE_RUBY="ruby25 ruby26 ruby27"
37 +
38 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
39 +
40 +RUBY_FAKEGEM_RECIPE_DOC=""
41 +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
42 +
43 +inherit ruby-fakegem
44 +
45 +DESCRIPTION="A high performance selector API for monitoring IO objects"
46 +HOMEPAGE="https://github.com/socketry/nio4r"
47 +
48 +LICENSE="MIT || ( BSD GPL-2 )"
49 +SLOT="2"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +IUSE=""
52 +
53 +# Note that nio4r bundles a patched copy of libev, and without these
54 +# patches the tests fail: https://github.com/celluloid/nio4r/issues/15
55 +
56 +ruby_add_bdepend "test? ( dev-ruby/rspec-retry )"
57 +
58 +all_ruby_prepare() {
59 + sed -i -e '/[Cc]overalls/d' -e '/[Bb]undler/d' -e '1irequire "openssl"' spec/spec_helper.rb || die
60 + sed -e '/extension/ s:^:#:' -i Rakefile || die
61 +}
62 +
63 +each_ruby_configure() {
64 + ${RUBY} -Cext/${PN} extconf.rb || die
65 +}
66 +
67 +each_ruby_compile() {
68 + emake V=1 -Cext/${PN}
69 + cp ext/${PN}/*$(get_modname) lib/ || die
70 +}