1 |
commit: 69e3afb2bf03727aec7e7de5d6abe57a3a367589 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 8 17:14:01 2017 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 8 17:33:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69e3afb2 |
7 |
|
8 |
dev-libs/crypto++: cleanup |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-libs/crypto++/Manifest | 1 - |
13 |
dev-libs/crypto++/crypto++-5.6.2-r3.ebuild | 71 ------------------------------ |
14 |
2 files changed, 72 deletions(-) |
15 |
|
16 |
diff --git a/dev-libs/crypto++/Manifest b/dev-libs/crypto++/Manifest |
17 |
index c70d7fdf298..ab8c8631acd 100644 |
18 |
--- a/dev-libs/crypto++/Manifest |
19 |
+++ b/dev-libs/crypto++/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST cryptopp562.zip 1137964 SHA256 5cbfd2fcb4a6b3aab35902e2e0f3b59d9171fee12b3fc2b363e1801dfec53574 SHA512 016ca7ebad1091d67ad0bc5ccb7549d96d4af6b563d9d5a612cae27b3d1a3514c41b954e319fed91c820e8c701e3aa43da186e0864bf959ce4afd1539248ebbe WHIRLPOOL e31203da48a31b09e6ea48a75aa64fe5fd27fd370a1a609c4387526f09daab7582716563b688c0c81a8c3b200b8ffa7bdb2b981e5911640e5f1c172d6027f6ac |
22 |
DIST cryptopp565.zip 4220843 SHA256 a75ef486fe3128008bbb201efee3dcdcffbe791120952910883b26337ec32c34 SHA512 f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7 WHIRLPOOL 376e8d7ad497d03f19542fd183181f26c83f38dfef800529cb5d5ce7238978f005d36e3e7cce63322af9b7dfc3a69fdb615c435bcf092bbd6abf6781dfd6d8a3 |
23 |
|
24 |
diff --git a/dev-libs/crypto++/crypto++-5.6.2-r3.ebuild b/dev-libs/crypto++/crypto++-5.6.2-r3.ebuild |
25 |
deleted file mode 100644 |
26 |
index ccdb246f40f..00000000000 |
27 |
--- a/dev-libs/crypto++/crypto++-5.6.2-r3.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,71 +0,0 @@ |
30 |
-# Copyright 1999-2016 Gentoo Foundation |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=5 |
34 |
- |
35 |
-inherit eutils flag-o-matic multilib toolchain-funcs autotools |
36 |
- |
37 |
-DESCRIPTION="C++ class library of cryptographic schemes" |
38 |
-HOMEPAGE="http://cryptopp.com" |
39 |
-SRC_URI="mirror://sourceforge/cryptopp/cryptopp${PV//.}.zip" |
40 |
- |
41 |
-LICENSE="Boost-1.0" |
42 |
-SLOT="0" |
43 |
-KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 sparc x86 ~x64-macos" |
44 |
-IUSE="static-libs" |
45 |
- |
46 |
-DEPEND="app-arch/unzip |
47 |
- sys-devel/libtool" |
48 |
- |
49 |
-S="${WORKDIR}" |
50 |
- |
51 |
-src_prepare() { |
52 |
- epatch "${FILESDIR}"/${P}-r1-make.patch |
53 |
- epatch "${FILESDIR}"/${P}-cve-2015-2141.patch |
54 |
- epatch "${FILESDIR}"/${P}-c++11.patch |
55 |
- |
56 |
- # Generate our own libtool script for building. |
57 |
- cat <<-EOF > configure.ac |
58 |
- AC_INIT(lt, 0) |
59 |
- AM_INIT_AUTOMAKE |
60 |
- AC_PROG_CXX |
61 |
- LT_INIT |
62 |
- AC_CONFIG_FILES(Makefile) |
63 |
- AC_OUTPUT |
64 |
- EOF |
65 |
- touch NEWS README AUTHORS ChangeLog Makefile.am |
66 |
- eautoreconf |
67 |
-} |
68 |
- |
69 |
-src_configure() { |
70 |
- econf $(use_enable static-libs static) |
71 |
-} |
72 |
- |
73 |
-src_compile() { |
74 |
- # higher optimizations cause problems |
75 |
- replace-flags -O? -O1 |
76 |
- filter-flags -fomit-frame-pointer |
77 |
- # ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS |
78 |
- [[ ${CHOST} == *-darwin* ]] && append-flags -DCRYPTOPP_DISABLE_X86ASM |
79 |
- |
80 |
- emake -f GNUmakefile CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" LIBTOOL="./libtool" |
81 |
-} |
82 |
- |
83 |
-src_test() { |
84 |
- # ensure that all test vectors have Unix line endings |
85 |
- local file |
86 |
- for file in TestVectors/* ; do |
87 |
- edos2unix ${file} |
88 |
- done |
89 |
- |
90 |
- if ! emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" test ; then |
91 |
- eerror "Crypto++ self-tests failed." |
92 |
- eerror "Try to remove some optimization flags and reemerge Crypto++." |
93 |
- die "emake test failed" |
94 |
- fi |
95 |
-} |
96 |
- |
97 |
-src_install() { |
98 |
- emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" LIBTOOL="./libtool" install |
99 |
- use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.la |
100 |
-} |