diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-11-09 08:09:30 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-11-09 08:09:30 +0100 |
commit | 974556046b3353997a7ae22879915853b5de19e9 (patch) | |
tree | 42541ef92ea4dc93d21a3873313fb2fb4d09bb24 /dev-ruby/hiredis/hiredis-0.6.3.ebuild | |
parent | sys-cluster/ceph: revbump, fix logrotate problem in 12.2.8 and 13.2.2 (diff) | |
download | gentoo-974556046b3353997a7ae22879915853b5de19e9.tar.gz gentoo-974556046b3353997a7ae22879915853b5de19e9.tar.bz2 gentoo-974556046b3353997a7ae22879915853b5de19e9.zip |
dev-ruby/hiredis: add 0.6.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/hiredis/hiredis-0.6.3.ebuild')
-rw-r--r-- | dev-ruby/hiredis/hiredis-0.6.3.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
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 +} |