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: Wed, 30 Jun 2021 06:56:49
Message-Id: 1625036186.cb525e456fb0abb7af815ba0b6698a723c5e262d.graaff@gentoo
1 commit: cb525e456fb0abb7af815ba0b6698a723c5e262d
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 27 06:12:57 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 30 06:56:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb525e45
7
8 dev-ruby/bcrypt-ruby: fix extension install
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.16-r1.ebuild | 52 +++++++++++++++++++++++
14 1 file changed, 52 insertions(+)
15
16 diff --git a/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.16-r1.ebuild b/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.16-r1.ebuild
17 new file mode 100644
18 index 00000000000..6a764451438
19 --- /dev/null
20 +++ b/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.16-r1.ebuild
21 @@ -0,0 +1,52 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +USE_RUBY="ruby25 ruby26 ruby27"
28 +
29 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
30 +
31 +RUBY_FAKEGEM_TASK_DOC=""
32 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
33 +
34 +RUBY_FAKEGEM_NAME="bcrypt"
35 +
36 +RUBY_FAKEGEM_EXTENSIONS=(ext/mri/extconf.rb)
37 +
38 +inherit multilib ruby-fakegem
39 +
40 +DESCRIPTION="An easy way to keep your users' passwords secure"
41 +HOMEPAGE="https://github.com/codahale/bcrypt-ruby"
42 +LICENSE="MIT"
43 +
44 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +SLOT="0"
46 +IUSE=""
47 +
48 +all_ruby_prepare() {
49 + rm Gemfile || die
50 + sed -i -e '/git ls-files/d' bcrypt.gemspec || die
51 +}
52 +
53 +each_ruby_install() {
54 + each_fakegem_install
55 +
56 + # bcrypt was called bcrypt-ruby before, so add a spec file that
57 + # simply loads bcrypt to make sure that old projects load correctly
58 + # we don't even need to create a file to load this: the `require
59 + # bcrypt` was already part of bcrypt-ruby requirements.
60 + cat - <<EOF > "${T}/bcrypt-ruby.gemspec"
61 +Gem::Specification.new do |s|
62 + s.name = "bcrypt-ruby"
63 + s.version = "${RUBY_FAKEGEM_VERSION}"
64 + s.summary = "Fake gem to load bcrypt"
65 + s.homepage = "${HOMEPAGE}"
66 + s.specification_version = 3
67 + s.add_runtime_dependency("${RUBY_FAKEGEM_NAME}", ["= ${RUBY_FAKEGEM_VERSION}"])
68 +end
69 +EOF
70 + RUBY_FAKEGEM_NAME=bcrypt-ruby \
71 + RUBY_FAKEGEM_GEMSPEC="${T}/bcrypt-ruby.gemspec" \
72 + ruby_fakegem_install_gemspec
73 +}