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/html2haml/
Date: Mon, 22 Nov 2021 19:11:37
Message-Id: 1637608288.116b1766d9c7dd7b1f05af01b252f8c6d195f778.graaff@gentoo
1 commit: 116b1766d9c7dd7b1f05af01b252f8c6d195f778
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 22 19:08:03 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 22 19:11:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116b1766
7
8 dev-ruby/html2haml: EAPI 8
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/html2haml/html2haml-2.2.0-r1.ebuild | 35 ++++++++++++++++++++++++++++
14 1 file changed, 35 insertions(+)
15
16 diff --git a/dev-ruby/html2haml/html2haml-2.2.0-r1.ebuild b/dev-ruby/html2haml/html2haml-2.2.0-r1.ebuild
17 new file mode 100644
18 index 000000000000..c66f4f8eaa9c
19 --- /dev/null
20 +++ b/dev-ruby/html2haml/html2haml-2.2.0-r1.ebuild
21 @@ -0,0 +1,35 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +USE_RUBY="ruby26 ruby27"
28 +
29 +RUBY_FAKEGEM_EXTRADOC="README.md Changelog.markdown"
30 +RUBY_FAKEGEM_RECIPE_DOC="yard"
31 +
32 +inherit ruby-fakegem
33 +
34 +DESCRIPTION="Convert HTML and HTML+Erb to Haml"
35 +HOMEPAGE="https://github.com/haml/html2haml"
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~amd64"
40 +IUSE=""
41 +
42 +ruby_add_rdepend ">=dev-ruby/nokogiri-1.6.0
43 + >=dev-ruby/erubis-2.7.0
44 + >=dev-ruby/ruby_parser-3.5
45 + dev-ruby/haml:5"
46 +
47 +ruby_add_bdepend "test? ( dev-ruby/minitest )"
48 +
49 +all_ruby_prepare() {
50 + sed -i -e "/bundler/d" test/test_helper.rb || die
51 +}
52 +
53 +each_ruby_test() {
54 + ${RUBY} -Ilib:test test/html2haml_test.rb || die
55 + ${RUBY} -Ilib:test test/erb_test.rb || die
56 +}