Gentoo Archives: gentoo-commits

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