diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-04-09 06:58:45 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-04-09 06:58:45 +0200 |
commit | 8e3f711e317cd8e9421dc9dd4996904de94c74e5 (patch) | |
tree | db50266f9874a100bcd91050d50d05a528000522 /dev-ruby | |
parent | dev-ruby/fakefs: add 0.11.0 (diff) | |
download | gentoo-8e3f711e317cd8e9421dc9dd4996904de94c74e5.tar.gz gentoo-8e3f711e317cd8e9421dc9dd4996904de94c74e5.tar.bz2 gentoo-8e3f711e317cd8e9421dc9dd4996904de94c74e5.zip |
dev-ruby/rbpdf: add 1.19.2
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rbpdf/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rbpdf/rbpdf-1.19.2.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/rbpdf/Manifest b/dev-ruby/rbpdf/Manifest index 9c27cb573361..865179fc0627 100644 --- a/dev-ruby/rbpdf/Manifest +++ b/dev-ruby/rbpdf/Manifest @@ -1,2 +1,3 @@ DIST rbpdf-1.19.0.gem 291840 SHA256 6fb408bda05c81f27af4a73abd13a20de8b485a6b2752502645cf3d2cb9eb89c SHA512 7c83334bd0069e3a5ebaa8d7037bb7eca0652df6a72afed0d1fb594fa2359830801ae59162df69ee1766bdbf39fe9b0e960d3b8d7a1eb6a7a63cf5b27dfb9dae WHIRLPOOL 09ce985446f9e08119cf81b0891c27b3bbd2c59ddf8b5500014634f901ab580d8c23ca56eb54016f55d300d9e63cbdb73b8e916655a0035067786aca3e336569 DIST rbpdf-1.19.1.gem 524800 SHA256 405c47ab1fe0fdfa7c80c2d49a07e32fd4fefd6e65d0febbd381caa718203821 SHA512 d6b186cd9b66833e9ebad73f4109b748cdfdd16ea50c9df7a8eab2709f20fbcfcedbcc1decd14c96c4a6c91f4f387063553200e2a744cea8b76281474d83cb20 WHIRLPOOL 5981867beb4db096eacd397cc409bc4edd28127d0a19ca77e0abbc98118211d116d04c729d8bda787f69358ef16bcba0e6b87e1e4a7718e01960687bcd71c8d1 +DIST rbpdf-1.19.2.gem 524800 SHA256 9195daf16f92c57b4ba45e77fb435101274c8bbd770e9f933f0dcacc5aca5373 SHA512 fcb27d7b4643e35ccffa13ab34221f45c744ca323f2ac497301d63d5c8a54367b67e8769f6e2f0cff7744520ececfef235769d895a9cff2a2f0b7376bc3ff95f WHIRLPOOL de5b5233765460effad2ea2d2fcad7b1354e1b6917c1529b8f4341390e3def18051f0a4eed77be386a690acf30583e114c5fbc5d1fa11592df9579eb99ff75e6 diff --git a/dev-ruby/rbpdf/rbpdf-1.19.2.ebuild b/dev-ruby/rbpdf/rbpdf-1.19.2.ebuild new file mode 100644 index 000000000000..4bd79ea745a1 --- /dev/null +++ b/dev-ruby/rbpdf/rbpdf-1.19.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby21 ruby22 ruby23" + +# Avoid the complexity of the "rake" recipe and run the tests manually. +RUBY_FAKEGEM_RECIPE_TEST=none + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Ruby on Rails RBPDF plugin" +HOMEPAGE="https://github.com/naitoh/rbpdf" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +ruby_add_bdepend "test? ( >=dev-ruby/test-unit-3 )" +ruby_add_rdepend "dev-ruby/actionview:* + dev-ruby/htmlentities + =dev-ruby/rbpdf-font-1.19*" + +all_ruby_prepare() { + default + + # This test is enabled automagically in the presence of rmagick, and + # then fails. + rm -f test/rbpdf_image_rmagick_test.rb \ + || die "failed to remove rmagick tests" + + # Loosen very restrictive htmlentities dependency + sed -i -e '/htmlentities/ s/=/>=/' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + local cmd='gem "test-unit", ">= 3.0"' + cmd+=' and ' + cmd+='require "test/unit"' + cmd+=' and ' + cmd+='Dir["test/rbpdf_*.rb"].each{|f| require("./" + f)}' + ${RUBY} -Ilib:.:test -e "${cmd}" || die "test suite failed" +} |