summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-10-02 07:14:16 +0200
committerHans de Graaff <graaff@gentoo.org>2020-10-02 07:14:16 +0200
commit0216372c6ad3c732db077a6c96f3694c7c73bddf (patch)
tree7ada118507a9b0e36b92099a793e912c2514ff38 /dev-ruby/pdf-reader/pdf-reader-2.4.1.ebuild
parentdev-ruby/combustion: add 1.3.1 (diff)
downloadgentoo-0216372c6ad3c732db077a6c96f3694c7c73bddf.tar.gz
gentoo-0216372c6ad3c732db077a6c96f3694c7c73bddf.tar.bz2
gentoo-0216372c6ad3c732db077a6c96f3694c7c73bddf.zip
dev-ruby/pdf-reader: add 2.4.1
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/pdf-reader/pdf-reader-2.4.1.ebuild')
-rw-r--r--dev-ruby/pdf-reader/pdf-reader-2.4.1.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/pdf-reader/pdf-reader-2.4.1.ebuild b/dev-ruby/pdf-reader/pdf-reader-2.4.1.ebuild
new file mode 100644
index 000000000000..0d9203bbcb24
--- /dev/null
+++ b/dev-ruby/pdf-reader/pdf-reader-2.4.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+GITHUB_USER=yob
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md TODO"
+
+RUBY_FAKEGEM_GEMSPEC="pdf-reader.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="PDF parser conforming as much as possible to the PDF specification from Adobe"
+HOMEPAGE="https://github.com/yob/pdf-reader/"
+
+# We cannot use the gem distributions because they don't contain the
+# tests' data, we have to rely on the git tags.
+SRC_URI="https://github.com/${GITHUB_USER}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND+=" !!<dev-ruby/pdf-reader-1.4.1-r2"
+
+ruby_add_rdepend ">=dev-ruby/afm-0.2.1 =dev-ruby/afm-0.2*
+ =dev-ruby/ascii85-1*
+ =dev-ruby/hashery-2*
+ dev-ruby/ttfunk:*
+ dev-ruby/ruby-rc4"
+
+all_ruby_prepare() {
+ # Remove bundler support
+ sed -i -e '/[Bb]undler/d' spec/spec_helper.rb || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc examples/*
+}