summaryrefslogtreecommitdiff
path: root/dev-ruby/hiredis
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/hiredis')
-rw-r--r--dev-ruby/hiredis/Manifest1
-rw-r--r--dev-ruby/hiredis/hiredis-0.6.3-r1.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/hiredis/Manifest b/dev-ruby/hiredis/Manifest
index 39a1b440ee17..a127351c48ab 100644
--- a/dev-ruby/hiredis/Manifest
+++ b/dev-ruby/hiredis/Manifest
@@ -1,4 +1,5 @@
AUX hiredis-0.6.1-unvendor-hiredis.patch 599 BLAKE2B 941d7f370c1dc85de07334b77e89180285fc57e604ffb904eb03fbb9c810d28c2c2e229f1589b98f58c80f68f3a21fa881ea78805361b67032a3006605428c1f SHA512 34d527c1182bd5bbc17e0a4e08b29bfeb15a55c02d1cfde75e5bb2b1589ee3dec622d87ed00cc3d7db390f4cb0ddc9c60e2344ef28c48b725eb37262cb349c55
DIST hiredis-rb-0.6.3.tar.gz 19106 BLAKE2B 2892fd28bf7e7edfc3563a0c321fd781baeca9eb31a64dd559a6c828bb9c4fe37c995748782c5222db46b5b35a4d17f5b8b4d8e5306209a0e374ec7096d3cd4b SHA512 3e081d46aeb128789fa41fe9422186dd30e88c5a7a3c16dfcf1a92fe7faf99cced352ea39a885785fc12f0a974625be329d9ff2a5936a786febe8a2c81f5e139
+EBUILD hiredis-0.6.3-r1.ebuild 1036 BLAKE2B 8fb65afb45e448ecb5c5bd5ae6278f359f309ad0ff5d13656fbb4e920623071335c9573c32b6eb62290aac594fd67a68054760b7af012ec0b6ddfd5d787e6a76 SHA512 2de02a6eef243c5c638a362bab63e17b019a1307020a6672d9d60caf374f0121828a2f111774ad65f0258a31e7e199f3a02fb5c2a50c152df5d274c94b4721e0
EBUILD hiredis-0.6.3.ebuild 1177 BLAKE2B 3fa66c7317abd22be66df5ffd3aa7169f9ac62e2f0688a56af77473d247d71787497aa150cffbd580ef89e6675e2e1174594a2f9f1dca25ab653eddf5d3ca010 SHA512 fb0d3dd060e9700696a3eb6e50a23de134134c0bfd3398c65dca871ed2dd73f1e15c4f15e7593bbc8b1ebb04c4cabe6a7a2c7697750e8679d5451becb2a9ef88
MISC metadata.xml 343 BLAKE2B 816ce03a7c4a846888ea2410f1def09d8c56b2f11e6637e0c74fd58eec1117c6ad363411bc4bca45a462320ebbae34785db0b56b9a7bb66de65d4bb316ea70bb SHA512 7cc1565a72c805d327fc2df68c813c5191e6e50dab1901dcc04a4c7f19145ede350dbad584a0bb37387d3a28d9ee0aa93b0918b20adc0d612c751c7730f3b813
diff --git a/dev-ruby/hiredis/hiredis-0.6.3-r1.ebuild b/dev-ruby/hiredis/hiredis-0.6.3-r1.ebuild
new file mode 100644
index 000000000000..ec852faec264
--- /dev/null
+++ b/dev-ruby/hiredis/hiredis-0.6.3-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27 ruby30"
+
+MY_P="hiredis-rb-${PV}"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/hiredis_ext/extconf.rb)
+RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/hiredis/ext"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Wrapper for hiredis (protocol serialization/deserialization and blocking I/O)"
+HOMEPAGE="https://github.com/redis/hiredis-rb"
+SRC_URI="https://github.com/redis/hiredis-rb/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND+=" =dev-libs/hiredis-0.14*:="
+DEPEND+=" dev-libs/hiredis:= test? ( dev-ruby/test-unit:2 )"
+DEPEND+=" virtual/pkgconfig"
+
+RUBY_S="${MY_P}"
+
+PATCHES=( "${FILESDIR}/${PN}-0.6.1-unvendor-hiredis.patch" )
+
+all_ruby_prepare() {
+ sed -i -e 's:/tmp/:'${T}'/:' test/connection_test.rb || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die
+}