mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/rbpdf: add 1.19.3
Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
@@ -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
|
||||
|
||||
50
dev-ruby/rbpdf/rbpdf-1.19.3.ebuild
Normal file
50
dev-ruby/rbpdf/rbpdf-1.19.3.ebuild
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user