commit:     681f57dbdbf0c038945404a3e31da1b0a07f1dd3
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  2 06:17:11 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Mar  2 06:18:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=681f57db

dev-ruby/rack-cache: add 1.16.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/rack-cache/Manifest                 |  1 +
 dev-ruby/rack-cache/rack-cache-1.16.0.ebuild | 41 ++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/dev-ruby/rack-cache/Manifest b/dev-ruby/rack-cache/Manifest
index a6855cad6720..de899dce30cd 100644
--- a/dev-ruby/rack-cache/Manifest
+++ b/dev-ruby/rack-cache/Manifest
@@ -1,2 +1,3 @@
 DIST rack-cache-1.14.0.tar.gz 263917 BLAKE2B 
1d8a95bcb4d4d3c5a61282fa7466a728c234d9b39e1fa7db27c3804e665618bb13a5a797d2b989768f51b1d0d4b0f1cdec44f6e3bd3f4cfae4e9e530d12c701a
 SHA512 
258d8b9f8daf282e6614b8cb10d44e747a29e4d1ff4b5acf0c57546f0714161fd4b9fc8ff5b2ca7b175b4f9158337ee1281d46c2238a158ee06a07ed79c71636
 DIST rack-cache-1.15.0.tar.gz 264051 BLAKE2B 
0e9de0d7bd82c553f448f6fe9273465f9b7ac68aab814543ccb13644137f9f6ad9a279a0d71fa61ce8198e1f579f2b1f9118e4b0e017b8c75d8e385d32c1826f
 SHA512 
eaeb2e52e5bedce3f5ddeab9e32ec73ac67786a12d3abbd5469b1072c50ac54b236dfd03420152f1e86fd55950bb9f4e243bec3541309bf7e8dbd410fd777967
+DIST rack-cache-1.16.0.tar.gz 264119 BLAKE2B 
7affde4d1e72cd4f7cecec36aea753f7e8aeb42ac2e41bf8a3a2132b6736b137ed9f1969f630b12fca60d34e8390f97c8cdfe0e33cc847589f03d6aede48b8e3
 SHA512 
c2e41b8382f060d85d67ddcc5a4edd899e58a0438c94cccf2b6e00013442d1b2914744916880ea9740cd4f5c80045b873f17e00222b3f03d18719e78656ec7c5

diff --git a/dev-ruby/rack-cache/rack-cache-1.16.0.ebuild 
b/dev-ruby/rack-cache/rack-cache-1.16.0.ebuild
new file mode 100644
index 000000000000..c67edb33eeed
--- /dev/null
+++ b/dev-ruby/rack-cache/rack-cache-1.16.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+# no documentation is generable, it needs hanna, which is broken
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+RUBY_FAKEGEM_TASK_TEST="none"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGES README.md doc/*"
+
+RUBY_FAKEGEM_GEMSPEC="rack-cache.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Enable HTTP caching for Rack-based applications that produce 
freshness info"
+HOMEPAGE="https://github.com/rack/rack-cache";
+SRC_URI="https://github.com/rack/rack-cache/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="1.2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux 
~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="test"
+
+ruby_add_rdepend "dev-ruby/rack:*"
+
+ruby_add_bdepend "test? (
+       >=dev-ruby/maxitest-3.4.0
+       >=dev-ruby/minitest-5.7.0:5
+       >=dev-ruby/mocha-2 )"
+
+all_ruby_prepare() {
+       sed -i -e 's/git ls-files/find */' -e "s:_relative ': './:" 
${RUBY_FAKEGEM_GEMSPEC} || die
+       sed -i -e '/bundler/ s:^:#:' test/test_helper.rb || die
+}
+
+each_ruby_test() {
+       MT_NO_PLUGINS=true ${RUBY} -I.:lib:test -e 
'Dir["test/*_test.rb"].each{|f| require f}' || die
+}

Reply via email to