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/asciidoctor-diagram/
Date: Sun, 08 May 2022 05:44:11
Message-Id: 1651988622.d838130142a393c1ebab25a8f7bd47bd10ae3011.graaff@gentoo
1 commit: d838130142a393c1ebab25a8f7bd47bd10ae3011
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 7 09:50:26 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun May 8 05:43:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8381301
7
8 dev-ruby/asciidoctor-diagram: update EAPI 7 -> 8, ruby30
9
10 Add missing dependency on virtual/jre since the gem ships a few JAR
11 files.
12
13 Closes: https://bugs.gentoo.org/723580
14 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
15
16 .../asciidoctor-diagram-2.0.5-r1.ebuild | 38 ++++++++++++++++++++++
17 1 file changed, 38 insertions(+)
18
19 diff --git a/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.0.5-r1.ebuild b/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.0.5-r1.ebuild
20 new file mode 100644
21 index 000000000000..e19bb7db440a
22 --- /dev/null
23 +++ b/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.0.5-r1.ebuild
24 @@ -0,0 +1,38 @@
25 +# Copyright 1999-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=8
29 +
30 +USE_RUBY="ruby26 ruby27 ruby30"
31 +
32 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
33 +
34 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc LICENSE.txt README.adoc"
35 +
36 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
37 +
38 +inherit multilib ruby-fakegem
39 +
40 +DESCRIPTION="A set of Asciidoctor extensions that enable you to add diagrams"
41 +HOMEPAGE="https://github.com/asciidoctor/asciidoctor-diagram"
42 +SRC_URI="https://github.com/asciidoctor/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE=""
48 +
49 +RDEPEND+=" virtual/jre"
50 +ruby_add_rdepend ">=dev-ruby/asciidoctor-1.5.7 <dev-ruby/asciidoctor-3"
51 +
52 +all_ruby_prepare() {
53 + rm Gemfile || die
54 + sed -i -e '/c.formatter/ s:^:#:' spec/test_helper.rb || die
55 +
56 + # Avoid specs for unpackaged tools
57 + rm -f spec/{a2s,blockdiag,bpmn,bytefield,dpic,erd,mermaid,msc,nomnoml,pikchr,shaape,smcat,svgbob,symbolator,syntrax,umlet,vega,wavedrom}_spec.rb || die
58 +}
59 +
60 +all_ruby_install() {
61 + all_fakegem_install
62 +}