diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ruby/redis | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ruby/redis')
-rw-r--r-- | dev-ruby/redis/Manifest | 7 | ||||
-rw-r--r-- | dev-ruby/redis/files/redis-3.2.1-local-redis-server.patch | 68 | ||||
-rw-r--r-- | dev-ruby/redis/files/redis-4.0.1-local-redis-server.patch | 40 | ||||
-rw-r--r-- | dev-ruby/redis/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/redis/redis-3.3.5.ebuild | 39 | ||||
-rw-r--r-- | dev-ruby/redis/redis-4.0.1.ebuild | 39 |
6 files changed, 204 insertions, 0 deletions
diff --git a/dev-ruby/redis/Manifest b/dev-ruby/redis/Manifest new file mode 100644 index 000000000000..bc3366b3a523 --- /dev/null +++ b/dev-ruby/redis/Manifest @@ -0,0 +1,7 @@ +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 +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 +EBUILD redis-3.3.5.ebuild 1111 BLAKE2B 9cda0e7a6bee91133d9277b28ffa16a719ebbf1c297000961172d2d7feb1087e97344010c18c77f45f2337bc8679c21d1ece2266f7c4e0c8565e1a6a3e4deaa8 SHA512 df503eafb017f582f34e233b9ea8d167ebf15afd68edc5c89697a2871eba400612b72d5cff39399813deeb26ad8e2c11c4a1a013298b7f7008960a8ca5ebe1f3 +EBUILD redis-4.0.1.ebuild 865 BLAKE2B 4ecdf94e28f8c2a83d9fe5905d77b92e5f6ef3769d5bd7abeb4f8391616a1377c1d6ef337e97b512319fc4d4c6c2e4981cdbc8537feaa6b34c4a85f493ef6ea0 SHA512 1823730c4ada0a1234ea590de9c6f43dc7f2e6fe38802c9fc9af8b2404e3cbbc1f3034e42623bf6d55e92cb55fe186b869b16d2eaace3ae2231d78a7c42546ff +MISC metadata.xml 340 BLAKE2B 5b94605ef889ee35d161b2dd31d4b5b6c2411522c448d6e937b278ecac5fdc0b07c20956359809a78f27a9da0f0991f4b7be121bb13bd783914fd8d87a977510 SHA512 ea208ef15e2354cac75844869a922aaf69c7db9c0776984c4282fecda4ee8003504bbf013c29f008d616aff92cccc74bb157bf7d7f8c44777cf9dee7f15ce149 diff --git a/dev-ruby/redis/files/redis-3.2.1-local-redis-server.patch b/dev-ruby/redis/files/redis-3.2.1-local-redis-server.patch new file mode 100644 index 000000000000..3c6b351db485 --- /dev/null +++ b/dev-ruby/redis/files/redis-3.2.1-local-redis-server.patch @@ -0,0 +1,68 @@ +--- a/Rakefile 2015-08-11 22:16:04.474139810 +0100 ++++ b/Rakefile 2015-08-11 22:19:01.024398679 +0100 +@@ -1,14 +1,11 @@ + require "rake/testtask" + +-ENV["REDIS_BRANCH"] ||= "unstable" +- + REDIS_DIR = File.expand_path(File.join("..", "test"), __FILE__) + REDIS_CNF = File.join(REDIS_DIR, "test.conf") + REDIS_CNF_TEMPLATE = File.join(REDIS_DIR, "test.conf.erb") + REDIS_PID = File.join(REDIS_DIR, "db", "redis.pid") + REDIS_LOG = File.join(REDIS_DIR, "db", "redis.log") + REDIS_SOCKET = File.join(REDIS_DIR, "db", "redis.sock") +-BINARY = "tmp/redis-#{ENV["REDIS_BRANCH"]}/src/redis-server" + + task :default => :run + +@@ -16,9 +13,7 @@ + task :run => [:start, :test, :stop] + + desc "Start the Redis server" +-task :start => [BINARY, REDIS_CNF] do +- sh "#{BINARY} --version" +- ++task :start => [REDIS_CNF] do + redis_running = \ + begin + File.exists?(REDIS_PID) && Process.kill(0, File.read(REDIS_PID).to_i) +@@ -27,10 +22,14 @@ + false + end + +- unless redis_running +- unless system("#{BINARY} #{REDIS_CNF}") +- abort "could not start redis-server" +- end ++ unless system("which redis-server") ++ STDERR.puts "redis-server not in PATH" ++ exit 1 ++ end ++ ++ unless system("redis-server #{REDIS_CNF}") ++ STDERR.puts "could not start redis-server" ++ exit 1 + end + + at_exit do +@@ -52,20 +51,6 @@ + FileUtils.rm_f(REDIS_CNF) + end + +-file BINARY do +- branch = ENV.fetch("REDIS_BRANCH") +- +- sh <<-SH +- mkdir -p tmp; +- cd tmp; +- rm -rf redis-#{branch}; +- wget https://github.com/antirez/redis/archive/#{branch}.tar.gz -O #{branch}.tar.gz; +- tar xf #{branch}.tar.gz; +- cd redis-#{branch}; +- make +- SH +-end +- + file REDIS_CNF => [REDIS_CNF_TEMPLATE, __FILE__] do |t| + require 'erb' + diff --git a/dev-ruby/redis/files/redis-4.0.1-local-redis-server.patch b/dev-ruby/redis/files/redis-4.0.1-local-redis-server.patch new file mode 100644 index 000000000000..3bd1b03f494a --- /dev/null +++ b/dev-ruby/redis/files/redis-4.0.1-local-redis-server.patch @@ -0,0 +1,40 @@ +--- a/makefile.~1~ 2017-09-28 18:11:35.000000000 +0200 ++++ b/makefile 2018-04-10 20:45:58.307407705 +0200 +@@ -3,7 +3,7 @@ +-TMP := tmp ++TMP := ${T} + BUILD_DIR := ${TMP}/redis-${REDIS_BRANCH} + TARBALL := ${TMP}/redis-${REDIS_BRANCH}.tar.gz +-BINARY := ${BUILD_DIR}/src/redis-server ++BINARY := /usr/sbin/redis-server +-PID_PATH := ${BUILD_DIR}/redis.pid ++PID_PATH := ${TMP}/redis.pid +-SOCKET_PATH := ${BUILD_DIR}/redis.sock ++SOCKET_PATH := ${TMP}/redis.sock + PORT := 6381 +@@ -11,7 +11,7 @@ + test: ${TEST_FILES} + make start + env SOCKET_PATH=${SOCKET_PATH} \ +- ruby -v $$(echo $? | tr ' ' '\n' | awk '{ print "-r./" $$0 }') -e '' ++ ${RUBY} -v $$(echo $? | tr ' ' '\n' | awk '{ print "-r./" $$0 }') -e '' + make stop + + ${TMP}: +@@ -20,11 +20,11 @@ + ${TARBALL}: ${TMP} + wget https://github.com/antirez/redis/archive/${REDIS_BRANCH}.tar.gz -O $@ + +-${BINARY}: ${TARBALL} ${TMP} +- rm -rf ${BUILD_DIR} +- mkdir -p ${BUILD_DIR} +- tar xf ${TARBALL} -C ${TMP} +- cd ${BUILD_DIR} && make ++# ${BINARY}: ${TARBALL} ${TMP} ++# rm -rf ${BUILD_DIR} ++# mkdir -p ${BUILD_DIR} ++# tar xf ${TARBALL} -C ${TMP} ++# cd ${BUILD_DIR} && make + + stop: + (test -f ${PID_PATH} && (kill $$(cat ${PID_PATH}) || true) && rm -f ${PID_PATH}) || true diff --git a/dev-ruby/redis/metadata.xml b/dev-ruby/redis/metadata.xml new file mode 100644 index 000000000000..d079bc0c5a52 --- /dev/null +++ b/dev-ruby/redis/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">redis/redis-rb</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/redis/redis-3.3.5.ebuild b/dev-ruby/redis/redis-3.3.5.ebuild new file mode 100644 index 000000000000..21dfc6a7a708 --- /dev/null +++ b/dev-ruby/redis/redis-3.3.5.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +MY_P="redis-rb-${PV}" +RUBY_FAKEGEM_RECIPE_TEST="rake" +RUBY_FAKEGEM_TASK_TEST="run" +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +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="0" +KEYWORDS="~amd64" +IUSE="doc test" + +DEPEND="test? ( >=dev-db/redis-3.2.0 )" + +RUBY_S="${MY_P}" + +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" + + # Version 3.0.6 downloads and compiles redis-server to test against. + # This patch reverts it to the way 3.0.5 does it, using the local server. + # https://github.com/redis/redis-rb/commit/351a1294fe33f79c23495b7568045e9f484918f2 + epatch "${FILESDIR}/${PN}-3.2.1-local-redis-server.patch" +} diff --git a/dev-ruby/redis/redis-4.0.1.ebuild b/dev-ruby/redis/redis-4.0.1.ebuild new file mode 100644 index 000000000000..e74cfcf17fb7 --- /dev/null +++ b/dev-ruby/redis/redis-4.0.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +MY_P="redis-rb-${PV}" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +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}/${P}-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" +} + +each_ruby_test() { + RUBY=${RUBY} emake test +} |