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