diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-22 14:25:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-22 14:25:03 +0100 |
commit | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (patch) | |
tree | b041acef19bb9ae66c228d5c9d34d1e00aeb2b95 /dev-ruby/hiredis | |
parent | 5cfef3c94cd7e82136c69a0322f5ba21f7e64632 (diff) |
gentoo resync : 22.04.2018
Diffstat (limited to 'dev-ruby/hiredis')
-rw-r--r-- | dev-ruby/hiredis/Manifest | 4 | ||||
-rw-r--r-- | dev-ruby/hiredis/files/hiredis-0.6.1-unvendor-hiredis.patch | 20 | ||||
-rw-r--r-- | dev-ruby/hiredis/hiredis-0.6.1.ebuild | 46 | ||||
-rw-r--r-- | dev-ruby/hiredis/metadata.xml | 11 |
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-ruby/hiredis/Manifest b/dev-ruby/hiredis/Manifest new file mode 100644 index 000000000000..0d747a96856c --- /dev/null +++ b/dev-ruby/hiredis/Manifest @@ -0,0 +1,4 @@ +AUX hiredis-0.6.1-unvendor-hiredis.patch 668 BLAKE2B 028700bf24f26e0090fefde677c32c44de57558ce9e334c7d2396e8fd98112ad96fa9502a1aa363ff4843d3b7e9d80a07870a011482d0716b84d22414014d3eb SHA512 c58191682152d26c823c01c689a4cb9becc6dd870034e8ddb7f1aa64a345025f771beb1f72b3dcfebb6948412e1548c9f28fb65c11d60243acad232ecd5e5787 +DIST hiredis-rb-0.6.1.tar.gz 18843 BLAKE2B 56edb460d39018730f43aeb443b6a9d81e2573ebbb6c3149a18db836c8ef5fc8ceceaa768b1a7157280f3e2fd1ed117a76cc6d06c13e326fd45b8bd4efccb24a SHA512 23107d68501c244ec2669448aa919a612be182b559f28a715a4e3a91a894332105ae3a5c96652a691f01e49c88772a482f0da11b80bbb443fa0146bbf77cc722 +EBUILD hiredis-0.6.1.ebuild 1099 BLAKE2B 8938a1e43b3540c935e92a3e68e575a24f21774c8ba9c44615dffaecb9d64244ca25c379ae35d9935d938f943aeff9048c2c322425a718bbff173f4d895783cc SHA512 3f32b22b30d19acb2309ef55cc5367f76a65c4cb006e2a89a16761246e20f8fd1ae65fd97ba524996225a706082edad40d2985635808a154aa80f8327c4ea522 +MISC metadata.xml 342 BLAKE2B fd0bfbbf389a657ac98a4bd4da04180258197b8947e4fcff2d0495f99d74795e97c17d90e4f8cd3c37896fe438fb51f61b7c8bf524a546da12f1e1db949275cb SHA512 82e2c1eba3739857ef533105899b3fa50865136d9aa54709b97d46beb8791c3025b78fbd5173db3c5e0981c0d0873f88ceef9b4a1abdeee7d47c860ae6b25c92 diff --git a/dev-ruby/hiredis/files/hiredis-0.6.1-unvendor-hiredis.patch b/dev-ruby/hiredis/files/hiredis-0.6.1-unvendor-hiredis.patch new file mode 100644 index 000000000000..e8fb1f9ffa62 --- /dev/null +++ b/dev-ruby/hiredis/files/hiredis-0.6.1-unvendor-hiredis.patch @@ -0,0 +1,20 @@ +--- a/ext/hiredis_ext/extconf.rb 2015-12-29 15:53:00.000000000 +0100 ++++ b/ext/hiredis_ext/extconf.rb 2018-04-21 07:40:15.973747727 +0200 +@@ -27,15 +27,8 @@ + end + + if build_hiredis +- # Make sure hiredis is built... +- Dir.chdir(hiredis_dir) do +- success = system("#{make_program} static") +- raise "Building hiredis failed" if !success +- end +- +- # Statically link to hiredis (mkmf can't do this for us) +- $CFLAGS << " -I#{hiredis_dir}" +- $LDFLAGS << " #{hiredis_dir}/libhiredis.a" ++ $CFLAGS << ' ' << `pkg-config hiredis --cflags-only-I`.chomp ++ $LDFLAGS << ' -lhiredis' + + have_func("rb_thread_fd_select") + create_makefile('hiredis/ext/hiredis_ext') diff --git a/dev-ruby/hiredis/hiredis-0.6.1.ebuild b/dev-ruby/hiredis/hiredis-0.6.1.ebuild new file mode 100644 index 000000000000..c41f5f6a8a25 --- /dev/null +++ b/dev-ruby/hiredis/hiredis-0.6.1.ebuild @@ -0,0 +1,46 @@ +# 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="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:=" +DEPEND+=" dev-libs/hiredis test? ( dev-ruby/test-unit:2 )" + +RUBY_S="${MY_P}" + +PATCHES=( "${FILESDIR}/${P}-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 +} diff --git a/dev-ruby/hiredis/metadata.xml b/dev-ruby/hiredis/metadata.xml new file mode 100644 index 000000000000..b87d27bfe864 --- /dev/null +++ b/dev-ruby/hiredis/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/hiredis-rb</remote-id> + </upstream> +</pkgmetadata> |