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/stringex/
Date: Mon, 04 Apr 2022 05:41:25
Message-Id: 1649050866.9f5d6621f6802d864a5f1889be1b08131afb0656.graaff@gentoo
1 commit: 9f5d6621f6802d864a5f1889be1b08131afb0656
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 3 07:13:01 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 4 05:41:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f5d6621
7
8 dev-ruby/stringex: update EAPI 6 -> 8, add ruby30
9
10 Fix sqlite version issue by using the activerecord USE flag for it
11 rather than a separate dependency.
12
13 Closes: https://bugs.gentoo.org/744985
14 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
15
16 dev-ruby/stringex/stringex-2.8.5-r1.ebuild | 32 ++++++++++++++++++++++++++++++
17 1 file changed, 32 insertions(+)
18
19 diff --git a/dev-ruby/stringex/stringex-2.8.5-r1.ebuild b/dev-ruby/stringex/stringex-2.8.5-r1.ebuild
20 new file mode 100644
21 index 000000000000..e03217216203
22 --- /dev/null
23 +++ b/dev-ruby/stringex/stringex-2.8.5-r1.ebuild
24 @@ -0,0 +1,32 @@
25 +# Copyright 1999-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=8
29 +USE_RUBY="ruby26 ruby27 ruby30"
30 +
31 +inherit ruby-fakegem
32 +
33 +DESCRIPTION="Extensions for Ruby's String class"
34 +HOMEPAGE="https://github.com/rsl/stringex"
35 +LICENSE="MIT"
36 +
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~sparc ~x86"
39 +IUSE="test"
40 +
41 +# we could rely on activerecord[sqlite3], but since we do not remove the
42 +# sqlite3 adapter from activerecord when building -sqlite3, it's easier
43 +# to just add another dependency, so the user doesn't have to change the
44 +# USE flags at all.
45 +ruby_add_bdepend "
46 + test? (
47 + dev-ruby/i18n:1
48 + dev-ruby/redcloth
49 + dev-ruby/test-unit:2
50 + || ( dev-ruby/activerecord:7.0[sqlite] dev-ruby/activerecord:6.1[sqlite] dev-ruby/activerecord:6.0[sqlite] dev-ruby/activerecord:5.2[sqlite] )
51 + )"
52 +
53 +all_ruby_prepare() {
54 + # Let tests work with newer rails versions
55 + sed -i -e 's/update_attributes/update/' test/unit/acts_as_url/adapter/* || die
56 +}