dev-ruby/bcrypt_pbkdf: initial import of 1.0.0
authorHans de Graaff <graaff@gentoo.org>
Mon, 27 Feb 2017 06:50:57 +0000 (07:50 +0100)
committerHans de Graaff <graaff@gentoo.org>
Mon, 27 Feb 2017 06:51:37 +0000 (07:51 +0100)
New test dependency for dev-ruby/net-ssh.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-ruby/bcrypt_pbkdf/Manifest [new file with mode: 0644]
dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.0.0.ebuild [new file with mode: 0644]
dev-ruby/bcrypt_pbkdf/metadata.xml [new file with mode: 0644]

diff --git a/dev-ruby/bcrypt_pbkdf/Manifest b/dev-ruby/bcrypt_pbkdf/Manifest
new file mode 100644 (file)
index 0000000..9e9790d
--- /dev/null
@@ -0,0 +1 @@
+DIST bcrypt_pbkdf-1.0.0.gem 24576 SHA256 1b86abaca5f4b0e9626b3218ba8f680863bfb3ea2316e1cf647be3c346984432 SHA512 b582407617633f5277cde9251ed1fd2ca408ae8bd19cc73f107d7932bed38061dc0099d3033ff5def1b586507392c33d8c50815fb156322f0dd08fbbe4a8e967 WHIRLPOOL 9401dc3fcde08ff9fe83bd76b92fc779ed9d37c517b6a72b90726b10b211bf3290d268caf93bf0068fe1430c89942bb4a034151c43d35a2033208a7724b4987d
diff --git a/dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.0.0.ebuild b/dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.0.0.ebuild
new file mode 100644 (file)
index 0000000..065650f
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Implements bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)"
+HOMEPAGE="https://github.com/net-ssh/bcrypt_pbkdf-ruby"
+
+LICENSE="MIT"
+SLOT="1"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/rbnacl )"
+
+all_ruby_prepare() {
+       # Don't use a ruby-bundled version of libsodium
+       sed -i -e '/rbnacl\/libsodium/ s:^:#:' test/bcrypt_pnkdf/engine_test.rb || die
+}
+
+each_ruby_configure() {
+       ${RUBY} -Cext/mri extconf.rb || die
+}
+
+each_ruby_compile() {
+       emake V=1 -Cext/mri
+       cp ext/mri/bcrypt_pbkdf_ext.so lib/ || die
+}
diff --git a/dev-ruby/bcrypt_pbkdf/metadata.xml b/dev-ruby/bcrypt_pbkdf/metadata.xml
new file mode 100644 (file)
index 0000000..cae8151
--- /dev/null
@@ -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">net-ssh/bcrypt_pbkdf-ruby</remote-id>
+  </upstream>
+</pkgmetadata>