From 05f36a07e183f408ec7f7442876a53f38630fb42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 14 Feb 2010 19:22:52 +0100 Subject: [PATCH] Add dev-libs/crypto++-5.5.2-r1. --- dev-libs/crypto++/Manifest | 2 ++ dev-libs/crypto++/crypto++-5.5.2-r1.ebuild | 57 ++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 dev-libs/crypto++/Manifest create mode 100644 dev-libs/crypto++/crypto++-5.5.2-r1.ebuild diff --git a/dev-libs/crypto++/Manifest b/dev-libs/crypto++/Manifest new file mode 100644 index 0000000..0c3ecac --- /dev/null +++ b/dev-libs/crypto++/Manifest @@ -0,0 +1,2 @@ +DIST cryptopp552.zip 992073 RMD160 8929795b654d7186b2b38714d22a57ea01862dbd SHA1 18efe451b3c682f40db75dc2b09cb448a835e7d6 SHA256 078f8deb033e2619582b4e9e462bbac5127b0defbcfea49c3583be31f940a759 +EBUILD crypto++-5.5.2-r1.ebuild 1615 RMD160 f6dd4a0b80dc8bcba47447b661b722c9840a3f4c SHA1 6195097961758235ffbedd80e9f5bf6ec61ae304 SHA256 98c55ca00356845b57a0cfb618a37e4111f1c3d5a14b7daf2611a582ad8beb65 diff --git a/dev-libs/crypto++/crypto++-5.5.2-r1.ebuild b/dev-libs/crypto++/crypto++-5.5.2-r1.ebuild new file mode 100644 index 0000000..eafadd8 --- /dev/null +++ b/dev-libs/crypto++/crypto++-5.5.2-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/crypto++-5.5.2-r1.ebuild,v 1.2 2008/08/30 02:33:58 dragonheart Exp $ + +inherit flag-o-matic eutils toolchain-funcs multilib + +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="alpha amd64 hppa ppc ppc64 sparc x86" +DEPEND="app-arch/unzip" +RDEPEND="" +IUSE="sse3" + +S="${WORKDIR}" + +src_compile() { + # More than -O1 gives problems + replace-flags -O? -O1 + filter-flags -fomit-frame-pointer + append-flags -DCRYPTOPP_DISABLE_SSE2 -DCRYPTOPP_DISABLE_ASM + emake -f GNUmakefile \ + CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" || 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/$(get_libdir)/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 +} -- 2.7.4