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/stringio/
Date: Tue, 10 May 2022 05:00:09
Message-Id: 1652158666.18b187f354e126fa812cefcda350ad4f8ebc873d.graaff@gentoo
1 commit: 18b187f354e126fa812cefcda350ad4f8ebc873d
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 04:57:46 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 04:57:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18b187f3
7
8 dev-ruby/stringio: add 3.0.2
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/stringio/Manifest | 1 +
13 dev-ruby/stringio/stringio-3.0.2.ebuild | 30 ++++++++++++++++++++++++++++++
14 2 files changed, 31 insertions(+)
15
16 diff --git a/dev-ruby/stringio/Manifest b/dev-ruby/stringio/Manifest
17 index bbee0e4ff780..cbef6ce0b90f 100644
18 --- a/dev-ruby/stringio/Manifest
19 +++ b/dev-ruby/stringio/Manifest
20 @@ -1 +1,2 @@
21 DIST stringio-3.0.1.tar.gz 30570 BLAKE2B 385ebe0571ac63a694c8c07cbda74eb53983a163f91d800c880eea9fbd0ec7d53d5a92d03b8afc5a71c9e48bf1c017c2a055fb3bc09c2f555c1a7743cf19ad5a SHA512 7781ee20f7f3d546ee227d7366ac88731b65ea743c39280c4f3d2107d9001eef4a4d583760110817c31f4433f0a45812acd88a0b1b31b2863a8fdc3f54b19ea7
22 +DIST stringio-3.0.2.tar.gz 43051 BLAKE2B 06d3f5c64a1550969f8c8abdc0cfeec8fe89adba8cb60db68cd4b29bf622a31d51809b85b3b9fa2373b74a33ed1c48df829a44256e431288b6ba2f7654858a13 SHA512 a9ac2820ce1c2bd55aac032be42a493a910787ed04bc41f35ec33b19ffd878c925dbbca49d6c27b07cea5ffb8fa98ecdb576738c9654587dea6842e3bd1f486c
23
24 diff --git a/dev-ruby/stringio/stringio-3.0.2.ebuild b/dev-ruby/stringio/stringio-3.0.2.ebuild
25 new file mode 100644
26 index 000000000000..f1463c87a564
27 --- /dev/null
28 +++ b/dev-ruby/stringio/stringio-3.0.2.ebuild
29 @@ -0,0 +1,30 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +USE_RUBY="ruby26 ruby27 ruby30 ruby31"
35 +
36 +RUBY_FAKEGEM_EXTRADOC="README.md"
37 +RUBY_FAKEGEM_EXTENSIONS=(ext/stringio/extconf.rb)
38 +RUBY_FAKEGEM_GEMSPEC="stringio.gemspec"
39 +
40 +inherit ruby-fakegem
41 +
42 +DESCRIPTION="Pseudo IO class from/to String."
43 +HOMEPAGE="https://github.com/ruby/stringio"
44 +SRC_URI="https://github.com/ruby/stringio/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="BSD-2"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 +SLOT="0"
49 +IUSE="test"
50 +
51 +all_ruby_prepare() {
52 + sed -e "/s.version =/ s/source_version/'${PV}'/" \
53 + -e 's/__dir__/"."/' \
54 + -i ${RUBY_FAKEGEM_GEMSPEC} || die
55 +}
56 +
57 +each_ruby_test() {
58 + ${RUBY} -Ilib:.:test -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
59 +}