diff options
-rw-r--r-- | dev-ruby/prawn-svg/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/prawn-svg/files/prawn-svg-0.35.1-rexml.patch | 24 | ||||
-rw-r--r-- | dev-ruby/prawn-svg/prawn-svg-0.32.0.ebuild | 24 |
3 files changed, 41 insertions, 10 deletions
diff --git a/dev-ruby/prawn-svg/Manifest b/dev-ruby/prawn-svg/Manifest index 2616550..f992943 100644 --- a/dev-ruby/prawn-svg/Manifest +++ b/dev-ruby/prawn-svg/Manifest @@ -1,3 +1,4 @@ +AUX prawn-svg-0.35.1-rexml.patch 1068 BLAKE2B 763c0229f2b23ca2af4172ebea0c3a10aab272ef1a69aee83bd75154d4f82c73aaf3a70c9636597f808f9616f75b05c80dbd57b0ae6122d06f53d65ce0f410bc SHA512 488c9343a8c00e945cf26c69dea643b2357255a4888e994511d9172d020744214f98f7ead55d2b5d01281db02563eaafe3b0473db8b7fae749475905f7224a02 DIST prawn-svg-0.32.0.gem 276992 BLAKE2B 1522dad613079063de1b572ac6c234185637edc8ab129ea438342101f8df059f7f71d3d9647dbd3a43967c4419f0af50df78280a9b630bb78e6ecc6e5815ed6c SHA512 e4bb429106f6d18ad60c64c749ae236d64ebc9a621a20409fcd7c1ec64299d4fcf4d27248af030eb0e65ce74bfb0245b56aad49ed55c693f1a8eb20fc1b5bc49 -EBUILD prawn-svg-0.32.0.ebuild 600 BLAKE2B 90101c550bf42b190be1424b3dfc750d0c5297c6758f823bd9eaca520a357bd3dccae501b9dbd03f8c6122090f4798972616d41637a8a85520736141aac776d9 SHA512 3b812d0a47021f69d939a084039f0e66e2b1d7ff406744beacd4b476df9715259a5e2c18270e125bea7e1945801d44b21d1aae1e3f3fdff80ae6998c22805740 +EBUILD prawn-svg-0.32.0.ebuild 702 BLAKE2B 6f32e73e960e81060b50aed82f24bda8d16ef08cf536ccd6baf27133236d02bdb32ed2568a22fbc5c7076c9e6a8785ebec74e69c1c8393be81cd6178003336b2 SHA512 ebdc05ea089a1e0aad67121b079bc0843b93feaf22cdebdf2ffe92f6a455ee29b566135c36f20b71528796a044c4c0d1c485220f4a38dd2033389a3902a9d7fc MISC metadata.xml 324 BLAKE2B 0adf4ffb5be0153822f221d768384c54f334a48a7f87297f9a7bce540f0b0d378e0352b99613c88d4b09e6e95003ded731fae5a98ce48358b8e3e01640ffa3bd SHA512 0a5ae282bf3008b76029202411e2644d90b5e1d3abf2fb6199e87aec4e7bb67acfae45cc8a6ee1a56c3e27588a4b010885ffded1ed92856c91af025cd3e71ef3 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 0000000..eca7b87 --- /dev/null +++ b/dev-ruby/prawn-svg/files/prawn-svg-0.35.1-rexml.patch @@ -0,0 +1,24 @@ +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 +https://bugs.gentoo.org/937362 +--- 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.32.0.ebuild b/dev-ruby/prawn-svg/prawn-svg-0.32.0.ebuild index 4cb8a20..2b2a247 100644 --- a/dev-ruby/prawn-svg/prawn-svg-0.32.0.ebuild +++ b/dev-ruby/prawn-svg/prawn-svg-0.32.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby31 ruby32 ruby33" RUBY_FAKEGEM_RECIPE_DOC="yard" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -11,18 +11,24 @@ inherit ruby-fakegem DESCRIPTION="Provides support for SVG in Prawn" HOMEPAGE="https://github.com/mogest/prawn-svg" -LICENSE="|| ( MIT Ruby )" +LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" +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 " -ruby_add_bdepend "test? ( dev-ruby/mocha - >=dev-ruby/pdf-inspector-1.1.0 - >=dev-ruby/pdf-reader-1.2 - )" +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 +} |