summaryrefslogtreecommitdiff
path: root/dev-ruby/rbnacl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-07 13:16:39 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-07 13:16:39 +0100
commite91a1aaa5ec8fab37f0fd082ac6024d41c6651e2 (patch)
treeee7587dfd365faadd9b297d595c31368bf94f9ca /dev-ruby/rbnacl
parent2d446203bcf1a0db08e99abca43513d246dfa73d (diff)
gentoo resync : 07.04.2018
Diffstat (limited to 'dev-ruby/rbnacl')
-rw-r--r--dev-ruby/rbnacl/Manifest3
-rw-r--r--dev-ruby/rbnacl/files/rbnacl-buffer-size.patch24
-rw-r--r--dev-ruby/rbnacl/rbnacl-4.0.2-r1.ebuild34
-rw-r--r--dev-ruby/rbnacl/rbnacl-5.0.0-r1.ebuild34
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-ruby/rbnacl/Manifest b/dev-ruby/rbnacl/Manifest
index b2c534027d66..bcf2781de066 100644
--- a/dev-ruby/rbnacl/Manifest
+++ b/dev-ruby/rbnacl/Manifest
@@ -1,5 +1,8 @@
+AUX rbnacl-buffer-size.patch 765 BLAKE2B 0865380f35748adeddda7a9a880df0c1be81994a965ecd40505e9f47f39c7d2a55876080007e28204e388f5a09396d28275d2cf9547536523c7d2fc5f6e035d1 SHA512 da9dd16452b1449f3d862d940b518bf4b99726195ee0ccd0bf3633299b6d9f44120b9b638b77243f7a1c30802d79e6467d2673eb7987cbe38091033aecda283b
DIST rbnacl-4.0.2.gem 220160 BLAKE2B a4a3a7b0346bdc3d0e1930bf9b1c6c05182456837c53c8a56f5d8eec831df8768589affb00450088c4ccc3de37f474a359e9ea362655ea66ada63467936abcbe SHA512 d13d36e4248d5e40bb5d9496e08823438d312c16d14e3068be89a62dd7f80ec7f99fa5995752b183656b6ae863af77645b16ce45d05a74ad0dfbd4a93c8854d4
DIST rbnacl-5.0.0.gem 221184 BLAKE2B f64a754c478c57af901432e9cef335d9f01c1acadcd9d860dacca2ed5d59bdb71f3a431488357b57cbe7af61cf03b50b95ab5421a9ac59f63242a0ddd693e373 SHA512 d6c0c90587beae9f5086c442f4b7b9f430d527576307c5a5cdc5532b231245e5615434a001b3a4b47d1fb7d7148a167d77f12e7b4f5bd1c25c7ce5d361eb42f6
+EBUILD rbnacl-4.0.2-r1.ebuild 791 BLAKE2B 408e3052ae835f5ed38dfd2868d0f487f8a7d98216c13e4653442486876970f85dc6cc44412bcc9bc8e81485f2328b5f20fcdbe4db476263f566195b3d52001f SHA512 c8fae88125432aec1ce993d5d2b4c190bbc8367bea58967c460b52811ce061485f3646e3ad66c7796051626d19a56960d13c166232e679fec9f9e6c78fbcde1f
EBUILD rbnacl-4.0.2.ebuild 732 BLAKE2B 5be15765f01815876ff917d7269dff676b976bb9df480d023efaa33fb2ccc46c5e1c48b50779728dd5138700745591b513c10dbaaff215efe09f153e87b3d31a SHA512 e79034cd960e14e132af7dd970d84a9c7fa33d91a9ed158a4efab3abeb370658535ebb32346b7126dd0422bdfd45cf5116b38ad333810596c47c216237a331b4
+EBUILD rbnacl-5.0.0-r1.ebuild 791 BLAKE2B f9e541f536b12d9100c62cf354a494f2f2975104fdf538a0e185cbd2f4816f238daaf8f15c66e1bfb4d46c6ae5c28644ec09121843da557cb5996315f69ff163 SHA512 a0a0f2e4696e68406d29420c2032e2b957d106b76b093da801d264ca075df17ce7fe94d81c8e0e2809992974138d3737bc4397c1745aa8a0e7f8f17b861861f2
EBUILD rbnacl-5.0.0.ebuild 732 BLAKE2B 28181a8ec26112bb8eb2e24c4d63c31ddbaeb8fe869c759462c92657547bc6129834f06264dc728749ec18a99175535fecf8b06610fc6c1fea478a0758e32f83 SHA512 0a2b2e61faf92b904efb535b7641c0db37caa78c21ad71895cb864b505dacc53df4186ed35b7ec241db754b40af83a0285a65676319339c8077debcf51c202ae
MISC metadata.xml 345 BLAKE2B 9b2e901225c95717838370d1de17dea5619d4485d7856050d55abd8bd05eeadbf012ce47b160d367e0027d2e42abfdf4eed15c598d0a8062713a00894495cd88 SHA512 e18502485ad21a5e5cb71be6f2980657a40b08618b50147f50daba44e1f87f009f796e1df046bef94c05bb9305e1bf9dd1a81df33c7fdacc8c2974dd18cd309e
diff --git a/dev-ruby/rbnacl/files/rbnacl-buffer-size.patch b/dev-ruby/rbnacl/files/rbnacl-buffer-size.patch
new file mode 100644
index 000000000000..3725c8550e0b
--- /dev/null
+++ b/dev-ruby/rbnacl/files/rbnacl-buffer-size.patch
@@ -0,0 +1,24 @@
+Patches based on upstream patch below but reworked to apply to 5.0.0
+
+From 299e0ddbb8fcafc99214c26d6002da145cc84a0c Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyfox@gentoo.org>
+Date: Sun, 18 Mar 2018 21:13:09 +0000
+Subject: [PATCH] rbnacl: fix byffer size type in randombytes_buf binding
+
+---
+ lib/rbnacl/random.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/rbnacl/random.rb b/lib/rbnacl/random.rb
+index 9742186..db85d6d 100644
+--- a/lib/rbnacl/random.rb
++++ b/lib/rbnacl/random.rb
+@@ -13,7 +13,7 @@ module Random
+
+ sodium_function :c_random_bytes,
+ :randombytes_buf,
+- [:pointer, :ulong_long]
++ %i[pointer size_t]
+
+ # Returns a string of random bytes
+ #
diff --git a/dev-ruby/rbnacl/rbnacl-4.0.2-r1.ebuild b/dev-ruby/rbnacl/rbnacl-4.0.2-r1.ebuild
new file mode 100644
index 000000000000..8501b10c9e7f
--- /dev/null
+++ b/dev-ruby/rbnacl/rbnacl-4.0.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby22 ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides a high-level toolkit for building cryptographic systems and protocols"
+HOMEPAGE="https://github.com/cryptosphere/rbnacl"
+
+LICENSE="MIT"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND+=" dev-libs/libsodium"
+DEPEND+=" test? ( dev-libs/libsodium )"
+
+ruby_add_rdepend "dev-ruby/ffi"
+
+PATCHES=( "${FILESDIR}/rbnacl-buffer-size.patch" )
+
+all_ruby_prepare() {
+ sed -i -e '/coveralls/I s:^:#:' \
+ -e '/bundler/ s:^:#:' \
+ -e 's:rbnacl/libsodium:rbnacl:' spec/spec_helper.rb
+}
diff --git a/dev-ruby/rbnacl/rbnacl-5.0.0-r1.ebuild b/dev-ruby/rbnacl/rbnacl-5.0.0-r1.ebuild
new file mode 100644
index 000000000000..6637069d73d2
--- /dev/null
+++ b/dev-ruby/rbnacl/rbnacl-5.0.0-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby22 ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides a high-level toolkit for building cryptographic systems and protocols"
+HOMEPAGE="https://github.com/cryptosphere/rbnacl"
+
+LICENSE="MIT"
+SLOT="5"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND+=" dev-libs/libsodium"
+DEPEND+=" test? ( dev-libs/libsodium )"
+
+ruby_add_rdepend "dev-ruby/ffi"
+
+PATCHES=( "${FILESDIR}/rbnacl-buffer-size.patch" )
+
+all_ruby_prepare() {
+ sed -i -e '/coveralls/I s:^:#:' \
+ -e '/bundler/ s:^:#:' \
+ -e 's:rbnacl/libsodium:rbnacl:' spec/spec_helper.rb
+}