diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-06-27 20:09:40 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-06-27 20:09:40 +0000 |
commit | 59d985e955f97bcc4689ec377d972b877974f023 (patch) | |
tree | 5d94e99732dd13817320bf5049ac5d966ed38bac /dev-libs/crypto++ | |
parent | amd64 stable - 273918 (diff) | |
download | gentoo-2-59d985e955f97bcc4689ec377d972b877974f023.tar.gz gentoo-2-59d985e955f97bcc4689ec377d972b877974f023.tar.bz2 gentoo-2-59d985e955f97bcc4689ec377d972b877974f023.zip |
Version bump.
(Portage version: 13716-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/crypto++')
-rw-r--r-- | dev-libs/crypto++/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/crypto++/crypto++-5.6.0.ebuild | 56 |
2 files changed, 64 insertions, 2 deletions
diff --git a/dev-libs/crypto++/ChangeLog b/dev-libs/crypto++/ChangeLog index e61991b11119..0d033bc69f2e 100644 --- a/dev-libs/crypto++/ChangeLog +++ b/dev-libs/crypto++/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/crypto++ -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/ChangeLog,v 1.48 2008/08/30 02:33:58 dragonheart Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/ChangeLog,v 1.49 2009/06/27 20:09:40 arfrever Exp $ + +*crypto++-5.6.0 (27 Jun 2009) + + 27 Jun 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +crypto++-5.6.0.ebuild: + Version bump. 30 Aug 2008; Daniel Black <dragonheart@gentoo.org> metadata.xml, crypto++-5.5.2-r1.ebuild: diff --git a/dev-libs/crypto++/crypto++-5.6.0.ebuild b/dev-libs/crypto++/crypto++-5.6.0.ebuild new file mode 100644 index 000000000000..d12bc926ff68 --- /dev/null +++ b/dev-libs/crypto++/crypto++-5.6.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/crypto++-5.6.0.ebuild,v 1.1 2009/06/27 20:09:40 arfrever Exp $ + +inherit eutils flag-o-matic multilib toolchain-funcs + +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 + use sse3 || append-flags -DCRYPTOPP_DISABLE_SSE2 + emake -f GNUmakefile \ + CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" || die "emake failed" +} + +src_test() { + # Make sure all test vectors have unix line endings. + for file in TestVectors/*; do + edos2unix ${file} + 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 "cryptopp"... + 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 + newbin cryptest.exe cryptest + # Unbreak programs which expect cryptopp + into /usr/include + dosym crypto++ /usr/include/cryptopp +} |