diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-02-02 08:02:44 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-02-02 08:02:44 +0100 |
commit | 8ee716e3eeb5d0a070422c71b61e7ae0fca07355 (patch) | |
tree | b724c0733eaaa1c309fcaf24a2b0eedfdece9c5b /dev-ruby/rubyzip | |
parent | dev-ruby/pluggaloid: add 1.4.0 (diff) | |
download | gentoo-8ee716e3eeb5d0a070422c71b61e7ae0fca07355.tar.gz gentoo-8ee716e3eeb5d0a070422c71b61e7ae0fca07355.tar.bz2 gentoo-8ee716e3eeb5d0a070422c71b61e7ae0fca07355.zip |
dev-ruby/rubyzip: add 2.2.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/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rubyzip/rubyzip-2.2.0.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/rubyzip/Manifest b/dev-ruby/rubyzip/Manifest index 2969a95fe08e..e96bcb006bc1 100644 --- a/dev-ruby/rubyzip/Manifest +++ b/dev-ruby/rubyzip/Manifest @@ -4,3 +4,4 @@ DIST rubyzip-1.2.4-git.tgz 155389 BLAKE2B 384e820866d907aa98c6c97e1f37f05f3ed309 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 +DIST rubyzip-2.2.0-git.tgz 224109 BLAKE2B b1d879d04c4bd23f32f82260d386a0b0ff8bb4c1af705a4eca9fc279b4095551edad27e2187aa146b9c76f183df2687fc03dd7c6d62c2dde6d70c9137226316c SHA512 c10f3574c7948ae29ed665de69f79d714e146bda27a634c3bfdf7210240b535c6a9fba43fff0228fd85afd262ca56d25002393eda90237d8da1034edda62e2a7 diff --git a/dev-ruby/rubyzip/rubyzip-2.2.0.ebuild b/dev-ruby/rubyzip/rubyzip-2.2.0.ebuild new file mode 100644 index 000000000000..c9a40ccdb29e --- /dev/null +++ b/dev-ruby/rubyzip/rubyzip-2.2.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 +} |