1 |
commit: ec55c8d05afb50627a4b966628e6ee27e35f1fa4 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 25 23:22:11 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 25 23:30:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec55c8d0 |
7 |
|
8 |
dev-libs/crypto++: bump to 8.3.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-libs/crypto++/Manifest | 1 + |
14 |
dev-libs/crypto++/crypto++-8.3.0.ebuild | 49 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/crypto++/Manifest b/dev-libs/crypto++/Manifest |
18 |
index cc7d5a7d796..579f5052492 100644 |
19 |
--- a/dev-libs/crypto++/Manifest |
20 |
+++ b/dev-libs/crypto++/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST cryptopp565.zip 4220843 BLAKE2B 0c42da3564cdd175c2f2c5c4272caf826f21e47d2271c7f54acab86f5f79dcdad8d6cb946bc88f55fde6189bb2d24ad8fb03dda6b3b8c6f105434b55b8b217d0 SHA512 f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7 |
23 |
DIST cryptopp700.zip 7296665 BLAKE2B 1b1a60e240a9d94b4edfea16beef0ec48ec26c61f7f9a3d89d29bd2e77b13a83ce942f81467bb90d3086253560a3c4acd6b89178dcb416ed4328340ad5222dfd SHA512 8fd8d680e5ceaf10b3c32cb1504bda4b32abc9fcaa2c6e61e3b5e67aca805c792579884bc6a749c29a99105304c421d03d7fe7909fc58f750b3155c7c5cec8ec |
24 |
DIST cryptopp820.zip 8859815 BLAKE2B 67aa850b887ae7aa869c9485bb18784492f6eec6cb12bf7c7cf84c776731eabf3c31965b47a60287e4e5a79dd3e9f0928dcfb185a0010a76f7cb96d2c3e8c6ae SHA512 753513a4ec8dd0fff2f551853ce6bd265d82219c28b033565b565b5e567fbee17adb419f4cde58a97e62b7d6533f4099aa4996cd0ba4775c6a2e7ae63a879da5 |
25 |
+DIST cryptopp830.zip 9120687 BLAKE2B 777ae6a0716793dbbf40594e5f910783852df15e1d6444ddb9505e9f00e6ead0c17fcf6eb5d0b4d58881595fefa79d285bd2db1f1789716ffb59624c50823c3d SHA512 ad5219a66c5924d330d3646d0ff996dd235006f6812074bc4eb9e8c662a4f000ba20449d377f24b133d19ce682f7b2a3b2eb4c08857ce0f5bb39743d1d425147 |
26 |
|
27 |
diff --git a/dev-libs/crypto++/crypto++-8.3.0.ebuild b/dev-libs/crypto++/crypto++-8.3.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..84d1b838f7c |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/crypto++/crypto++-8.3.0.ebuild |
32 |
@@ -0,0 +1,49 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="C++ class library of cryptographic schemes" |
41 |
+HOMEPAGE="https://cryptopp.com" |
42 |
+SRC_URI="https://www.cryptopp.com/cryptopp${PV//.}.zip" |
43 |
+S="${WORKDIR}" |
44 |
+ |
45 |
+LICENSE="Boost-1.0" |
46 |
+SLOT="0/8" # subslot is so version |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" |
48 |
+IUSE="+asm static-libs" |
49 |
+ |
50 |
+BDEPEND="app-arch/unzip" |
51 |
+ |
52 |
+config_uncomment() { |
53 |
+ sed -i -e "s://\s*\(#define\s*$1\):\1:" config.h || die |
54 |
+} |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ |
59 |
+ use asm || config_uncomment CRYPTOPP_DISABLE_ASM |
60 |
+ |
61 |
+ # ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS |
62 |
+ [[ ${CHOST} == *-darwin* ]] && config_uncomment CRYPTOPP_DISABLE_ASM |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ export CXX="$(tc-getCXX)" |
67 |
+ export LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
68 |
+ export PREFIX="${EPREFIX}/usr" |
69 |
+ tc-export AR RANLIB |
70 |
+ default |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ emake -f GNUmakefile all shared libcryptopp.pc |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ default |
79 |
+ |
80 |
+ use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a |
81 |
+} |