diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-06-04 05:38:06 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-06-04 05:50:48 +0200 |
commit | 4db05a023bec92ead6bc5db10d07501e4dc513b4 (patch) | |
tree | fa8741475d039d5fdb16e394bd3ddc279b2cae18 /dev-ruby | |
parent | www-plugins/chrome-binary-plugins: automated update (diff) | |
download | gentoo-4db05a023bec92ead6bc5db10d07501e4dc513b4.tar.gz gentoo-4db05a023bec92ead6bc5db10d07501e4dc513b4.tar.bz2 gentoo-4db05a023bec92ead6bc5db10d07501e4dc513b4.zip |
dev-ruby/rubyzip: add 1.2.0
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rubyzip/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rubyzip/rubyzip-1.2.0.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/rubyzip/Manifest b/dev-ruby/rubyzip/Manifest index 7aea45303cd4..fd87f63d394d 100644 --- a/dev-ruby/rubyzip/Manifest +++ b/dev-ruby/rubyzip/Manifest @@ -1,2 +1,3 @@ DIST rubyzip-0.9.9-git.tgz 59030 SHA256 897cce8c2aec4fceff51b05e353b73d7d86567a0efa6bfd6e65274ba53a3da17 SHA512 2b2b035ab0da92ff09e1a916dd703c6b3c0ca423db4a5b4c12fbbdc6018c370532721447e71559382d089172fa4ce3463d9aa148c460a6a0a4ee2ccc9df2cadc WHIRLPOOL a51746c4234ad9f993426da44ae75ad36f40ec3292eac4a0410f3bdef9ee1093542ccee2c893967daccf806666af7121e253dd113e04aaf445f5e8a0c4bc183f DIST rubyzip-1.1.7-git.tgz 100467 SHA256 12f769a0fa804cf93cabdffec31a56c535a5ad5030a5ca53e09c8b99d245dcf7 SHA512 c59c0f9671e6ddfed26555d860bad1fc560a3428b676dd10e3890b0d08aa847b1b3b6d75865ed1d12850da7a4a59f2a26d3e30d517f92803a144487bbc04ace8 WHIRLPOOL 97ae089905b289236c4c532b771c3a3764963d314b3848526247312a8f62912faeaaf8622bf6da7771e86dbffcd98587f6c0f28ed0f1e84e9c76218977dff566 +DIST rubyzip-1.2.0-git.tgz 150545 SHA256 d5277faab3c20bd6ca2a987d5ed57ceb406e3aca1d1b125f6979839b73d55ec0 SHA512 58654cffabe778d4be228a2e9c61152ae39e5db5e41fcd20ad497f8a9f5d636eb35682e684e783ba78666c28c849678d9974a2f34acaff6f73df3e805a358ffc WHIRLPOOL ebc10d7932180bb8bb9f4338dd62c792b1f94fe6f61c19361355b02171a80628bbc5eeac62dedf1a414b5294b42b4a13647fa890a2e78016ef7aae4e1634a4b5 diff --git a/dev-ruby/rubyzip/rubyzip-1.2.0.ebuild b/dev-ruby/rubyzip/rubyzip-1.2.0.ebuild new file mode 100644 index 000000000000..ca5ecf70c440 --- /dev/null +++ b/dev-ruby/rubyzip/rubyzip-1.2.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md TODO" + +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="1" +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +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 require + sed -i -e '1irequire "forwardable"' test/input_stream_test.rb || die +} |