summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-12-12 08:10:31 +0100
committerHans de Graaff <graaff@gentoo.org>2023-12-12 08:11:01 +0100
commit82b44dc0981b01663cec64f4ddb99d19035642a2 (patch)
tree2c09877d430886b1ef9d53f25ad8663f02bad779 /dev-ruby/rack-cache
parentdev-ruby/net-imap: add 0.4.8 (diff)
downloadgentoo-82b44dc0981b01663cec64f4ddb99d19035642a2.tar.gz
gentoo-82b44dc0981b01663cec64f4ddb99d19035642a2.tar.bz2
gentoo-82b44dc0981b01663cec64f4ddb99d19035642a2.zip
dev-ruby/rack-cache: add 1.15.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rack-cache')
-rw-r--r--dev-ruby/rack-cache/Manifest1
-rw-r--r--dev-ruby/rack-cache/rack-cache-1.15.0.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/rack-cache/Manifest b/dev-ruby/rack-cache/Manifest
index 247be7a2031a..a6855cad6720 100644
--- a/dev-ruby/rack-cache/Manifest
+++ b/dev-ruby/rack-cache/Manifest
@@ -1 +1,2 @@
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
diff --git a/dev-ruby/rack-cache/rack-cache-1.15.0.ebuild b/dev-ruby/rack-cache/rack-cache-1.15.0.ebuild
new file mode 100644
index 000000000000..5ed0c9fe195b
--- /dev/null
+++ b/dev-ruby/rack-cache/rack-cache-1.15.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 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=""
+
+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
+}