From 4ade45c8ca7b87708135c2c5472aff08935ca1c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcelo=20G=C3=B3es?= Date: Wed, 31 Jan 2007 01:57:30 +0000 Subject: [PATCH] Remove old version, 5.4 version bump. Package-Manager: portage-2.1.1-r2 --- dev-libs/crypto++/ChangeLog | 10 +++- dev-libs/crypto++/crypto++-5.4.ebuild | 60 +++++++++++++++++++++ dev-libs/crypto++/files/digest-crypto++-5.4 | 3 ++ 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 dev-libs/crypto++/crypto++-5.4.ebuild create mode 100644 dev-libs/crypto++/files/digest-crypto++-5.4 diff --git a/dev-libs/crypto++/ChangeLog b/dev-libs/crypto++/ChangeLog index 6509988bf02e..2d892acbd23e 100644 --- a/dev-libs/crypto++/ChangeLog +++ b/dev-libs/crypto++/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/crypto++ -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/ChangeLog,v 1.23 2006/08/05 22:46:09 weeve Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/ChangeLog,v 1.24 2007/01/31 01:57:30 vanquirius Exp $ + +*crypto++-5.4 (31 Jan 2007) + + 31 Jan 2007; Marcelo Goes -crypto++-5.2-r1.ebuild, + +crypto++-5.4.ebuild: + Remove old version, 5.4 version bump. 05 Aug 2006; Jason Wever crypto++-5.2.1.ebuild: Stable on SPARC wrt bug #140718. diff --git a/dev-libs/crypto++/crypto++-5.4.ebuild b/dev-libs/crypto++/crypto++-5.4.ebuild new file mode 100644 index 000000000000..333b2fb7ce6b --- /dev/null +++ b/dev-libs/crypto++/crypto++-5.4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/crypto++-5.4.ebuild,v 1.1 2007/01/31 01:57:30 vanquirius Exp $ + +inherit flag-o-matic eutils + +DESCRIPTION="Crypto++ is a C++ class library of cryptographic schemes" +HOMEPAGE="http://cryptopp.com" +SRC_URI="mirror://sourceforge/cryptopp/cryptopp${PV//.}.zip" + +LICENSE="cryptopp" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +DEPEND="app-arch/unzip" +RDEPEND="" +IUSE="" + +S="${WORKDIR}" + +src_compile() { + # -O3 causes segfaults + replace-flags -O3 -O2 + filter-flags -fomit-frame-pointer + filter-flags -msse2 + if use x86 || use amd64 + then + append-flags -mno-sse2 + fi + emake -f GNUmakefile || die +} + + +src_test() { + # make sure all test vectors have unix line endings + for f in TestVectors/* ; do + edos2unix $f + done + + if ! ./cryptest.exe v + then + eerror "crypto++ self-tests failed" + eerror "Try to remove some optimization flags and re-emerge" + die + fi; +} + +src_install() { + # For consistency across GNU/Linux distributions, + # "crypto++" has been preferred over "crytopp"... + newlib.a libcryptopp.a libcrypto++.a + # ...unbreak programs which don't expect this + dosym libcrypto++.a /usr/lib/libcryptopp.a + insinto /usr/include/crypto++ + doins *.h + # should the .exe extension be removed?? + dobin cryptest.exe + # unbreak programs which expect cryptopp + into /usr/include + dosym crypto++ /usr/include/cryptopp +} diff --git a/dev-libs/crypto++/files/digest-crypto++-5.4 b/dev-libs/crypto++/files/digest-crypto++-5.4 new file mode 100644 index 000000000000..7ec77390ccbc --- /dev/null +++ b/dev-libs/crypto++/files/digest-crypto++-5.4 @@ -0,0 +1,3 @@ +MD5 40e760012d1b0b7e316676ef09e0a814 cryptopp54.zip 950582 +RMD160 8efd6d1ab9a34f69dfa2ef04852eff0efb69b47f cryptopp54.zip 950582 +SHA256 fa9aceb1b46c886b5c13fe5aa3d0cdbd74b4a2dd894e290cbdbfd17fe8a7fe5a cryptopp54.zip 950582 -- 2.26.2