diff options
author | Tim Harder <radhermit@gentoo.org> | 2013-03-02 08:27:16 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2013-03-02 08:27:16 +0000 |
commit | 0cacedab1eba752785bf7956278c9f68fbd690f8 (patch) | |
tree | 62cf0be3c5090b1b82470ab42df957b102cb4890 /dev-libs/crypto++/crypto++-5.6.2.ebuild | |
parent | Cleanup due http://gentoo.2317880.n4.nabble.com/rox-herd-looks-inactive-for-a... (diff) | |
download | gentoo-2-0cacedab1eba752785bf7956278c9f68fbd690f8.tar.gz gentoo-2-0cacedab1eba752785bf7956278c9f68fbd690f8.tar.bz2 gentoo-2-0cacedab1eba752785bf7956278c9f68fbd690f8.zip |
Version bump.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-libs/crypto++/crypto++-5.6.2.ebuild')
-rw-r--r-- | dev-libs/crypto++/crypto++-5.6.2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/crypto++/crypto++-5.6.2.ebuild b/dev-libs/crypto++/crypto++-5.6.2.ebuild new file mode 100644 index 000000000000..fe21b135e19b --- /dev/null +++ b/dev-libs/crypto++/crypto++-5.6.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/crypto++-5.6.2.ebuild,v 1.1 2013/03/02 08:27:16 radhermit Exp $ + +EAPI=5 + +inherit eutils flag-o-matic multilib toolchain-funcs + +DESCRIPTION="C++ class library of cryptographic schemes" +HOMEPAGE="http://cryptopp.com" +SRC_URI="mirror://sourceforge/cryptopp/cryptopp${PV//.}.zip" + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="static-libs" + +DEPEND="app-arch/unzip + sys-devel/libtool" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-make.patch +} + +src_compile() { + # higher optimizations cause problems + replace-flags -O? -O1 + filter-flags -fomit-frame-pointer + + emake -f GNUmakefile CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LIBDIR="$(get_libdir)" +} + +src_test() { + # ensure that all test vectors have Unix line endings + local file + for file in TestVectors/* ; do + edos2unix ${file} + done + + if ! emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" test ; then + eerror "Crypto++ self-tests failed." + eerror "Try to remove some optimization flags and reemerge Crypto++." + die "emake test failed" + fi +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install + use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.{a,la} +} |