From 4341075845cd24565a5f5c283742b1eccdc88bbe Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sat, 27 Jul 2024 22:35:31 +0200 Subject: [PATCH] dev-ruby/asciidoctor-pdf: Bump to 2.3.18 Signed-off-by: Nils Freydank --- dev-ruby/asciidoctor-pdf/Manifest | 1 + .../asciidoctor-pdf-2.3.18.ebuild | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.18.ebuild diff --git a/dev-ruby/asciidoctor-pdf/Manifest b/dev-ruby/asciidoctor-pdf/Manifest index 3a18a7b..123cef9 100644 --- a/dev-ruby/asciidoctor-pdf/Manifest +++ b/dev-ruby/asciidoctor-pdf/Manifest @@ -1 +1,2 @@ DIST asciidoctor-pdf-2.3.17.tar.gz 6561111 BLAKE2B ed46928cec36924257bc9d4f5604e41aa617c5595ab680c3190d95934932947e51639396e5348bbe01169ab20befe0083173cb004d3c23cb30dedcb245e986e3 SHA512 58334cc82660b6710a24dc170d35958dc9cccb2756aa114463cc7e3692e0cec2fd0ba165e093de2c1daf86690d4f64995c6d8f14e169c7586649e5562121499f +DIST asciidoctor-pdf-2.3.18.tar.gz 6563832 BLAKE2B 03e53537c8ff6ae302384276ca94bdf3d222841bdff0f4cbed3d7597a13c93cc9a533e46fc6367206e7ed31706a419b5753a633a8b891173bc138ee4058d133a SHA512 946015c110c6426b8a3c4576f97d54dbfe959caf16ffa05e55b03ea6384435d79d179aa20d306478af2c0fcd9f28483697ea1a2e0273057529038a9d0c3680f3 diff --git a/dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.18.ebuild b/dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.18.ebuild new file mode 100644 index 0000000..780dff0 --- /dev/null +++ b/dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.18.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc README.adoc" +RUBY_FAKEGEM_EXTRAINSTALL="data" +RUBY_FAKEGEM_GEMSPEC="asciidoctor-pdf.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="A native PDF converter for AsciiDoc based on Asciidoctor and Prawn" +HOMEPAGE="https://github.com/asciidoctor/asciidoctor-pdf" +SRC_URI="https://github.com/asciidoctor/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="test? ( app-text/poppler )" + +ruby_add_rdepend " + dev-ruby/asciidoctor + dev-ruby/concurrent-ruby + dev-ruby/matrix + dev-ruby/prawn + dev-ruby/prawn-icon + dev-ruby/prawn-svg + dev-ruby/prawn-table + dev-ruby/prawn-templates + dev-ruby/treetop +" +ruby_add_bdepend "test? ( + dev-ruby/chunky_png + dev-ruby/coderay + dev-ruby/pdf-inspector +) +" + +all_ruby_prepare() { + rm Gemfile || die + + sed -i -e "s:_relative ': './:" ${RUBY_FAKEGEM_GEMSPEC} || die +} + +all_ruby_install() { + all_fakegem_install +} + +each_ruby_test() { + RSPEC_VERSION=3 ruby-ng_rspec -t ~network -t ~visual spec +}