dev-ruby/scrypt - 3.1.0 (graaff)

Search

Install

Install this version:

emerge -a =dev-ruby/scrypt-3.1.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ruby/scrypt-3.1.0

Or alternatively:

emerge --autounmask-write -a =dev-ruby/scrypt-3.1.0

Package Information

Description:
Scrypt password hashing algorithm
Homepage:
https://github.com/pbhogan/scrypt
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
3.1.0 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

USE_RUBY="ruby32 ruby33 ruby34 ruby40"

RUBY_FAKEGEM_EXTRADOC="README.md"

RUBY_FAKEGEM_RECIPE_TEST="rspec3"

RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"

inherit ruby-fakegem

DESCRIPTION="Scrypt password hashing algorithm"
HOMEPAGE="https://github.com/pbhogan/scrypt"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

ruby_add_bdepend ">=dev-ruby/ffi-compiler-1.0.0"

all_ruby_prepare() {
	# In Gentoo ffi-compiler can be a built-time only dependency.
	sed -i -e '/ffi-compiler/d' ${RUBY_FAKEGEM_GEMSPEC} || die
}

each_ruby_compile() {
	# This task ignores CFLAGS and LDFLAGS and hardcodes sse and sse2
	# support. This should be fixed before moving it to the gentoo tree.
	${RUBY} -Cext/scrypt -S rake || die
	cp ext/scrypt/*/libscrypt_ext.so lib/
}

each_ruby_install() {
	each_fakegem_install
	ruby_fakegem_extensions_installed
}

Inherited Eclasses