From: "Peter Wilmott" <p@p8952.info>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/ruby-overlay:master commit in: dev-ruby/bcrypt-ruby/files/, dev-ruby/bcrypt-ruby/
Date: Tue, 25 Feb 2014 20:11:30 +0000 (UTC) [thread overview]
Message-ID: <1393358089.dfd12f427b6bb527caf768b3976d95426547690e.p8952@gentoo> (raw)
commit: dfd12f427b6bb527caf768b3976d95426547690e
Author: Peter Wilmott <p <AT> p8952 <DOT> info>
AuthorDate: Tue Feb 25 19:54:49 2014 +0000
Commit: Peter Wilmott <p <AT> p8952 <DOT> info>
CommitDate: Tue Feb 25 19:54:49 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ruby-overlay.git;a=commit;h=dfd12f42
dev-ruby/bcrypt-ruby: version bump, update homepage
Package-Manager: portage-2.2.7
---
dev-ruby/bcrypt-ruby/ChangeLog | 83 ++++++++++++++++++++++
dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.7.ebuild | 60 ++++++++++++++++
.../bcrypt-ruby-3.0.1-undefined-symbols.patch | 42 +++++++++++
dev-ruby/bcrypt-ruby/metadata.xml | 5 ++
4 files changed, 190 insertions(+)
diff --git a/dev-ruby/bcrypt-ruby/ChangeLog b/dev-ruby/bcrypt-ruby/ChangeLog
new file mode 100644
index 0000000..2412081
--- /dev/null
+++ b/dev-ruby/bcrypt-ruby/ChangeLog
@@ -0,0 +1,83 @@
+# ChangeLog for dev-ruby/bcrypt-ruby
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcrypt-ruby/ChangeLog,v 1.17 2014/02/23 07:03:01 graaff Exp $
+
+*bcrypt-ruby-3.1.7 (25 Feb 2014)
+
+ 25 Feb 2014; Peter Wilmott <p@p8952.info> +bcrypt-ruby-3.1.7.ebuild,
+ +files/bcrypt-ruby-3.0.1-undefined-symbols.patch, +metadata.xml:
+ dev-ruby/bcrypt-ruby: version bump, update homepage
+
+*bcrypt-ruby-3.1.6 (25 Feb 2014)
+*bcrypt-ruby-3.1.7 (25 Feb 2014)
+
+ 25 Feb 2014; Peter Wilmott <p@p8952.info> +bcrypt-ruby-3.1.6.ebuild,
+ +bcrypt-ruby-3.1.7.ebuild, +files/bcrypt-ruby-3.0.1-undefined-symbols.patch,
+ +metadata.xml:
+ dev-ruby/bcrypt-ruby: version bump, update homepage
+
+*bcrypt-ruby-3.1.6 (23 Feb 2014)
+
+ 23 Feb 2014; Hans de Graaff <graaff@gentoo.org> +bcrypt-ruby-3.1.6.ebuild:
+ Version bump. Handle renaming of the gem from bcrypt-ruby to bcrypt. Install
+ compability gemspec.
+
+*bcrypt-ruby-3.1.2-r1 (05 Nov 2013)
+
+ 05 Nov 2013; Manuel Rüger <mrueg@gentoo.org> +bcrypt-ruby-3.1.2-r1.ebuild,
+ -bcrypt-ruby-3.0.1.ebuild, -bcrypt-ruby-3.1.1.ebuild,
+ -bcrypt-ruby-3.1.2.ebuild:
+ Add ruby20 target. Cleanup old.
+
+*bcrypt-ruby-3.1.2 (27 Aug 2013)
+
+ 27 Aug 2013; Hans de Graaff <graaff@gentoo.org> +bcrypt-ruby-3.1.2.ebuild:
+ Version bump.
+
+*bcrypt-ruby-3.1.1 (18 Jul 2013)
+
+ 18 Jul 2013; Manuel Rüger <mrueg@gentoo.org> +bcrypt-ruby-3.1.1.ebuild:
+ Version bump
+
+ 14 May 2013; Hans de Graaff <graaff@gentoo.org> bcrypt-ruby-3.0.1.ebuild,
+ +files/bcrypt-ruby-3.0.1-undefined-symbols.patch:
+ Remove unused code triggering unused symbols, bug 469690.
+
+ 16 Jan 2013; Rick Farina <zerochaos@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ adding ~arm keywords to net-analyzer/metasploit rdeps
+
+ 30 Jul 2012; Hans de Graaff <graaff@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Use RSpec recipe. Avoid implicit dependency on git.
+
+ 01 May 2012; Raúl Porcel <armin76@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Drop ia64/sparc keywords
+
+ 11 Mar 2012; Brent Baude <ranger@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Marking bcrypt-ruby-3.0.1 ~ppc64 for bug 385763
+
+ 08 Mar 2012; Naohiro Aota <naota@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Add ~x86-fbsd.
+
+ 06 Feb 2012; Brent Baude <ranger@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Marking bcrypt-ruby-3.0.1 ~ppc for bug 385763
+
+ 31 Dec 2011; Fabian Groffen <grobian@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Add Prefix keywords, bug #396547
+
+ 27 Dec 2011; Hans de Graaff <graaff@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Add ruby19.
+
+ 03 Dec 2011; Raúl Porcel <armin76@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Add ~ia64/~sparc wrt #385763
+
+ 13 Nov 2011; Markus Meier <maekke@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ add ~x86, bug #385763
+
+ 10 Oct 2011; Fabian Groffen <grobian@gentoo.org> bcrypt-ruby-3.0.1.ebuild:
+ Keyworded for Prefix, bug #385763
+
+*bcrypt-ruby-3.0.1 (05 Oct 2011)
+
+ 05 Oct 2011; Hans de Graaff <graaff@gentoo.org> +bcrypt-ruby-3.0.1.ebuild,
+ +metadata.xml:
+ Initial import from my overlay. New dependency for Rails 3.1.
diff --git a/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.7.ebuild b/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.7.ebuild
new file mode 100644
index 0000000..7968d33
--- /dev/null
+++ b/dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.7.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+EAPI=5
+
+USE_RUBY="ruby18 ruby19 ruby20"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
+
+RUBY_FAKEGEM_NAME="bcrypt"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="An easy way to keep your users' passwords secure."
+HOMEPAGE="https://github.com/codahale/bcrypt-ruby"
+LICENSE="MIT"
+
+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"
+SLOT="0"
+IUSE=""
+
+all_ruby_prepare() {
+ rm Gemfile || die
+ sed -i -e '/git ls-files/d' bcrypt.gemspec || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -Cext/mri extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake -Cext/mri V=1
+ cp ext/mri/*$(get_modname) lib/ || die
+}
+
+each_ruby_install() {
+ each_fakegem_install
+
+ # bcrypt was called bcrypt-ruby before, so add a spec file that
+ # simply loads bcrypt to make sure that old projects load correctly
+ # we don't even need to create a file to load this: the `require
+ # bcrypt` was already part of bcrypt-ruby requirements.
+ cat - <<EOF > "${T}/bcrypt-ruby.gemspec"
+Gem::Specification.new do |s|
+ s.name = "bcrypt-ruby"
+ s.version = "${RUBY_FAKEGEM_VERSION}"
+ s.summary = "Fake gem to load bcrypt"
+ s.homepage = "${HOMEPAGE}"
+ s.specification_version = 3
+ s.add_runtime_dependency("${RUBY_FAKEGEM_NAME}", ["= ${RUBY_FAKEGEM_VERSION}"])
+end
+EOF
+ RUBY_FAKEGEM_NAME=bcrypt-ruby \
+ RUBY_FAKEGEM_GEMSPEC="${T}/bcrypt-ruby.gemspec" \
+ ruby_fakegem_install_gemspec
+}
diff --git a/dev-ruby/bcrypt-ruby/files/bcrypt-ruby-3.0.1-undefined-symbols.patch b/dev-ruby/bcrypt-ruby/files/bcrypt-ruby-3.0.1-undefined-symbols.patch
new file mode 100644
index 0000000..37abf26
--- /dev/null
+++ b/dev-ruby/bcrypt-ruby/files/bcrypt-ruby-3.0.1-undefined-symbols.patch
@@ -0,0 +1,42 @@
+commit 94f8d0ae95ed773cb9e31a71e4046d3b97e11d70
+Author: Aman Gupta <aman@tmm1.net>
+Date: Sat Mar 30 19:52:19 2013 -0700
+
+ remove last of TBR code (fixes #46)
+
+diff --git a/ext/mri/bcrypt_ext.c b/ext/mri/bcrypt_ext.c
+index cce35df..13f5e4e 100644
+--- a/ext/mri/bcrypt_ext.c
++++ b/ext/mri/bcrypt_ext.c
+@@ -4,31 +4,6 @@
+ static VALUE mBCrypt;
+ static VALUE cBCryptEngine;
+
+-#ifdef RUBY_VM
+-# define RUBY_1_9
+-#endif
+-
+-#ifdef RUBY_1_9
+-
+-/* When on Ruby 1.9+, we will want to unlock the GIL while performing
+- * expensive calculations, for greater concurrency. Do not do this for
+- * cheap calculations because locking/unlocking the GIL incurs some overhead as well.
+- */
+-#define GIL_UNLOCK_COST_THRESHOLD 9
+-
+-typedef struct {
+- char *output;
+- const char *key;
+- const char *salt;
+-} BCryptArguments;
+-
+-static VALUE bcrypt_wrapper(void *_args) {
+- BCryptArguments *args = (BCryptArguments *)_args;
+- return (VALUE)ruby_bcrypt(args->output, args->key, args->salt);
+-}
+-
+-#endif /* RUBY_1_9 */
+-
+ /* Given a logarithmic cost parameter, generates a salt for use with +bc_crypt+.
+ */
+ static VALUE bc_salt(VALUE self, VALUE prefix, VALUE count, VALUE input) {
diff --git a/dev-ruby/bcrypt-ruby/metadata.xml b/dev-ruby/bcrypt-ruby/metadata.xml
new file mode 100644
index 0000000..8521361
--- /dev/null
+++ b/dev-ruby/bcrypt-ruby/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ruby</herd>
+</pkgmetadata>
next reply other threads:[~2014-02-25 20:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 20:11 Peter Wilmott [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-03-06 8:00 [gentoo-commits] proj/ruby-overlay:master commit in: dev-ruby/bcrypt-ruby/files/, dev-ruby/bcrypt-ruby/ Hans de Graaff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1393358089.dfd12f427b6bb527caf768b3976d95426547690e.p8952@gentoo \
--to=p@p8952.info \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox