Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/bcrypt-ruby: ChangeLog bcrypt-ruby-3.1.6.ebuild
Date: Sun, 23 Feb 2014 07:03:05
Message-Id: 20140223070301.D89432004C@flycatcher.gentoo.org
1 graaff 14/02/23 07:03:01
2
3 Modified: ChangeLog
4 Added: bcrypt-ruby-3.1.6.ebuild
5 Log:
6 Version bump. Handle renaming of the gem from bcrypt-ruby to bcrypt. Install compability gemspec.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.17 dev-ruby/bcrypt-ruby/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bcrypt-ruby/ChangeLog?rev=1.17&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bcrypt-ruby/ChangeLog?rev=1.17&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bcrypt-ruby/ChangeLog?r1=1.16&r2=1.17
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/bcrypt-ruby/ChangeLog,v
20 retrieving revision 1.16
21 retrieving revision 1.17
22 diff -u -r1.16 -r1.17
23 --- ChangeLog 5 Nov 2013 00:43:13 -0000 1.16
24 +++ ChangeLog 23 Feb 2014 07:03:01 -0000 1.17
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ruby/bcrypt-ruby
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcrypt-ruby/ChangeLog,v 1.16 2013/11/05 00:43:13 mrueg Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcrypt-ruby/ChangeLog,v 1.17 2014/02/23 07:03:01 graaff Exp $
31 +
32 +*bcrypt-ruby-3.1.6 (23 Feb 2014)
33 +
34 + 23 Feb 2014; Hans de Graaff <graaff@g.o> +bcrypt-ruby-3.1.6.ebuild:
35 + Version bump. Handle renaming of the gem from bcrypt-ruby to bcrypt. Install
36 + compability gemspec.
37
38 *bcrypt-ruby-3.1.2-r1 (05 Nov 2013)
39
40
41
42
43 1.1 dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.6.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.6.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.6.ebuild?rev=1.1&content-type=text/plain
47
48 Index: bcrypt-ruby-3.1.6.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.6.ebuild,v 1.1 2014/02/23 07:03:01 graaff Exp $
53
54 EAPI=5
55
56 USE_RUBY="ruby18 ruby19 ruby20"
57
58 RUBY_FAKEGEM_RECIPE_TEST="rspec"
59
60 RUBY_FAKEGEM_TASK_DOC=""
61 RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
62
63 RUBY_FAKEGEM_NAME="bcrypt"
64
65 inherit multilib ruby-fakegem
66
67 DESCRIPTION="An easy way to keep your users' passwords secure."
68 HOMEPAGE="http://bcrypt-ruby.rubyforge.org/"
69 LICENSE="MIT"
70
71 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
72 SLOT="0"
73 IUSE=""
74
75 all_ruby_prepare() {
76 rm Gemfile || die
77 sed -i -e '/git ls-files/d' bcrypt.gemspec || die
78 }
79
80 each_ruby_configure() {
81 ${RUBY} -Cext/mri extconf.rb || die
82 }
83
84 each_ruby_compile() {
85 emake -Cext/mri V=1
86 cp ext/mri/*$(get_modname) lib/ || die
87 }
88
89 each_ruby_install() {
90 each_fakegem_install
91
92 # bcrypt was called bcrypt-ruby before, so add a spec file that
93 # simply loads bcrypt to make sure that old projects load correctly
94 # we don't even need to create a file to load this: the `require
95 # bcrypt` was already part of bcrypt-ruby requirements.
96 cat - <<EOF > "${T}/bcrypt-ruby.gemspec"
97 Gem::Specification.new do |s|
98 s.name = "bcrypt-ruby"
99 s.version = "${RUBY_FAKEGEM_VERSION}"
100 s.summary = "Fake gem to load bcrypt"
101 s.homepage = "${HOMEPAGE}"
102 s.specification_version = 3
103 s.add_runtime_dependency("${RUBY_FAKEGEM_NAME}", ["= ${RUBY_FAKEGEM_VERSION}"])
104 end
105 EOF
106 RUBY_FAKEGEM_NAME=bcrypt-ruby \
107 RUBY_FAKEGEM_GEMSPEC="${T}/bcrypt-ruby.gemspec" \
108 ruby_fakegem_install_gemspec
109 }