From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DFF9B138F61 for ; Tue, 25 Feb 2014 20:11:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 394BEE0AC9; Tue, 25 Feb 2014 20:11:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F9AFE0AC9 for ; Tue, 25 Feb 2014 20:11:33 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 46F8333F6A9 for ; Tue, 25 Feb 2014 20:11:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 787BE188EB for ; Tue, 25 Feb 2014 20:11:30 +0000 (UTC) From: "Peter Wilmott" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Peter Wilmott" Message-ID: <1393358089.dfd12f427b6bb527caf768b3976d95426547690e.p8952@gentoo> Subject: [gentoo-commits] proj/ruby-overlay:master commit in: dev-ruby/bcrypt-ruby/files/, dev-ruby/bcrypt-ruby/ X-VCS-Repository: proj/ruby-overlay X-VCS-Files: dev-ruby/bcrypt-ruby/ChangeLog dev-ruby/bcrypt-ruby/bcrypt-ruby-3.1.7.ebuild dev-ruby/bcrypt-ruby/files/bcrypt-ruby-3.0.1-undefined-symbols.patch dev-ruby/bcrypt-ruby/metadata.xml X-VCS-Directories: dev-ruby/bcrypt-ruby/files/ dev-ruby/bcrypt-ruby/ X-VCS-Committer: p8952 X-VCS-Committer-Name: Peter Wilmott X-VCS-Revision: dfd12f427b6bb527caf768b3976d95426547690e X-VCS-Branch: master Date: Tue, 25 Feb 2014 20:11:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7108cf85-81ea-4d4c-a4c3-1b17e45944ba X-Archives-Hash: 8b7db43175995b5b29cd7b0014aaf9cf commit: dfd12f427b6bb527caf768b3976d95426547690e Author: Peter Wilmott

p8952 info> AuthorDate: Tue Feb 25 19:54:49 2014 +0000 Commit: Peter Wilmott

p8952 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 +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 +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 +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 +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 +bcrypt-ruby-3.1.2.ebuild: + Version bump. + +*bcrypt-ruby-3.1.1 (18 Jul 2013) + + 18 Jul 2013; Manuel Rüger +bcrypt-ruby-3.1.1.ebuild: + Version bump + + 14 May 2013; Hans de Graaff 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 bcrypt-ruby-3.0.1.ebuild: + adding ~arm keywords to net-analyzer/metasploit rdeps + + 30 Jul 2012; Hans de Graaff bcrypt-ruby-3.0.1.ebuild: + Use RSpec recipe. Avoid implicit dependency on git. + + 01 May 2012; Raúl Porcel bcrypt-ruby-3.0.1.ebuild: + Drop ia64/sparc keywords + + 11 Mar 2012; Brent Baude bcrypt-ruby-3.0.1.ebuild: + Marking bcrypt-ruby-3.0.1 ~ppc64 for bug 385763 + + 08 Mar 2012; Naohiro Aota bcrypt-ruby-3.0.1.ebuild: + Add ~x86-fbsd. + + 06 Feb 2012; Brent Baude bcrypt-ruby-3.0.1.ebuild: + Marking bcrypt-ruby-3.0.1 ~ppc for bug 385763 + + 31 Dec 2011; Fabian Groffen bcrypt-ruby-3.0.1.ebuild: + Add Prefix keywords, bug #396547 + + 27 Dec 2011; Hans de Graaff bcrypt-ruby-3.0.1.ebuild: + Add ruby19. + + 03 Dec 2011; Raúl Porcel bcrypt-ruby-3.0.1.ebuild: + Add ~ia64/~sparc wrt #385763 + + 13 Nov 2011; Markus Meier bcrypt-ruby-3.0.1.ebuild: + add ~x86, bug #385763 + + 10 Oct 2011; Fabian Groffen 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 +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 - < "${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 +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 @@ + + + +ruby +