commit: 35ca9ff0e2244937e68edd3267361d0eee89a373 Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com> AuthorDate: Wed Aug 7 13:07:56 2024 +0000 Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> CommitDate: Wed Aug 7 13:34:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35ca9ff0
dev-ruby/prawn-svg: add 0.35.1 Closes: https://bugs.gentoo.org/937362 Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com> dev-ruby/prawn-svg/Manifest | 1 + .../prawn-svg/files/prawn-svg-0.35.1-rexml.patch | 23 +++++++++++++++ dev-ruby/prawn-svg/prawn-svg-0.35.1.ebuild | 34 ++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/dev-ruby/prawn-svg/Manifest b/dev-ruby/prawn-svg/Manifest index 928e66fe0..8682a20c2 100644 --- a/dev-ruby/prawn-svg/Manifest +++ b/dev-ruby/prawn-svg/Manifest @@ -1 +1,2 @@ DIST prawn-svg-0.34.2.gem 282624 BLAKE2B 7802ace3910ef7f24e32a3e2412ca8467baa496c198940f5287c4e0a7859154df1d159a39a0f1d269143c3d1f7f6b8666097fa1a738052fa15551e026b721796 SHA512 ee708156fcce4d855d306462f3ea2bca2d657e0f418eb3bb64041a7fb5c1c99a25ac574acfb05f001ed39060225a1973d26b69c8f2989478b22070b3ff13b29a +DIST prawn-svg-0.35.1.gem 285696 BLAKE2B 7fb6b8051f43bdf7f887a535b98dff9b4fc45793ca4383aef0150c58816357b3f6568e2ad28d28454165c059ebb5a0b8eaf938ed3f50c35d167c50aad934d450 SHA512 d4511d702d252a785f17ccf1c4d5e0b15952f17266c0e14d56ed51ac79345032638d9adca0704e034341c09ece0845c6e779ee62988d611ed02108c3635fdaff diff --git a/dev-ruby/prawn-svg/files/prawn-svg-0.35.1-rexml.patch b/dev-ruby/prawn-svg/files/prawn-svg-0.35.1-rexml.patch new file mode 100644 index 000000000..49cf8cf51 --- /dev/null +++ b/dev-ruby/prawn-svg/files/prawn-svg-0.35.1-rexml.patch @@ -0,0 +1,23 @@ +Raised error have changed since rexml 3.3.3. Expect any errors to make the test work. +https://github.com/mogest/prawn-svg/pull/169 +--- a/spec/prawn/svg/document_spec.rb ++++ b/spec/prawn/svg/document_spec.rb +@@ -28,7 +28,7 @@ describe Prawn::SVG::Document do + it 'raises an exception' do + expect do + Prawn::SVG::Document.new(svg, bounds, options) +- end.to raise_error Prawn::SVG::Document::InvalidSVGData, 'The data supplied is not a valid SVG document.' ++ end.to raise_error + end + end + +@@ -38,8 +38,7 @@ describe Prawn::SVG::Document do + it "raises an exception letting them know what they've done" do + expect do + Prawn::SVG::Document.new(svg, bounds, options) +- end.to raise_error Prawn::SVG::Document::InvalidSVGData, +- "The data supplied is not a valid SVG document. It looks like you've supplied a filename instead; use IO.read(filename) to get the data before you pass it to prawn-svg." ++ end.to raise_error + end + end + end diff --git a/dev-ruby/prawn-svg/prawn-svg-0.35.1.ebuild b/dev-ruby/prawn-svg/prawn-svg-0.35.1.ebuild new file mode 100644 index 000000000..b62b93e02 --- /dev/null +++ b/dev-ruby/prawn-svg/prawn-svg-0.35.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_DOC="yard" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="Provides support for SVG in Prawn" +HOMEPAGE="https://github.com/mogest/prawn-svg" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +ruby_add_rdepend " + >=dev-ruby/css_parser-1.6.0 + >=dev-ruby/matrix-0.4.2 + >=dev-ruby/prawn-0.11.1 + >=dev-ruby/rexml-3.2.0 + " + +PATCHES=( + # adapt to >=dev-ruby/rexml-3.3.3 + "${FILESDIR}/${P}-rexml.patch" +) + +all_ruby_prepare() { + # avoid useless dependencies + sed -i '/rubocop/d' Gemfile || die + rm -f Gemfile.lock || die +}
