summaryrefslogtreecommitdiff
path: root/dev-ruby/rbnacl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ruby/rbnacl
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ruby/rbnacl')
-rw-r--r--dev-ruby/rbnacl/Manifest6
-rw-r--r--dev-ruby/rbnacl/files/rbnacl-buffer-size.patch24
-rw-r--r--dev-ruby/rbnacl/metadata.xml11
-rw-r--r--dev-ruby/rbnacl/rbnacl-4.0.2-r1.ebuild34
-rw-r--r--dev-ruby/rbnacl/rbnacl-5.0.0-r1.ebuild34
5 files changed, 109 insertions, 0 deletions
diff --git a/dev-ruby/rbnacl/Manifest b/dev-ruby/rbnacl/Manifest
new file mode 100644
index 000000000000..b7975f90c718
--- /dev/null
+++ b/dev-ruby/rbnacl/Manifest
@@ -0,0 +1,6 @@
+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 793 BLAKE2B 8ccb1d4e86ad54f5236ce5e552efcf2632e7142d8bc36f83547c930c739a6d882198f46858183a063bb54b8f8aa7586e22bb8a1249963fb369afe48b232da759 SHA512 d2bfdcb7df8a062c08c1d7940fda61acc9b08c35062a11edef2ce410fc8b09f2a77d4206bddde690e68231cf044bfa3e6e9009fdbb359613c080bb9ca646cd61
+EBUILD rbnacl-5.0.0-r1.ebuild 796 BLAKE2B dd40acec7061c975e4a6720b8166a1340536ed158e6ebab1fa3bcbc431d62843113ddb8ebe75812be74a03f6f34bc4858729930f7e4241af5abb1f96a74cd7b0 SHA512 6e3e13beb35f521bc101c09d8a96f9a8ed1ce7cbac54b24ae27cad0bd8a72c168fbb3deb84eb5d0a715e2ea82721f28b3daec3a459be6fac0cfb009beda13323
+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/metadata.xml b/dev-ruby/rbnacl/metadata.xml
new file mode 100644
index 000000000000..22da0070927f
--- /dev/null
+++ b/dev-ruby/rbnacl/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">cryptosphere/rbnacl</remote-id>
+ </upstream>
+</pkgmetadata>
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..b62445566fca
--- /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 ~ppc 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..eb869f6fed59
--- /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 ~ppc ~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
+}