summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-03-30 07:28:35 +0200
committerHans de Graaff <graaff@gentoo.org>2017-03-30 07:28:35 +0200
commit07c6a5fe553309ab069021280bfc35e3333af7c5 (patch)
tree3c59c3bcf99be687f904e41e0a765ffdea39c4cb /dev-ruby/rbpdf
parentdev-ruby/rbpdf-font: add 1.19.1 (diff)
downloadgentoo-07c6a5fe553309ab069021280bfc35e3333af7c5.tar.gz
gentoo-07c6a5fe553309ab069021280bfc35e3333af7c5.tar.bz2
gentoo-07c6a5fe553309ab069021280bfc35e3333af7c5.zip
dev-ruby/rbpdf: add 1.19.1
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/rbpdf')
-rw-r--r--dev-ruby/rbpdf/Manifest1
-rw-r--r--dev-ruby/rbpdf/rbpdf-1.19.1.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/rbpdf/Manifest b/dev-ruby/rbpdf/Manifest
index 7b36e2203a3d..9c27cb573361 100644
--- a/dev-ruby/rbpdf/Manifest
+++ b/dev-ruby/rbpdf/Manifest
@@ -1 +1,2 @@
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
diff --git a/dev-ruby/rbpdf/rbpdf-1.19.1.ebuild b/dev-ruby/rbpdf/rbpdf-1.19.1.ebuild
new file mode 100644
index 000000000000..4bd79ea745a1
--- /dev/null
+++ b/dev-ruby/rbpdf/rbpdf-1.19.1.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"
+}