summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-02-27 07:21:14 +0100
committerHans de Graaff <graaff@gentoo.org>2021-02-27 07:22:50 +0100
commit29c626040018b3e0b9584067aa2d331f7e5d912d (patch)
tree1810efe060bf2e069ae7f8db8a8df87c3f887d5d
parentdev-ruby/power_assert: add 2.0.0 (diff)
downloadgentoo-29c626040018b3e0b9584067aa2d331f7e5d912d.tar.gz
gentoo-29c626040018b3e0b9584067aa2d331f7e5d912d.tar.bz2
gentoo-29c626040018b3e0b9584067aa2d331f7e5d912d.zip
dev-ruby/prawn: add 2.4.0
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/prawn/Manifest1
-rw-r--r--dev-ruby/prawn/prawn-2.4.0.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/prawn/Manifest b/dev-ruby/prawn/Manifest
index be2ada80449..bf3480acb19 100644
--- a/dev-ruby/prawn/Manifest
+++ b/dev-ruby/prawn/Manifest
@@ -1 +1,2 @@
DIST prawn-2.2.2.tar.gz 5215413 BLAKE2B a906491b60e68de0308fec74131286d3f3c868a38dad9a4cf2ce28424cd746f96b530c7e9ea49a74af58d63a7ed9669f2b110dd8dff315c4943272e3a6b822b3 SHA512 8bd47f80d7873f9435eac7f42015b2ca87f703b5d091ec0e9710f2d4b26e3c7b83aad03de3bf44ca5d5fe07a2bf9af32c59d479373543459576e7a0088715a1b
+DIST prawn-2.4.0.tar.gz 5239492 BLAKE2B 5435d7715d2b3020316a04cbf2db1b7793435f2d05d34aae4832e12908a928f689c86d358562e7cd1c2675171a1743757097f0af3357eb667e4e2b9462890590 SHA512 e9fcc31ad2b5aa23592a8bf9419153fcb3080e00e53c9a91b50edc526631227fe86769eeb09336d267ea8f0a94f12336f71b24adc4d5cd9e750367d51f07c867
diff --git a/dev-ruby/prawn/prawn-2.4.0.ebuild b/dev-ruby/prawn/prawn-2.4.0.ebuild
new file mode 100644
index 00000000000..db051feed41
--- /dev/null
+++ b/dev-ruby/prawn/prawn-2.4.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_DOC="yard"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRAINSTALL="data"
+
+RUBY_FAKEGEM_GEMSPEC="prawn.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Fast, Nimble PDF Generation For Ruby"
+HOMEPAGE="https://prawnpdf.org/"
+SRC_URI="https://github.com/prawnpdf/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="|| ( GPL-2 Ruby )"
+SLOT="2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+ruby_add_rdepend "=dev-ruby/pdf-core-0.9*
+ >=dev-ruby/ttfunk-1.7:*"
+ruby_add_bdepend "test? ( dev-ruby/coderay
+ >=dev-ruby/pdf-inspector-1.2.1
+ >=dev-ruby/pdf-reader-1.4
+ )"
+
+all_ruby_prepare() {
+ sed -i -e 's/__dir__/"."/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ sed -i -e "/[Bb]undler/d" Rakefile spec/spec_helper.rb || die
+
+ # Remove test that needs unpackaged dependency
+ rm -f spec/prawn_manual_spec.rb || die
+}