diff options
author | Sam James <sam@gentoo.org> | 2021-03-08 05:22:02 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-08 05:22:09 +0000 |
commit | ede3ea201cbbe105d759c3558661bf899127ff0b (patch) | |
tree | c784ffee6807765de1a62ae0401cf0a8df45d6b2 /dev-libs/crypto++/crypto++-8.5.0.ebuild | |
parent | dev-util/meson: Stabilize 0.56.2 ppc64, #774684 (diff) | |
download | gentoo-ede3ea201cbbe105d759c3558661bf899127ff0b.tar.gz gentoo-ede3ea201cbbe105d759c3558661bf899127ff0b.tar.bz2 gentoo-ede3ea201cbbe105d759c3558661bf899127ff0b.zip |
dev-libs/crypto++: add 8.5.0 (no keywords yet)
No keywords for testing.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/crypto++/crypto++-8.5.0.ebuild')
-rw-r--r-- | dev-libs/crypto++/crypto++-8.5.0.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-libs/crypto++/crypto++-8.5.0.ebuild b/dev-libs/crypto++/crypto++-8.5.0.ebuild new file mode 100644 index 000000000000..1620fb1e310a --- /dev/null +++ b/dev-libs/crypto++/crypto++-8.5.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="C++ class library of cryptographic schemes" +HOMEPAGE="https://cryptopp.com" +SRC_URI="https://www.cryptopp.com/cryptopp${PV//.}.zip" +S="${WORKDIR}" + +LICENSE="Boost-1.0" +# Bumped to 8.5 in 8.5.0 out of caution +# subslot is so version (was broken in 8.3.0, check on bumps!) +SLOT="0/8.5" +# No keywords for testing +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" +IUSE="+asm static-libs" + +BDEPEND="app-arch/unzip" + +PATCHES=( + "${FILESDIR}/${PN}-8.2.0-musl-ldconfig.patch" +) + +config_uncomment() { + sed -i -e "s://\s*\(#define\s*$1\):\1:" config.h || die +} + +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_configure() { + export CXX="$(tc-getCXX)" + export LIBDIR="${EPREFIX}/usr/$(get_libdir)" + export PREFIX="${EPREFIX}/usr" + tc-export AR RANLIB + default +} + +src_compile() { + emake -f GNUmakefile all shared libcryptopp.pc +} + +src_install() { + default + + use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a +} |