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/heredoc_unindent/
Date: Fri, 29 Jan 2021 07:36:25
Message-Id: 1611905776.76e3e6eb9660188d789d76b815cd0bbb4b9ec8c3.graaff@gentoo
1 commit: 76e3e6eb9660188d789d76b815cd0bbb4b9ec8c3
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 29 07:27:34 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 29 07:36:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76e3e6eb
7
8 dev-ruby/heredoc_unindent: EAPI=7; add ruby30
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 .../heredoc_unindent-1.2.0-r1.ebuild | 27 ++++++++++++++++++++++
14 1 file changed, 27 insertions(+)
15
16 diff --git a/dev-ruby/heredoc_unindent/heredoc_unindent-1.2.0-r1.ebuild b/dev-ruby/heredoc_unindent/heredoc_unindent-1.2.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..c34fd046a74
19 --- /dev/null
20 +++ b/dev-ruby/heredoc_unindent/heredoc_unindent-1.2.0-r1.ebuild
21 @@ -0,0 +1,27 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +USE_RUBY="ruby25 ruby26 ruby27 ruby30"
28 +
29 +inherit ruby-fakegem
30 +
31 +RUBY_FAKEGEM_EXTRADOC="README.rdoc History.rdoc"
32 +DESCRIPTION="Removes leading whitespace from Ruby heredocs"
33 +HOMEPAGE="https://github.com/adrianomitre/heredoc_unindent"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
38 +IUSE="doc test"
39 +
40 +ruby_add_bdepend "test? ( dev-ruby/test-unit:2 )"
41 +
42 +all_ruby_prepare() {
43 + sed -i -e '1igem "test-unit"' test/test_heredoc_unindent.rb || die
44 +}
45 +
46 +each_ruby_test() {
47 + ${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
48 +}