dev-ruby/bcrypt_pbkdf: add 1.0.1
authorHans de Graaff <graaff@gentoo.org>
Fri, 5 Apr 2019 05:09:22 +0000 (07:09 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sat, 6 Apr 2019 05:56:37 +0000 (07:56 +0200)
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

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

index 03fd783f958e45f3e5d1c423b334f6c1e6e68ec6..c142f23b22df29b0ab4155f54b163f8db3025e43 100644 (file)
@@ -1 +1,2 @@
 DIST bcrypt_pbkdf-1.0.0.gem 24576 BLAKE2B 0d5b1d90d57dbae986fcbb92cabb0ea598d6b928dc97026e8d2078f41898e0c143544a004a561c0a392504baa4b845a27f9c1e19c369f6342f7ace9de7f04d3f SHA512 b582407617633f5277cde9251ed1fd2ca408ae8bd19cc73f107d7932bed38061dc0099d3033ff5def1b586507392c33d8c50815fb156322f0dd08fbbe4a8e967
+DIST bcrypt_pbkdf-1.0.1.gem 24576 BLAKE2B 7ccade2b5eeabcdcffe5c53bf8ed2e4163536229b7ccd356e173c0b2a27c720aa5429ea0081d2a3e7e7cfc52613c32a48529233156b56db4bbd48da61bbd9cdf SHA512 7caf65dc48ec9d51dbde7741b0960e2606129f888787db31fe36f3cf103d51f06156e942badb10310faa8ca9dcf8f7f8dd86358431942a6e2097714ae3462dee
diff --git a/dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.0.1.ebuild b/dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.0.1.ebuild
new file mode 100644 (file)
index 0000000..54cd5f6
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+
+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 ~arm ~ppc ~ppc64 ~x86"
+IUSE=""
+
+ruby_add_bdepend "test? ( virtual/ruby-ssl )"
+
+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
+
+       # Avoid unneeded rake-compiler dependency
+       sed -i -e '/extensiontask/ s:^:#:' -e '/ExtensionTask/,/^end/ s:^:#:' Rakefile || die
+}
+
+each_ruby_configure() {
+       ${RUBY} -Cext/mri extconf.rb || die
+
+       # Some methods may not be inlined on x86 but they are not defined either, bug 629164
+       sed -i -e 's:-Wl,--no-undefined::' ext/mri/Makefile || die
+}
+
+each_ruby_compile() {
+       emake V=1 -Cext/mri
+       cp ext/mri/bcrypt_pbkdf_ext.so lib/ || die
+}