diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2007-02-03 10:08:01 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2007-02-03 10:08:01 +0000 |
commit | f0e69383df54c239f64b0425dfd4b270ad3ae180 (patch) | |
tree | 4b23aa8d14cc0a25e0b615cc2de83fd3ac397b78 /dev-libs | |
parent | go join gnome1 (diff) | |
download | gentoo-2-f0e69383df54c239f64b0425dfd4b270ad3ae180.tar.gz gentoo-2-f0e69383df54c239f64b0425dfd4b270ad3ae180.tar.bz2 gentoo-2-f0e69383df54c239f64b0425dfd4b270ad3ae180.zip |
Fixed toolchain references, bug#164933, thanks for Wojciech Milkowski reporting, jacub for reference
(Portage version: 2.1.2-r6)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/crypto++/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/crypto++/crypto++-5.4-r1.ebuild | 62 | ||||
-rw-r--r-- | dev-libs/crypto++/files/digest-crypto++-5.4-r1 | 3 |
3 files changed, 72 insertions, 1 deletions
diff --git a/dev-libs/crypto++/ChangeLog b/dev-libs/crypto++/ChangeLog index 2d892acbd23e..44121f26f5e1 100644 --- a/dev-libs/crypto++/ChangeLog +++ b/dev-libs/crypto++/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/crypto++ # 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 $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/ChangeLog,v 1.25 2007/02/03 10:08:01 alonbl Exp $ + +*crypto++-5.4-r1 (03 Feb 2007) + + 03 Feb 2007; Alon Bar-Lev <alonbl@gentoo.org> +crypto++-5.4-r1.ebuild: + Fixed toolchain references, bug#164933, thanks for Wojciech Milkowski + reporting, jacub for reference *crypto++-5.4 (31 Jan 2007) diff --git a/dev-libs/crypto++/crypto++-5.4-r1.ebuild b/dev-libs/crypto++/crypto++-5.4-r1.ebuild new file mode 100644 index 000000000000..a1aa0676d2f9 --- /dev/null +++ b/dev-libs/crypto++/crypto++-5.4-r1.ebuild @@ -0,0 +1,62 @@ +# 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-r1.ebuild,v 1.1 2007/02/03 10:08:01 alonbl Exp $ + +inherit flag-o-matic eutils 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="~amd64 ~ppc ~ppc64 ~sparc ~x86" +DEPEND="app-arch/unzip" +RDEPEND="" +IUSE="sse2" + +S="${WORKDIR}" + +src_compile() { + # -O3 causes segfaults + replace-flags -O3 -O2 + filter-flags -fomit-frame-pointer + if ! use sse2; then + filter-flags -msse2 + append-flags -mno-sse2 + fi + 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/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-r1 b/dev-libs/crypto++/files/digest-crypto++-5.4-r1 new file mode 100644 index 000000000000..7ec77390ccbc --- /dev/null +++ b/dev-libs/crypto++/files/digest-crypto++-5.4-r1 @@ -0,0 +1,3 @@ +MD5 40e760012d1b0b7e316676ef09e0a814 cryptopp54.zip 950582 +RMD160 8efd6d1ab9a34f69dfa2ef04852eff0efb69b47f cryptopp54.zip 950582 +SHA256 fa9aceb1b46c886b5c13fe5aa3d0cdbd74b4a2dd894e290cbdbfd17fe8a7fe5a cryptopp54.zip 950582 |