1 |
commit: b0dfba538a60dc3e1f36179b5c825afa994096a2 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 1 19:14:02 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 1 19:15:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0dfba53 |
7 |
|
8 |
dev-libs/crypto++: version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=654550 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
dev-libs/crypto++/Manifest | 1 + |
14 |
dev-libs/crypto++/crypto++-7.0.0.ebuild | 47 +++++++++++++++++++++++++++++++++ |
15 |
dev-libs/crypto++/metadata.xml | 6 +++++ |
16 |
3 files changed, 54 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/crypto++/Manifest b/dev-libs/crypto++/Manifest |
19 |
index cb6b22921e2..ddba9587a28 100644 |
20 |
--- a/dev-libs/crypto++/Manifest |
21 |
+++ b/dev-libs/crypto++/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST cryptopp565.zip 4220843 BLAKE2B 0c42da3564cdd175c2f2c5c4272caf826f21e47d2271c7f54acab86f5f79dcdad8d6cb946bc88f55fde6189bb2d24ad8fb03dda6b3b8c6f105434b55b8b217d0 SHA512 f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7 |
24 |
+DIST cryptopp700.zip 7296665 BLAKE2B 1b1a60e240a9d94b4edfea16beef0ec48ec26c61f7f9a3d89d29bd2e77b13a83ce942f81467bb90d3086253560a3c4acd6b89178dcb416ed4328340ad5222dfd SHA512 8fd8d680e5ceaf10b3c32cb1504bda4b32abc9fcaa2c6e61e3b5e67aca805c792579884bc6a749c29a99105304c421d03d7fe7909fc58f750b3155c7c5cec8ec |
25 |
|
26 |
diff --git a/dev-libs/crypto++/crypto++-7.0.0.ebuild b/dev-libs/crypto++/crypto++-7.0.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..cc4036e3bf6 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/crypto++/crypto++-7.0.0.ebuild |
31 |
@@ -0,0 +1,47 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit flag-o-matic toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="C++ class library of cryptographic schemes" |
40 |
+HOMEPAGE="https://cryptopp.com" |
41 |
+SRC_URI="https://www.cryptopp.com/cryptopp${PV//.}.zip" |
42 |
+ |
43 |
+LICENSE="Boost-1.0" |
44 |
+SLOT="0/7" # subslot is so version |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x64-macos" |
46 |
+IUSE="+asm static-libs" |
47 |
+IUSE_CPU_FLAGS=" aes sse3 sse4_1 sse4_2" |
48 |
+IUSE+=" ${IUSE_CPU_FLAGS// / cpu_flags_x86_}" |
49 |
+ |
50 |
+DEPEND="app-arch/unzip" |
51 |
+ |
52 |
+S="${WORKDIR}" |
53 |
+ |
54 |
+pkg_setup() { |
55 |
+ export CXX="$(tc-getCXX)" |
56 |
+ export LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
57 |
+ export PREFIX="${EPREFIX}/usr" |
58 |
+} |
59 |
+ |
60 |
+src_compile() { |
61 |
+ |
62 |
+ use asm || append-cxxflags -DCRYPTOPP_DISABLE_ASM |
63 |
+ use cpu_flags_x86_aes || append-cxxflags -DCRYPTOPP_DISABLE_AESNI |
64 |
+ use cpu_flags_x86_sse3 || append-cxxflags -DCRYPTOPP_DISABLE_SSSE3 |
65 |
+ use cpu_flags_x86_sse4_1 || append-cxxflags -DCRYPTOPP_DISABLE_SSE4 |
66 |
+ use cpu_flags_x86_sse4_2 || append-cxxflags -DCRYPTOPP_DISABLE_SSE4 |
67 |
+ |
68 |
+ # ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS |
69 |
+ [[ ${CHOST} == *-darwin* ]] && append-cxxflags -DCRYPTOPP_DISABLE_ASM |
70 |
+ |
71 |
+ emake -f GNUmakefile all shared |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ default |
76 |
+ |
77 |
+ use static-libs || rm -f "${ED}${EPREFIX}"/usr/$(get_libdir)/*.a |
78 |
+} |
79 |
|
80 |
diff --git a/dev-libs/crypto++/metadata.xml b/dev-libs/crypto++/metadata.xml |
81 |
index da25a4da7d7..3227b3be7c7 100644 |
82 |
--- a/dev-libs/crypto++/metadata.xml |
83 |
+++ b/dev-libs/crypto++/metadata.xml |
84 |
@@ -9,7 +9,13 @@ |
85 |
<email>noloader@×××××.com</email> |
86 |
<name>Jeffrey Walton</name> |
87 |
</maintainer> |
88 |
+ <use> |
89 |
+ <flag name="asm">Support assembly hand optimized crypto functions (i.e. faster run time)</flag> |
90 |
+ </use> |
91 |
<upstream> |
92 |
<remote-id type="github">weidai11/cryptopp</remote-id> |
93 |
</upstream> |
94 |
+ <slots> |
95 |
+ <subslots>so version</subslots> |
96 |
+ </slots> |
97 |
</pkgmetadata> |