commit:     d838130142a393c1ebab25a8f7bd47bd10ae3011
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat May  7 09:50:26 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun May  8 05:43:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8381301

dev-ruby/asciidoctor-diagram: update EAPI 7 -> 8, ruby30

Add missing dependency on virtual/jre since the gem ships a few JAR
files.

Closes: https://bugs.gentoo.org/723580
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 .../asciidoctor-diagram-2.0.5-r1.ebuild            | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

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
new file mode 100644
index 000000000000..e19bb7db440a
--- /dev/null
+++ b/dev-ruby/asciidoctor-diagram/asciidoctor-diagram-2.0.5-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc LICENSE.txt README.adoc"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="A set of Asciidoctor extensions that enable you to add diagrams"
+HOMEPAGE="https://github.com/asciidoctor/asciidoctor-diagram";
+SRC_URI="https://github.com/asciidoctor/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND+=" virtual/jre"
+ruby_add_rdepend ">=dev-ruby/asciidoctor-1.5.7 <dev-ruby/asciidoctor-3"
+
+all_ruby_prepare() {
+       rm Gemfile || die
+       sed -i -e '/c.formatter/ s:^:#:' spec/test_helper.rb || die
+
+       # Avoid specs for unpackaged tools
+       rm -f 
spec/{a2s,blockdiag,bpmn,bytefield,dpic,erd,mermaid,msc,nomnoml,pikchr,shaape,smcat,svgbob,symbolator,syntrax,umlet,vega,wavedrom}_spec.rb
 || die
+}
+
+all_ruby_install() {
+       all_fakegem_install
+}

Reply via email to