Skip to content

Commit

Permalink
dev-ruby/bcrypt_pbkdf: initial import of 1.0.0
Browse files Browse the repository at this point in the history
New test dependency for dev-ruby/net-ssh.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
graaff committed Feb 27, 2017
1 parent f6674a7 commit 4449849
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-ruby/bcrypt_pbkdf/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST bcrypt_pbkdf-1.0.0.gem 24576 SHA256 1b86abaca5f4b0e9626b3218ba8f680863bfb3ea2316e1cf647be3c346984432 SHA512 b582407617633f5277cde9251ed1fd2ca408ae8bd19cc73f107d7932bed38061dc0099d3033ff5def1b586507392c33d8c50815fb156322f0dd08fbbe4a8e967 WHIRLPOOL 9401dc3fcde08ff9fe83bd76b92fc779ed9d37c517b6a72b90726b10b211bf3290d268caf93bf0068fe1430c89942bb4a034151c43d35a2033208a7724b4987d
36 changes: 36 additions & 0 deletions dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.0.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
11 changes: 11 additions & 0 deletions dev-ruby/bcrypt_pbkdf/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</email>
<name>Gentoo Ruby Project</name>
</maintainer>
<upstream>
<remote-id type="github">net-ssh/bcrypt_pbkdf-ruby</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 4449849

Please sign in to comment.