summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-03-15 08:29:40 +0100
committerHans de Graaff <graaff@gentoo.org>2020-03-15 08:29:40 +0100
commit1870a275a542d7f42fff9d76bb71ea30efa7d037 (patch)
tree496b7ecc119ab4bdf27140ce3c6fc0004663ff12 /dev-ruby
parentdev-ruby/pluggaloid: add 1.5.0 (diff)
downloadgentoo-1870a275a542d7f42fff9d76bb71ea30efa7d037.tar.gz
gentoo-1870a275a542d7f42fff9d76bb71ea30efa7d037.tar.bz2
gentoo-1870a275a542d7f42fff9d76bb71ea30efa7d037.zip
dev-ruby/rubyzip: add 2.3.0
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rubyzip/Manifest1
-rw-r--r--dev-ruby/rubyzip/rubyzip-2.3.0.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/rubyzip/Manifest b/dev-ruby/rubyzip/Manifest
index b35d4194f854..b741732b8e1b 100644
--- a/dev-ruby/rubyzip/Manifest
+++ b/dev-ruby/rubyzip/Manifest
@@ -3,3 +3,4 @@ DIST rubyzip-1.3.0-git.tgz 156664 BLAKE2B 2bde6515ddc71da32fc2d2819770857f7dde86
DIST rubyzip-2.0.0-git.tgz 156754 BLAKE2B c01e90c2d1c0ce0eec994c6d7e38de5afbd8fcfe8e18d5a2e0f163b16ff554e42096eab6dffbcf52d7b470137d70b0b9cf11a1aa6481207894847c7425f421f5 SHA512 38ceae4312aed8330b08bdec703cce5386df49600318eb587c73de604708cb77b9e3bd0467e5d59c4715dd24e40f08e7b5ff7d110d2c2721278eb912ef7dca48
DIST rubyzip-2.1.0-git.tgz 158856 BLAKE2B 6c942b5225073d3c81d26693aa295961ff42e72d51f34d30328b4cbe5b2e1f77aa9687dcf5f1648861070b36df41fbf06b59f90918cbc5f0ac3f88e0ba55b303 SHA512 c88204d578b8cf60c245178d9fd7bb2ceb77d4260b7e2545add2c51ce191348583cd84e96d41c9d5097a297bda7d968bcf2e50fd37612b8d7352dadbdf2f906c
DIST rubyzip-2.2.0-git.tgz 224109 BLAKE2B b1d879d04c4bd23f32f82260d386a0b0ff8bb4c1af705a4eca9fc279b4095551edad27e2187aa146b9c76f183df2687fc03dd7c6d62c2dde6d70c9137226316c SHA512 c10f3574c7948ae29ed665de69f79d714e146bda27a634c3bfdf7210240b535c6a9fba43fff0228fd85afd262ca56d25002393eda90237d8da1034edda62e2a7
+DIST rubyzip-2.3.0-git.tgz 225336 BLAKE2B 24b00e02c26881953c843761d38b8bf3a9a5a04da6cafa73bea6abdeea345a71a31241a557ff3c182df274210a970f17b3e866657153784df6b03cdf472681f6 SHA512 da9c446aa1a3c457decdaedb387f4030f84a2b1c1c3ca14a0e8588103f95cf893812e7a146362c083aba478828ccda4b127cd0b80fa2fa09022e06ad041506bf
diff --git a/dev-ruby/rubyzip/rubyzip-2.3.0.ebuild b/dev-ruby/rubyzip/rubyzip-2.3.0.ebuild
new file mode 100644
index 000000000000..7c910c0b7cba
--- /dev/null
+++ b/dev-ruby/rubyzip/rubyzip-2.3.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_DOC="none"
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md TODO"
+
+RUBY_FAKEGEM_GEMSPEC="rubyzip.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="A ruby library for reading and writing zip files"
+HOMEPAGE="https://github.com/rubyzip/rubyzip"
+# Tests are not included in the gem.
+SRC_URI="https://github.com/rubyzip/rubyzip/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+LICENSE="Ruby"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${DEPEND} test? ( app-arch/zip )"
+
+ruby_add_bdepend "test? ( dev-ruby/minitest:5 )"
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc samples/*
+}
+
+all_ruby_prepare() {
+ # Avoid dependencies on simplecov and coveralls
+ sed -i -e '/simplecov/ s:^:#:' test/test_helper.rb || die
+
+ # Avoid dependency on bundler
+ sed -i -e '/bundler/ s:^:#: ; /rubocop/I s:^:#:' Rakefile || die
+
+ # Fix hardcoded path to /tmp
+ sed -i -e 's:/tmp/:'${T}'/:g' test/entry_test.rb || die
+
+ # Add missing requires
+ sed -i -e '1irequire "forwardable"; require "pathname"' test/input_stream_test.rb || die
+}