| # Copyright 2014 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. |
| |
| EAPI="4" |
| CROS_WORKON_COMMIT="fab9d08b29d938132d8f87572c9e4bd0f6693d69" |
| 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-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| 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-${PV}" "${S}/SConstruct" || die |
| } |
| |
| src_compile() { |
| tc-export AR CC CXX PKG_CONFIG RANLIB |
| cros-debug-add-NDEBUG |
| |
| BASE_VER=${PV} escons |
| } |
| |
| src_install() { |
| dolib.a libchrome_crypto.a |
| |
| insinto /usr/include/crypto |
| doins \ |
| crypto_export.h \ |
| p224.h \ |
| p224_spake.h \ |
| nss_util.h \ |
| nss_util_internal.h \ |
| rsa_private_key.h \ |
| scoped_nss_types.h \ |
| scoped_openssl_types.h \ |
| scoped_test_nss_db.h \ |
| secure_hash.h \ |
| secure_util.h \ |
| sha2.h \ |
| signature_creator.h \ |
| signature_verifier.h |
| } |