mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-ruby/rubyzip: add 2.4.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
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
|
||||
|
||||
55
dev-ruby/rubyzip/rubyzip-2.4.1.ebuild
Normal file
55
dev-ruby/rubyzip/rubyzip-2.4.1.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
|
||||
|
||||
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-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 -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
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user