diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2019-05-26 20:15:09 +0300 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2019-05-26 20:16:02 +0300 |
commit | 4b2ec9c3d31a0fc63e58fb53029c2901b0ea68f0 (patch) | |
tree | 2961e86db9c1e39a3d24c663542d4065a6804adf /dev-libs/crypto++/crypto++-8.2.0.ebuild | |
parent | app-crypt/signing-party: cleanup old (diff) | |
download | gentoo-4b2ec9c3d31a0fc63e58fb53029c2901b0ea68f0.tar.gz gentoo-4b2ec9c3d31a0fc63e58fb53029c2901b0ea68f0.tar.bz2 gentoo-4b2ec9c3d31a0fc63e58fb53029c2901b0ea68f0.zip |
dev-libs/crypto++: version bump
Closes: https://bugs.gentoo.org/686792
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'dev-libs/crypto++/crypto++-8.2.0.ebuild')
-rw-r--r-- | dev-libs/crypto++/crypto++-8.2.0.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-libs/crypto++/crypto++-8.2.0.ebuild b/dev-libs/crypto++/crypto++-8.2.0.ebuild new file mode 100644 index 000000000000..2ee0f84db4b9 --- /dev/null +++ b/dev-libs/crypto++/crypto++-8.2.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="C++ class library of cryptographic schemes" +HOMEPAGE="https://cryptopp.com" +SRC_URI="https://www.cryptopp.com/cryptopp${PV//.}.zip" + +LICENSE="Boost-1.0" +SLOT="0/7" # subslot is so version +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" +IUSE="+asm static-libs" + +BDEPEND="app-arch/unzip" + +S="${WORKDIR}" + +config_uncomment() { + sed -i -e "s://\s*\(#define\s*$1\):\1:" config.h || die +} + +pkg_setup() { + export CXX="$(tc-getCXX)" + export LIBDIR="${EPREFIX}/usr/$(get_libdir)" + export PREFIX="${EPREFIX}/usr" +} + +src_prepare() { + default + + use asm || config_uncomment CRYPTOPP_DISABLE_ASM + + # ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS + [[ ${CHOST} == *-darwin* ]] && config_uncomment CRYPTOPP_DISABLE_ASM +} + +src_compile() { + emake -f GNUmakefile all shared libcryptopp.pc +} + +src_install() { + default + + use static-libs || rm -f "${ED}${EPREFIX}"/usr/$(get_libdir)/*.a +} |