Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/bcrypt-ruby/
Date: Sat, 01 Jun 2019 05:19:21
Message-Id: 1559365796.05898a1fa82608d0b867a7007b26c784ed5f3a4b.graaff@gentoo
1 commit: 05898a1fa82608d0b867a7007b26c784ed5f3a4b
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 1 05:09:56 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 1 05:09:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05898a1f
7
8 dev-ruby/bcrypt-ruby: add 3.1.13
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11 Package-Manager: Portage-2.3.66, Repoman-2.3.11
12
13 dev-ruby/bcrypt-ruby/Manifest | 1 +
14 dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.13.ebuild | 59 ++++++++++++++++++++++++++
15 2 files changed, 60 insertions(+)
16
17 diff --git a/dev-ruby/bcrypt-ruby/Manifest b/dev-ruby/bcrypt-ruby/Manifest
18 index 4ce51c4ad15..7435e645c8a 100644
19 --- a/dev-ruby/bcrypt-ruby/Manifest
20 +++ b/dev-ruby/bcrypt-ruby/Manifest
21 @@ -1,2 +1,3 @@
22 DIST bcrypt-3.1.11.gem 44032 BLAKE2B debdc199ff3806b32998c91a99006f293ca6ebbfe2573546afda7c705fbdc0ac8f4cdfba97c1765668cfe3782cb4f9affff1b59b20c42e19fd14a6fa52f66160 SHA512 bf9ff0d3cdd7044b4ee5796cd04869f21bb3384143b0f336bc2cd9a8f0db3f9562aa23a39601c1d86f153b62f07469ef066616f8a52cfcd840377e331cb22454
23 DIST bcrypt-3.1.12.gem 44544 BLAKE2B 767d38c3fc03e24bedc6a14668538d214219b93fed0b918dedfd5aabc25cd46273e0f7a849dbfa8d23e4ace2ec037809dcd927a9942bfcc126def7e707252c39 SHA512 1cb465bc00e40c82c7b9789cf5ba96273a455f4c1c993f411a9b80d39aa9c938e4909a094ca92af786ad3cd836eebac2aefcbe1bb29c6238947e55fcdc110d35
24 +DIST bcrypt-3.1.13.gem 54272 BLAKE2B b2a349955a066e39cc50540ff116e70e2bac359c03ddd9dfa35d6a946d15235921cd82feec8b1d76f5f82a3ff9dea288f115dc8e1fae3f24e559a1462e173ccd SHA512 d996f381643a0322d66a1a5dc7d26887baaf48d90ac8f87283bf2aa35f2a0048049e1df10d95283d37f25e3331ca3cb19a9a7c12b95fa1b1a1bdec0e5d8133bf
25
26 diff --git a/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.13.ebuild b/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.13.ebuild
27 new file mode 100644
28 index 00000000000..929efd4d33e
29 --- /dev/null
30 +++ b/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.13.ebuild
31 @@ -0,0 +1,59 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +USE_RUBY="ruby23 ruby24 ruby25 ruby26"
38 +
39 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
40 +
41 +RUBY_FAKEGEM_TASK_DOC=""
42 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
43 +
44 +RUBY_FAKEGEM_NAME="bcrypt"
45 +
46 +inherit multilib ruby-fakegem
47 +
48 +DESCRIPTION="An easy way to keep your users' passwords secure"
49 +HOMEPAGE="https://github.com/codahale/bcrypt-ruby"
50 +LICENSE="MIT"
51 +
52 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
53 +SLOT="0"
54 +IUSE=""
55 +
56 +all_ruby_prepare() {
57 + rm Gemfile || die
58 + sed -i -e '/git ls-files/d' bcrypt.gemspec || die
59 +}
60 +
61 +each_ruby_configure() {
62 + ${RUBY} -Cext/mri extconf.rb || die
63 +}
64 +
65 +each_ruby_compile() {
66 + emake -Cext/mri V=1
67 + cp ext/mri/*$(get_modname) lib/ || die
68 +}
69 +
70 +each_ruby_install() {
71 + each_fakegem_install
72 +
73 + # bcrypt was called bcrypt-ruby before, so add a spec file that
74 + # simply loads bcrypt to make sure that old projects load correctly
75 + # we don't even need to create a file to load this: the `require
76 + # bcrypt` was already part of bcrypt-ruby requirements.
77 + cat - <<EOF > "${T}/bcrypt-ruby.gemspec"
78 +Gem::Specification.new do |s|
79 + s.name = "bcrypt-ruby"
80 + s.version = "${RUBY_FAKEGEM_VERSION}"
81 + s.summary = "Fake gem to load bcrypt"
82 + s.homepage = "${HOMEPAGE}"
83 + s.specification_version = 3
84 + s.add_runtime_dependency("${RUBY_FAKEGEM_NAME}", ["= ${RUBY_FAKEGEM_VERSION}"])
85 +end
86 +EOF
87 + RUBY_FAKEGEM_NAME=bcrypt-ruby \
88 + RUBY_FAKEGEM_GEMSPEC="${T}/bcrypt-ruby.gemspec" \
89 + ruby_fakegem_install_gemspec
90 +}