dev-ruby/rubyzip: add 3.0.2

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-08-27 13:48:40 +02:00
parent 942a56b381
commit 3036b3b65a
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 61 additions and 0 deletions

View File

@ -1,3 +1,4 @@
DIST rubyzip-2.3.2-git.tgz 225923 BLAKE2B ed901326cd0f79c8be004d9c14b32d7e67e90ab4d2d5b67dc64559fd4691dfb63cfa1ee18363a7cf864bd62559f1bc2fae71fc25ad1c727d7cc01f94d1ec62ee SHA512 6c64e53c1f5ca530abfa22baf388f87c8cf098d81cc9c639f20903e5193cf26243fbf861ac12002ae954f026e04168d8a55beeaf3ac5542bd0618ca85a5c90de
DIST rubyzip-2.4-git.tgz 229877 BLAKE2B 3bbc47e714ac759427341d9cc79396643f29ad526d5807b99e12cc459a4e071ab777215dd1916f944f6953454fd886238d660e8384b8bfbff311acd4872fa281 SHA512 b1b7c17bef8c342763a6744847b6741344c905ec4100fe2810e8f2c9ac1435f526553980f48ce5cf2eade60681e97f6bc49b6a4ed8d17a92e3243b346b6a3362
DIST rubyzip-2.4.1-git.tgz 230194 BLAKE2B 506ed57bfa2bc97787c5d18295f024045f418857b221cf7270af2ce4eacde9e92ad9c1c165f3c697980000f87951028bf839771566088380c4d56d3171a25c05 SHA512 10799311ce960a909ae5cca20e6bd0db810d701e30cbfd557d7845ca1934b572561f913b49f6879db12fc98722b8b3b12f3c548305106838922bfa08a4bed122
DIST rubyzip-3.0.2-git.tgz 944064 BLAKE2B f965ceeefa3e1f03e72e7dc64bacf143350c245625308ec8c7f29194d8bad238d19426377f5c39c6698a52ca21afb4b34a2f7b7453faca75cc8543d4cf8368b8 SHA512 926a235448d54a27692c1e13314dd2ed16ef8b269cfa965aa66152b175a56d11ecef8e4a584d5e38250814b0bcf6ee67a9be0405585dd9445219d7fd91c8b5fe

View File

@ -0,0 +1,60 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_RECIPE_DOC="none"
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
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-BSD"
SLOT="$(ver_cut 1)"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="test"
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 -e '/bundler/ s:^:#: ; /rubocop/I s:^:#:' \
-e '2irequire "zip/version"' \
-i 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
sed -e '2irequire "zip/version"' \
-i test/constants_test.rb || die
# Fix broken test that uses native endian
sed -i -e '/pack/ s/LLS/VVv/' test/file_extract_test.rb || die
sed -e "s:_relative ': './:" \
-i ${RUBY_FAKEGEM_GEMSPEC} || die
}