summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-01-26 07:42:57 +0100
committerHans de Graaff <graaff@gentoo.org>2020-01-26 08:07:54 +0100
commit8afcb7e1809f82af7853945639367e7c5e2c8d70 (patch)
tree5c1f4b5e57b1654f5b9fb2c0b98adea17cc4de7d /dev-ruby/rubyzip
parentsys-apps/ipmiutil: bump & fix broken upstream configure for lanplus (diff)
downloadgentoo-8afcb7e1809f82af7853945639367e7c5e2c8d70.tar.gz
gentoo-8afcb7e1809f82af7853945639367e7c5e2c8d70.tar.bz2
gentoo-8afcb7e1809f82af7853945639367e7c5e2c8d70.zip
dev-ruby/rubyzip: add 2.1.0
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rubyzip')
-rw-r--r--dev-ruby/rubyzip/Manifest1
-rw-r--r--dev-ruby/rubyzip/rubyzip-2.1.0.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/rubyzip/Manifest b/dev-ruby/rubyzip/Manifest
index 4060bd5153e6..2969a95fe08e 100644
--- a/dev-ruby/rubyzip/Manifest
+++ b/dev-ruby/rubyzip/Manifest
@@ -3,3 +3,4 @@ DIST rubyzip-1.2.3-git.tgz 155000 BLAKE2B 021bf1f3278fe52a2a1f0b8a6a8e0879f81a3b
DIST rubyzip-1.2.4-git.tgz 155389 BLAKE2B 384e820866d907aa98c6c97e1f37f05f3ed30949273e51b5492125b6a1540ab4b1dedf9757bf9d317f3322811c23bd063d7a75c83b420eb4dc9fe548a662d4a3 SHA512 3dc4c2caad9c319b05daa4fa693f6bee3d9895cbb1c92f77b1db8d4c5d58ce90929d545c5f5f714b5908580472dd93a2ce5cfbb480aafeb49172a102d9a5f59c
DIST rubyzip-1.3.0-git.tgz 156664 BLAKE2B 2bde6515ddc71da32fc2d2819770857f7dde8605718c868f73edb8493f7db5ce66a7115d09933ffc6a06ac0979ab07e8cbdcd47984707688b7a5db43394847bc SHA512 5a764725d1f6a797f710581dbe07bd7971f0a8a5b0ffb7fc9b1a627c32e6e342ff54e2ad39e74e294dd283b8cbf358ed2dc40857f6f656007adff80d4769b9f4
DIST rubyzip-2.0.0-git.tgz 156754 BLAKE2B c01e90c2d1c0ce0eec994c6d7e38de5afbd8fcfe8e18d5a2e0f163b16ff554e42096eab6dffbcf52d7b470137d70b0b9cf11a1aa6481207894847c7425f421f5 SHA512 38ceae4312aed8330b08bdec703cce5386df49600318eb587c73de604708cb77b9e3bd0467e5d59c4715dd24e40f08e7b5ff7d110d2c2721278eb912ef7dca48
+DIST rubyzip-2.1.0-git.tgz 158856 BLAKE2B 6c942b5225073d3c81d26693aa295961ff42e72d51f34d30328b4cbe5b2e1f77aa9687dcf5f1648861070b36df41fbf06b59f90918cbc5f0ac3f88e0ba55b303 SHA512 c88204d578b8cf60c245178d9fd7bb2ceb77d4260b7e2545add2c51ce191348583cd84e96d41c9d5097a297bda7d968bcf2e50fd37612b8d7352dadbdf2f906c
diff --git a/dev-ruby/rubyzip/rubyzip-2.1.0.ebuild b/dev-ruby/rubyzip/rubyzip-2.1.0.ebuild
new file mode 100644
index 000000000000..c9a40ccdb29e
--- /dev/null
+++ b/dev-ruby/rubyzip/rubyzip-2.1.0.ebuild
@@ -0,0 +1,49 @@
+# 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"
+
+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:^:#:' 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
+}