summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-09-08 08:43:52 +0200
committerHans de Graaff <graaff@gentoo.org>2024-09-08 08:44:34 +0200
commit1976a8ad055faf542107d77bcf3dada07afcb478 (patch)
tree736fb766d86a5e46ccb2049ea712097120c0f13e /dev-ruby
parentdev-ruby/vcr: add 6.3.1 (diff)
downloadgentoo-1976a8ad055faf542107d77bcf3dada07afcb478.tar.gz
gentoo-1976a8ad055faf542107d77bcf3dada07afcb478.tar.bz2
gentoo-1976a8ad055faf542107d77bcf3dada07afcb478.zip
dev-ruby/minitar: add 0.12.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/minitar/Manifest1
-rw-r--r--dev-ruby/minitar/minitar-0.12.1.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/minitar/Manifest b/dev-ruby/minitar/Manifest
index 10a61594ff2f..b26d3037c12c 100644
--- a/dev-ruby/minitar/Manifest
+++ b/dev-ruby/minitar/Manifest
@@ -1 +1,2 @@
+DIST minitar-0.12.1.tar.gz 33096 BLAKE2B 2277a21f7f29c52b54c26c19960970faa4a892fdb2eb3cf8825b1e668de16b2b1afe2d61dc092e56e65064f9df00945bb408c7b38499e057efc3a2c4cf9b6656 SHA512 7bd79f4a98add766e4391e1db43745c746e138ac7857bb771d8f00b4051025afcdf76af02085f601b5ad92c6c43205bd5f51a80289db14ba72f050faf5d0168e
DIST minitar-0.9.tar.gz 33873 BLAKE2B 6d285c181510c96f173d850a9411da8a214459da14895e2d186ce712387d390c8ac95e27e4e768005540fdfb7463f32206085a72faf4de6b24c31cb732234260 SHA512 e3aaf0e664a985704cf9dccb72250ea2a7ebb2db9b6120590fb8d5525fe2717e0a90b3020f461ae0c4dfb19dc8728b4eeb6ba2e24ab75d12fbd7f5d98b269c79
diff --git a/dev-ruby/minitar/minitar-0.12.1.ebuild b/dev-ruby/minitar/minitar-0.12.1.ebuild
new file mode 100644
index 000000000000..dabb510d538b
--- /dev/null
+++ b/dev-ruby/minitar/minitar-0.12.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_TASK_TEST=""
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+RUBY_FAKEGEM_EXTRADOC="History.md README.rdoc"
+
+RUBY_FAKEGEM_GEMSPEC="minitar.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides POSIX tarchive management from Ruby programs"
+HOMEPAGE="https://github.com/halostatue/minitar"
+SRC_URI="https://github.com/halostatue/minitar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="minitar-${PV}"
+
+LICENSE="|| ( BSD-2 Ruby-BSD )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="test"
+
+ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.3:5 )"
+
+all_ruby_prepare() {
+ sed -e '/focus/ s:^:#:' \
+ -i test/minitest_helper.rb || die
+
+ # Fix spec broken not casting write input to strings
+ sed -e '/def write/adat = dat.to_s' \
+ -i test/test_tar_writer.rb || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
+}