summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-07-17 11:59:42 +0200
committerHans de Graaff <graaff@gentoo.org>2024-07-17 12:01:16 +0200
commita2ec40a33c5cd46477e32066d1feb2193dc22d4b (patch)
tree0d379784d56c945ebe57b618d8651658cff81d28 /dev-ruby/redis
parentapp-office/calcurse: Stabilize 4.8.1-r1 ppc, #936199 (diff)
downloadgentoo-a2ec40a33c5cd46477e32066d1feb2193dc22d4b.tar.gz
gentoo-a2ec40a33c5cd46477e32066d1feb2193dc22d4b.tar.bz2
gentoo-a2ec40a33c5cd46477e32066d1feb2193dc22d4b.zip
dev-ruby/redis: add 4.8.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/redis')
-rw-r--r--dev-ruby/redis/Manifest1
-rw-r--r--dev-ruby/redis/redis-4.8.1.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/redis/Manifest b/dev-ruby/redis/Manifest
index 8ab85f36947a..31484d730498 100644
--- a/dev-ruby/redis/Manifest
+++ b/dev-ruby/redis/Manifest
@@ -1 +1,2 @@
DIST redis-rb-4.8.0.tar.gz 143136 BLAKE2B 6d70985d5e2a749b931e5bf1f74f04d1e748a9b65cc1b1e644d9ecfa633978bef9c6418308425b6996779ff65fbbb66cacbf464cdf6d00e2736b20089aa0889c SHA512 e9d454d0416091d0c5629b6ed826e70879ea2f93501bae7db19570bfbf4bdae2ed36b357390afcfca427531d997acc7f5ae004d55d0e87ddb67c909db2b181d5
+DIST redis-rb-4.8.1.tar.gz 143125 BLAKE2B ef5c47d30b8cf3b2575fd281abfe316a38361a342e0e9cfebd23cf4a5dde8f62fd0f114b964647cc8ea95170ba37aad712fb0680cad1406848a8cc28bec4932a SHA512 027253657a647861645037dcdad1d7cd2c701f94ae51edbbf2c656ca7b698b8540cb620a7ed6c081d97193b978d296569047ad0e195f418891b00128e790a2dc
diff --git a/dev-ruby/redis/redis-4.8.1.ebuild b/dev-ruby/redis/redis-4.8.1.ebuild
new file mode 100644
index 000000000000..475a1fc19a34
--- /dev/null
+++ b/dev-ruby/redis/redis-4.8.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+MY_P="redis-rb-${PV}"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+RUBY_FAKEGEM_GEMSPEC="redis.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A Ruby client library for Redis"
+HOMEPAGE="https://github.com/redis/redis-rb"
+SRC_URI="https://github.com/redis/redis-rb/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="4"
+KEYWORDS="~amd64 ~arm64"
+IUSE="doc test"
+
+DEPEND="test? ( >=dev-db/redis-7 )"
+
+RUBY_S="${MY_P}"
+
+PATCHES=( "${FILESDIR}/${PN}-4.8.0-local-redis-server.patch" )
+
+ruby_add_bdepend "test? (
+ dev-ruby/minitest
+ dev-ruby/mocha
+)"
+
+all_ruby_prepare() {
+ sed -i -e 's/git ls-files --/echo/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ sed -i -e '/test_connection_timeout/askip "requires network"' test/redis/internals_test.rb || die
+ sed -e '/test_defaults_to_localhost/askip "assumes localhost == 127.0.0.1"' \
+ -i test/redis/url_param_test.rb || die
+
+ sed -i -e '/bundler/ s:^:#:' Rakefile || die
+}
+
+each_ruby_test() {
+ RUBY=${RUBY} TMP=${T} MT_NO_PLUGINS=true VERBOSE=true emake -j1 all
+ einfo "Wait 5 seconds for servers to stop"
+ sleep 5
+}