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/liquid/
Date: Fri, 20 May 2022 10:36:45
Message-Id: 1653042993.6f0cb7e596d3913bf913dfd2278ea5a777022d78.graaff@gentoo
1 commit: 6f0cb7e596d3913bf913dfd2278ea5a777022d78
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 20 07:44:38 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri May 20 10:36:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f0cb7e5
7
8 dev-ruby/liquid: update EAPI 6 -> 8, add ruby27
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/liquid/liquid-4.0.3-r1.ebuild | 34 ++++++++++++++++++++++++++++++++++
13 1 file changed, 34 insertions(+)
14
15 diff --git a/dev-ruby/liquid/liquid-4.0.3-r1.ebuild b/dev-ruby/liquid/liquid-4.0.3-r1.ebuild
16 new file mode 100644
17 index 000000000000..ab4cb72ca648
18 --- /dev/null
19 +++ b/dev-ruby/liquid/liquid-4.0.3-r1.ebuild
20 @@ -0,0 +1,34 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +USE_RUBY="ruby26 ruby27"
26 +
27 +RUBY_FAKEGEM_TASK_DOC=""
28 +RUBY_FAKEGEM_EXTRADOC="History.md README.md"
29 +RUBY_FAKEGEM_GEMSPEC="liquid.gemspec"
30 +
31 +inherit ruby-fakegem
32 +
33 +SRC_URI="https://github.com/Shopify/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
34 +DESCRIPTION="Template engine for Ruby"
35 +HOMEPAGE="https://shopify.github.io/liquid/"
36 +
37 +LICENSE="MIT"
38 +SLOT="4"
39 +KEYWORDS="~amd64 ~arm64"
40 +IUSE=""
41 +
42 +ruby_add_bdepend "test? ( dev-ruby/minitest
43 + dev-ruby/spy )"
44 +
45 +all_ruby_prepare() {
46 + # liquid-c is not packaged
47 + sed -i -e '/LIQUID-C/ s:^:#:' Rakefile || die
48 +
49 + # Avoid test requiring unpackaged stackprof
50 + sed -i -e '/assert_no_object_allocations/askip "unpackaged stackprof"' test/unit/context_unit_test.rb || die
51 +
52 + # Avoid tests using taint since this is no longer supported in ruby 2.7+
53 + sed -i -e '/test.*tainted_attr/askip "taint is no longer supported"' test/integration/drop_test.rb || die
54 +}