blob: 9ff4d8bf17cb3f2d1ee6d973223fe34d658a567c [file] [log] [blame]
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="e9fe99ea600bc3f2745eaf7c04f38330b04dc80e"
CROS_WORKON_TREE="bbdecf92d2fba120edda5f12f5a4f14a21d19d80"
CROS_WORKON_PROJECT="chromiumos/third_party/libscrypt"
CROS_WORKON_LOCALNAME="third_party/libscrypt"
inherit cros-sanitizers cros-workon autotools
DESCRIPTION="Scrypt key derivation library"
HOMEPAGE="http://www.tarsnap.com/scrypt.html"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE="-asan static-libs"
RDEPEND="dev-libs/openssl:0="
DEPEND="${RDEPEND}"
src_prepare() {
epatch function_visibility.patch
epatch "${FILESDIR}"/function_visibility2.patch
eautoreconf
}
src_configure() {
sanitizers-setup-env
econf $(use_enable static-libs static)
}
src_install() {
emake install DESTDIR="${D}"
insinto /usr/include/scrypt
doins src/lib/scryptenc/scryptenc.h
doins src/lib/crypto/crypto_scrypt.h
}