Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rbpdf/
Date: Thu, 30 Mar 2017 06:08:24
Message-Id: 1490851715.07c6a5fe553309ab069021280bfc35e3333af7c5.graaff@gentoo
1 commit: 07c6a5fe553309ab069021280bfc35e3333af7c5
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 30 05:28:35 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 30 05:28:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07c6a5fe
7
8 dev-ruby/rbpdf: add 1.19.1
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-ruby/rbpdf/Manifest | 1 +
13 dev-ruby/rbpdf/rbpdf-1.19.1.ebuild | 50 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-ruby/rbpdf/Manifest b/dev-ruby/rbpdf/Manifest
17 index 7b36e2203a3..9c27cb57336 100644
18 --- a/dev-ruby/rbpdf/Manifest
19 +++ b/dev-ruby/rbpdf/Manifest
20 @@ -1 +1,2 @@
21 DIST rbpdf-1.19.0.gem 291840 SHA256 6fb408bda05c81f27af4a73abd13a20de8b485a6b2752502645cf3d2cb9eb89c SHA512 7c83334bd0069e3a5ebaa8d7037bb7eca0652df6a72afed0d1fb594fa2359830801ae59162df69ee1766bdbf39fe9b0e960d3b8d7a1eb6a7a63cf5b27dfb9dae WHIRLPOOL 09ce985446f9e08119cf81b0891c27b3bbd2c59ddf8b5500014634f901ab580d8c23ca56eb54016f55d300d9e63cbdb73b8e916655a0035067786aca3e336569
22 +DIST rbpdf-1.19.1.gem 524800 SHA256 405c47ab1fe0fdfa7c80c2d49a07e32fd4fefd6e65d0febbd381caa718203821 SHA512 d6b186cd9b66833e9ebad73f4109b748cdfdd16ea50c9df7a8eab2709f20fbcfcedbcc1decd14c96c4a6c91f4f387063553200e2a744cea8b76281474d83cb20 WHIRLPOOL 5981867beb4db096eacd397cc409bc4edd28127d0a19ca77e0abbc98118211d116d04c729d8bda787f69358ef16bcba0e6b87e1e4a7718e01960687bcd71c8d1
23
24 diff --git a/dev-ruby/rbpdf/rbpdf-1.19.1.ebuild b/dev-ruby/rbpdf/rbpdf-1.19.1.ebuild
25 new file mode 100644
26 index 00000000000..4bd79ea745a
27 --- /dev/null
28 +++ b/dev-ruby/rbpdf/rbpdf-1.19.1.ebuild
29 @@ -0,0 +1,50 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=5
34 +
35 +USE_RUBY="ruby21 ruby22 ruby23"
36 +
37 +# Avoid the complexity of the "rake" recipe and run the tests manually.
38 +RUBY_FAKEGEM_RECIPE_TEST=none
39 +
40 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
41 +RUBY_FAKEGEM_EXTRADOC="README.md"
42 +
43 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
44 +
45 +inherit ruby-fakegem
46 +
47 +DESCRIPTION="Ruby on Rails RBPDF plugin"
48 +HOMEPAGE="https://github.com/naitoh/rbpdf"
49 +
50 +LICENSE="LGPL-2.1+"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="test"
54 +
55 +ruby_add_bdepend "test? ( >=dev-ruby/test-unit-3 )"
56 +ruby_add_rdepend "dev-ruby/actionview:*
57 + dev-ruby/htmlentities
58 + =dev-ruby/rbpdf-font-1.19*"
59 +
60 +all_ruby_prepare() {
61 + default
62 +
63 + # This test is enabled automagically in the presence of rmagick, and
64 + # then fails.
65 + rm -f test/rbpdf_image_rmagick_test.rb \
66 + || die "failed to remove rmagick tests"
67 +
68 + # Loosen very restrictive htmlentities dependency
69 + sed -i -e '/htmlentities/ s/=/>=/' ${RUBY_FAKEGEM_GEMSPEC} || die
70 +}
71 +
72 +each_ruby_test() {
73 + local cmd='gem "test-unit", ">= 3.0"'
74 + cmd+=' and '
75 + cmd+='require "test/unit"'
76 + cmd+=' and '
77 + cmd+='Dir["test/rbpdf_*.rb"].each{|f| require("./" + f)}'
78 + ${RUBY} -Ilib:.:test -e "${cmd}" || die "test suite failed"
79 +}