38 lines
1,003 B
Bash
38 lines
1,003 B
Bash
# Copyright 1999-2013 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.0.1.ebuild,v 1.13 2013/05/14 17:59:20 graaff Exp $
|
|
|
|
EAPI=2
|
|
|
|
USE_RUBY="ruby18 ruby19"
|
|
|
|
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
|
|
|
RUBY_FAKEGEM_TASK_DOC=""
|
|
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
|
|
|
|
inherit multilib ruby-fakegem
|
|
|
|
DESCRIPTION="An easy way to keep your users' passwords secure."
|
|
HOMEPAGE="http://bcrypt-ruby.rubyforge.org/"
|
|
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=""
|
|
|
|
RUBY_PATCHES=( ${P}-undefined-symbols.patch )
|
|
|
|
all_ruby_prepare() {
|
|
rm Gemfile || die
|
|
sed -i -e '/git ls-files/d' bcrypt-ruby.gemspec || die
|
|
}
|
|
|
|
each_ruby_configure() {
|
|
${RUBY} -Cext/mri extconf.rb || die
|
|
}
|
|
|
|
each_ruby_compile() {
|
|
emake -Cext/mri || die
|
|
cp ext/mri/*$(get_modname) lib/ || die
|
|
}
|