summaryrefslogtreecommitdiff
path: root/dev-ruby/redis
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-05-14 11:09:11 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-05-14 11:09:11 +0100
commitdeba8115d2c2af26df42966b91ef04ff4dd79cde (patch)
tree9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-ruby/redis
parent38423c67c8a23f6a1bc42038193182e2da3116eb (diff)
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-ruby/redis')
-rw-r--r--dev-ruby/redis/Manifest3
-rw-r--r--dev-ruby/redis/files/redis-4.1.4-local-redis-server.patch40
-rw-r--r--dev-ruby/redis/redis-4.1.4.ebuild48
3 files changed, 91 insertions, 0 deletions
diff --git a/dev-ruby/redis/Manifest b/dev-ruby/redis/Manifest
index bc3366b3a523..e74fd2f666b8 100644
--- a/dev-ruby/redis/Manifest
+++ b/dev-ruby/redis/Manifest
@@ -1,7 +1,10 @@
AUX redis-3.2.1-local-redis-server.patch 1710 BLAKE2B 8ade0ba31d4d4466e6f874e2303bfb661d4773346f8bc2ac2144ecb8466da4173289d57d9c71f9e90daf4b560724aaf4a854f623c9f09f098f45498c16f08c6e SHA512 e10f59dfb7249874b0e882b888904901fa780ad1687b5000dc73851fe53e5bd2319c4418847ecca4e22efac404a4a283e108755a03f0615d76e0f23583602576
AUX redis-4.0.1-local-redis-server.patch 1273 BLAKE2B 108c8baef8beea68327c3b9bce8e56d133ff6357068407db08e93b70305726cd061585ec62ae28f8450ccb29b950eb20495c890234c738890aa0228591e97d79 SHA512 0eef2e7535ce06c4f0a86fe3118d12b95ea36f968fdc015fd68faa410041911eb62ace26155fb628751a3e3d264a1fad41890095cbadeb230630c64009b273a0
+AUX redis-4.1.4-local-redis-server.patch 1454 BLAKE2B cfbb707109cac75fb38a614c41b3cd0cb9b9f70bc9e62a2fcdcf9208e7b1b0c3709101d788d1158b0cc3c4e47f9817a82e88ea2165b85304474f47cd1d1cdac6 SHA512 903d186c9a834208f89b06c4ea2ae2d8e8559e0d8d5d0e71a0c7ab8ffd212463e34b1da551b5ad1267a3283eb4c735fb85a94b696d403399368d3d97a2b50abb
DIST redis-rb-3.3.5.tar.gz 88500 BLAKE2B a06e0e08dba211edb6393dd85f7957e56ad928bbd3be105ddeb6ad4f2cfa1d354289ad67f3c8c27d5fd9f8560167708a6937e2950ae12ee0d42d3321940d1e85 SHA512 b79f535b6dff26ae2b0213dd77d53b952fd877ef5193c8bf0f6e5cd0da1934d79711bf611b839ce8b97d7cf145e7e912d2956087501a2f841d42775dc0105a0c
DIST redis-rb-4.0.1.tar.gz 87859 BLAKE2B c53f9a4ae96195eeab9f8fd0eae1ec8bcfeee7b717faf5b85c127ff90a88fbf9a0cfcef9d4c002ef7ee07f12a8e813bfd3e4d284a616d8637029d51a6c067f34 SHA512 c377512e0103a1aadb4aef3e64983fd4b20a26d67320ff0c500b7617c8b3bd5b4ba2240488a7d55be1301bb0b926398835f5c242ae97afe9141b3499da358eb9
+DIST redis-rb-4.1.4.tar.gz 125556 BLAKE2B c1a9e7a365bb12c4aaacfdaff776e370c715a594a05c4270c2dfe85bdc540e915f797fbfa1dc87e10fb03faa56ff572b7e24f7a1244166ea1e1b611900bf22bb SHA512 6c12a75832e8493891ba50ca452960b5748593334287a93c40f117b0e522d483ca0af9a6510271c19f306dfb89a71dd9a7d02c1c8ad3ad82e1d4b31f0b51adad
EBUILD redis-3.3.5.ebuild 1111 BLAKE2B 9cda0e7a6bee91133d9277b28ffa16a719ebbf1c297000961172d2d7feb1087e97344010c18c77f45f2337bc8679c21d1ece2266f7c4e0c8565e1a6a3e4deaa8 SHA512 df503eafb017f582f34e233b9ea8d167ebf15afd68edc5c89697a2871eba400612b72d5cff39399813deeb26ad8e2c11c4a1a013298b7f7008960a8ca5ebe1f3
EBUILD redis-4.0.1.ebuild 865 BLAKE2B 4ecdf94e28f8c2a83d9fe5905d77b92e5f6ef3769d5bd7abeb4f8391616a1377c1d6ef337e97b512319fc4d4c6c2e4981cdbc8537feaa6b34c4a85f493ef6ea0 SHA512 1823730c4ada0a1234ea590de9c6f43dc7f2e6fe38802c9fc9af8b2404e3cbbc1f3034e42623bf6d55e92cb55fe186b869b16d2eaace3ae2231d78a7c42546ff
+EBUILD redis-4.1.4.ebuild 1148 BLAKE2B 136d8fcb1369dd074a02ea23e0bfc6583ee9a020fab0d5028e3de34890279f661e0e34d088b9e7952561676a0fa95ef53f295dba95d58fa91cc3da676afe380a SHA512 06d964009f3a942ab4b6de20c979de27d8e49ce5abebae435d8ffa5829665fabcbb950ceb3c90a628369cb34c1cdb7ba8d700ecccf5005071fec5c7f235ff49a
MISC metadata.xml 340 BLAKE2B 5b94605ef889ee35d161b2dd31d4b5b6c2411522c448d6e937b278ecac5fdc0b07c20956359809a78f27a9da0f0991f4b7be121bb13bd783914fd8d87a977510 SHA512 ea208ef15e2354cac75844869a922aaf69c7db9c0776984c4282fecda4ee8003504bbf013c29f008d616aff92cccc74bb157bf7d7f8c44777cf9dee7f15ce149
diff --git a/dev-ruby/redis/files/redis-4.1.4-local-redis-server.patch b/dev-ruby/redis/files/redis-4.1.4-local-redis-server.patch
new file mode 100644
index 000000000000..b9db61a0a6a7
--- /dev/null
+++ b/dev-ruby/redis/files/redis-4.1.4-local-redis-server.patch
@@ -0,0 +1,40 @@
+--- a/makefile 2019-06-29 08:02:02.519804948 +0200
++++ b/makefile 2019-06-29 08:03:43.125559643 +0200
+@@ -1,16 +1,15 @@
+ REDIS_BRANCH ?= 5.0
+-TMP := tmp
+ BUILD_DIR := ${TMP}/cache/redis-${REDIS_BRANCH}
+ TARBALL := ${TMP}/redis-${REDIS_BRANCH}.tar.gz
+-BINARY := ${BUILD_DIR}/src/redis-server
+-REDIS_CLIENT := ${BUILD_DIR}/src/redis-cli
++BINARY := /usr/sbin/redis-server
++REDIS_CLIENT := /usr/bin/redis-cli
+ REDIS_TRIB := ${BUILD_DIR}/src/redis-trib.rb
+-PID_PATH := ${BUILD_DIR}/redis.pid
+-SOCKET_PATH := ${BUILD_DIR}/redis.sock
++PID_PATH := ${TMP}/redis.pid
++SOCKET_PATH := ${TMP}/redis.sock
+ PORT := 6381
+ SLAVE_PORT := 6382
+-SLAVE_PID_PATH := ${BUILD_DIR}/redis_slave.pid
+-SLAVE_SOCKET_PATH := ${BUILD_DIR}/redis_slave.sock
++SLAVE_PID_PATH := ${TMP}/redis_slave.pid
++SLAVE_SOCKET_PATH := ${TMP}/redis_slave.sock
+ SENTINEL_PORTS := 6400 6401 6402
+ SENTINEL_PID_PATHS := $(addprefix ${TMP}/redis,$(addsuffix .pid,${SENTINEL_PORTS}))
+ CLUSTER_PORTS := 7000 7001 7002 7003 7004 7005
+@@ -43,11 +43,11 @@
+ ${TMP}:
+ @mkdir -p $@
+
+-${BINARY}: ${TMP}
+- @bin/build ${REDIS_BRANCH} $<
++#${BINARY}: ${TMP}
++# @bin/build ${REDIS_BRANCH} $<
+
+ test:
+- @env SOCKET_PATH=${SOCKET_PATH} bundle exec rake test
++ @env SOCKET_PATH=${SOCKET_PATH} ${RUBY} -S rake test
+
+ stop:
+ @$(call kill-redis,${PID_PATH})
diff --git a/dev-ruby/redis/redis-4.1.4.ebuild b/dev-ruby/redis/redis-4.1.4.ebuild
new file mode 100644
index 000000000000..ad182165d50d
--- /dev/null
+++ b/dev-ruby/redis/redis-4.1.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+
+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"
+IUSE="doc test"
+
+DEPEND="test? ( >=dev-db/redis-3.2.0 )"
+
+RUBY_S="${MY_P}"
+
+PATCHES=( "${FILESDIR}/${PN}-4.1.4-local-redis-server.patch" )
+
+all_ruby_prepare() {
+ # call me impatient, but this way we don't need netcat
+ sed -i \
+ -e '/test_subscribe_past_a_timeout/,+18d' \
+ test/publish_subscribe_test.rb || die "sed failed"
+
+ sed -i -e 's/git ls-files --/echo/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ sed -i -e '/test_connection_timeout/askip "requires network"' test/internals_test.rb || die
+}
+
+each_ruby_test() {
+ RUBY=${RUBY} TMP=${T} MT_NO_PLUGINS=true emake -j1 all
+ einfo "Wait 5 seconds for servers to stop"
+ sleep 5
+}