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: Thu, 14 Jul 2016 05:53:13
Message-Id: 1468475561.2a26ebd616450aa3e1b7bbc4918554f357173c3b.graaff@gentoo
1 commit: 2a26ebd616450aa3e1b7bbc4918554f357173c3b
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 14 05:12:15 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 14 05:52:41 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a26ebd6
7
8 dev-ruby/bcrypt-ruby: add ruby23 revision
9
10 Package-Manager: portage-2.2.28
11
12 dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.11-r1.ebuild | 60 +++++++++++++++++++++++
13 1 file changed, 60 insertions(+)
14
15 diff --git a/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.11-r1.ebuild b/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.11-r1.ebuild
16 new file mode 100644
17 index 0000000..be3bff1
18 --- /dev/null
19 +++ b/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.11-r1.ebuild
20 @@ -0,0 +1,60 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +USE_RUBY="ruby20 ruby21 ruby22 ruby23"
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 +inherit multilib ruby-fakegem
37 +
38 +DESCRIPTION="An easy way to keep your users' passwords secure"
39 +HOMEPAGE="https://github.com/codahale/bcrypt-ruby"
40 +LICENSE="MIT"
41 +
42 +KEYWORDS="~amd64 ~arm ~ppc64 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
43 +SLOT="0"
44 +IUSE=""
45 +
46 +all_ruby_prepare() {
47 + rm Gemfile || die
48 + sed -i -e '/git ls-files/d' bcrypt.gemspec || die
49 +}
50 +
51 +each_ruby_configure() {
52 + ${RUBY} -Cext/mri extconf.rb || die
53 +}
54 +
55 +each_ruby_compile() {
56 + emake -Cext/mri V=1
57 + cp ext/mri/*$(get_modname) lib/ || die
58 +}
59 +
60 +each_ruby_install() {
61 + each_fakegem_install
62 +
63 + # bcrypt was called bcrypt-ruby before, so add a spec file that
64 + # simply loads bcrypt to make sure that old projects load correctly
65 + # we don't even need to create a file to load this: the `require
66 + # bcrypt` was already part of bcrypt-ruby requirements.
67 + cat - <<EOF > "${T}/bcrypt-ruby.gemspec"
68 +Gem::Specification.new do |s|
69 + s.name = "bcrypt-ruby"
70 + s.version = "${RUBY_FAKEGEM_VERSION}"
71 + s.summary = "Fake gem to load bcrypt"
72 + s.homepage = "${HOMEPAGE}"
73 + s.specification_version = 3
74 + s.add_runtime_dependency("${RUBY_FAKEGEM_NAME}", ["= ${RUBY_FAKEGEM_VERSION}"])
75 +end
76 +EOF
77 + RUBY_FAKEGEM_NAME=bcrypt-ruby \
78 + RUBY_FAKEGEM_GEMSPEC="${T}/bcrypt-ruby.gemspec" \
79 + ruby_fakegem_install_gemspec
80 +}