diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-05-22 19:19:52 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-05-22 19:20:14 +0200 |
commit | 5b67e52ab7048678daf19fcecabde3659b3fb1cd (patch) | |
tree | 791b5ca1e17888b8e7297ce563fa37daacbbc146 /dev-ruby/rbpdf | |
parent | dev-ruby/rack-attack: add ruby26 (diff) | |
download | gentoo-5b67e52ab7048678daf19fcecabde3659b3fb1cd.tar.gz gentoo-5b67e52ab7048678daf19fcecabde3659b3fb1cd.tar.bz2 gentoo-5b67e52ab7048678daf19fcecabde3659b3fb1cd.zip |
dev-ruby/rbpdf: add 1.19.8
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/rbpdf')
-rw-r--r-- | dev-ruby/rbpdf/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rbpdf/rbpdf-1.19.8.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/rbpdf/Manifest b/dev-ruby/rbpdf/Manifest index 8edfdd0ccf2c..a1cdb65cd09c 100644 --- a/dev-ruby/rbpdf/Manifest +++ b/dev-ruby/rbpdf/Manifest @@ -1,2 +1,3 @@ DIST rbpdf-1.19.6.tar.gz 12026339 BLAKE2B 8ec388e65f110773b9a7c160a9bccbb1beb6f3ad0bbe2393a7b91087e1d2b3cbdfb03284737f6763cee6cfa947d68532cde8f4b684b004dfc92f300510a1f5c0 SHA512 192dae84ef2a44cfc7bde38e776ade1aab95e812f55ba1848c20be4a2e65231c97330859cf14b1d3bfd7aa158a1ea561602723e9e96e275ecc771ca781901271 DIST rbpdf-1.19.7.tar.gz 12026440 BLAKE2B be785f7f810c11c64efcc2ef896486dcc3d13b506badc3527abe18065c82ff32a025eda3fd925c9ac0da5c99d0300f2d76fbcf52d444bec46ebdf533b0180234 SHA512 6d4f01760511f117f2ddda87cde26ddd0e47c6245692d80fe84a9ff5cde9759b7803dcfbd328ff9af9e59f6bca9f210d8bcb66f66f288acb512f58920fb5e7d8 +DIST rbpdf-1.19.8.tar.gz 12026547 BLAKE2B 4989bee6f35d74a703539c6d209c14730e2674d94454b1794172f147dd01af20bdea5c4ed3e68a047f7ddad17083d74ea061dc5b0c28e66acdbf56ab1e335dd3 SHA512 e3015e80b26f9de2727ebd1a97ff5fd3937b7e133d9d39c2e1b3e9fe326354ca66ef569fa35bdf4c8b495b40df1ceec26d043e6f86be8ce741068a2c28ff8a28 diff --git a/dev-ruby/rbpdf/rbpdf-1.19.8.ebuild b/dev-ruby/rbpdf/rbpdf-1.19.8.ebuild new file mode 100644 index 000000000000..cec0aa03e682 --- /dev/null +++ b/dev-ruby/rbpdf/rbpdf-1.19.8.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby24 ruby25 ruby26" + +# 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" +SRC_URI="https://github.com/naitoh/rbpdf/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +ruby_add_bdepend "test? ( >=dev-ruby/test-unit-3 )" +ruby_add_rdepend " + 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" +} |