diff options
-rw-r--r-- | dev-ruby/hiredis/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/hiredis/hiredis-0.6.3.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/hiredis/Manifest b/dev-ruby/hiredis/Manifest index 1c36e96a68d6..3b8b5704efc2 100644 --- a/dev-ruby/hiredis/Manifest +++ b/dev-ruby/hiredis/Manifest @@ -1 +1,2 @@ DIST hiredis-rb-0.6.1.tar.gz 18843 BLAKE2B 56edb460d39018730f43aeb443b6a9d81e2573ebbb6c3149a18db836c8ef5fc8ceceaa768b1a7157280f3e2fd1ed117a76cc6d06c13e326fd45b8bd4efccb24a SHA512 23107d68501c244ec2669448aa919a612be182b559f28a715a4e3a91a894332105ae3a5c96652a691f01e49c88772a482f0da11b80bbb443fa0146bbf77cc722 +DIST hiredis-rb-0.6.3.tar.gz 19106 BLAKE2B 2892fd28bf7e7edfc3563a0c321fd781baeca9eb31a64dd559a6c828bb9c4fe37c995748782c5222db46b5b35a4d17f5b8b4d8e5306209a0e374ec7096d3cd4b SHA512 3e081d46aeb128789fa41fe9422186dd30e88c5a7a3c16dfcf1a92fe7faf99cced352ea39a885785fc12f0a974625be329d9ff2a5936a786febe8a2c81f5e139 diff --git a/dev-ruby/hiredis/hiredis-0.6.3.ebuild b/dev-ruby/hiredis/hiredis-0.6.3.ebuild new file mode 100644 index 000000000000..d840099be264 --- /dev/null +++ b/dev-ruby/hiredis/hiredis-0.6.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25" + +MY_P="hiredis-rb-${PV}" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +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 )" + +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_configure() { + CC=$(tc-getCC) ${RUBY} -Cext/hiredis_ext extconf.rb || die +} + +each_ruby_compile() { + emake V=1 -Cext/hiredis_ext + cp ext/hiredis_ext/hiredis_ext.so lib/hiredis/ext/ || die +} + +each_ruby_test() { + ${RUBY} -Ilib:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die +} |