blob: b2a0aad6bdb3385c48a8ef2aa1f89bc054b90f69 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
# See logic for ${PV} behavior in the libchrome ebuild.
# XXX: Yes, this hits svn rev 180245 instead of rev 180609, but
# that is correct. See above note.
EAPI="4"
CROS_WORKON_COMMIT="001e5e97d7b300a1b68e7baee0187ab6a535b085"
CROS_WORKON_PROJECT="chromium/src/crypto"
CROS_WORKON_BLACKLIST="1"
inherit cros-workon cros-debug toolchain-funcs scons-utils
DESCRIPTION="Chrome crypto/ library extracted for use on Chrome OS"
HOMEPAGE="http://dev.chromium.org/chromium-os/packages/libchrome"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE=""
RDEPEND="chromeos-base/libchrome:${PV}[cros-debug=]
dev-libs/nss"
DEPEND="${RDEPEND}
dev-cpp/gtest"
src_prepare() {
ln -s "${S}" "${WORKDIR}/crypto" &> /dev/null
cp -p "${FILESDIR}/SConstruct" "${S}" || die
epatch "${FILESDIR}/memory_annotation.patch"
}
src_compile() {
tc-export AR CXX PKG_CONFIG RANLIB
cros-debug-add-NDEBUG
BASE_VER=${PV} escons || die
}
src_install() {
dolib.a libchrome_crypto.a
insinto /usr/include/crypto
doins nss_util{,_internal}.h rsa_private_key.h \
signature_{creator,verifier}.h crypto_export.h
}