diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-09-11 07:40:27 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-09-11 07:40:27 +0200 |
commit | 519751a6f1e6d645eb2e2f13ab1e4aed7e9bdae2 (patch) | |
tree | a88856cfcd5fa21f3b2d7b7dd9773307a5777f47 /dev-ruby/rbpdf | |
parent | dev-ruby/exifr: cleanup (diff) | |
download | gentoo-519751a6f1e6d645eb2e2f13ab1e4aed7e9bdae2.tar.gz gentoo-519751a6f1e6d645eb2e2f13ab1e4aed7e9bdae2.tar.bz2 gentoo-519751a6f1e6d645eb2e2f13ab1e4aed7e9bdae2.zip |
dev-ruby/rbpdf: add 1.19.3
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/rbpdf')
-rw-r--r-- | dev-ruby/rbpdf/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rbpdf/rbpdf-1.19.3.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/rbpdf/Manifest b/dev-ruby/rbpdf/Manifest index a21835f385d2..4cce9789100a 100644 --- a/dev-ruby/rbpdf/Manifest +++ b/dev-ruby/rbpdf/Manifest @@ -1 +1,2 @@ DIST rbpdf-1.19.2.gem 524800 SHA256 9195daf16f92c57b4ba45e77fb435101274c8bbd770e9f933f0dcacc5aca5373 SHA512 fcb27d7b4643e35ccffa13ab34221f45c744ca323f2ac497301d63d5c8a54367b67e8769f6e2f0cff7744520ececfef235769d895a9cff2a2f0b7376bc3ff95f WHIRLPOOL de5b5233765460effad2ea2d2fcad7b1354e1b6917c1529b8f4341390e3def18051f0a4eed77be386a690acf30583e114c5fbc5d1fa11592df9579eb99ff75e6 +DIST rbpdf-1.19.3.gem 295424 SHA256 ee84b5ebb5b307a0d617a536295d14d2ba2a6deea79b84dfc7e0879b58c2d92d SHA512 ec169555973122418f0a15bdbc9ec212d0a5151dea849e64b21e45390a2fbd6571e4918322e9c6ec048cc10e53ecbab9b32a1bfe484f2fe6a9f13ce0f01f53ee WHIRLPOOL 1427b9a6b2f48d49910982082432380d013776c1eb993a41289e59b5a52a1160f1284452846c3d7c6594b6174dbf031e42ea58a7075aa204d8190be4ca2544b6 diff --git a/dev-ruby/rbpdf/rbpdf-1.19.3.ebuild b/dev-ruby/rbpdf/rbpdf-1.19.3.ebuild new file mode 100644 index 000000000000..9928e1cbd320 --- /dev/null +++ b/dev-ruby/rbpdf/rbpdf-1.19.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24" + +# 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" +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" +} |