diff options
Diffstat (limited to 'app-crypt/nistp224/nistp224-0.75.ebuild')
-rw-r--r-- | app-crypt/nistp224/nistp224-0.75.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/app-crypt/nistp224/nistp224-0.75.ebuild b/app-crypt/nistp224/nistp224-0.75.ebuild new file mode 100644 index 000000000000..387c3abcdf70 --- /dev/null +++ b/app-crypt/nistp224/nistp224-0.75.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/nistp224/nistp224-0.75.ebuild,v 1.1 2008/01/30 22:57:59 bangert Exp $ + +inherit toolchain-funcs flag-o-matic fixheadtails + +DESCRIPTION="nistp224 performs compressed Diffie-Hellman key exchange on the NIST P-224 elliptic curve" +HOMEPAGE="http://cr.yp.to/nistp224.html" +SRC_URI="http://cr.yp.to/${PN}/${P}.tar.gz" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="" +RDEPEND=${DEPEND} +S=${WORKDIR}/math/${P}/src + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/${P}-asmfix.patch + epatch "${FILESDIR}"/${P}-declare-exit.patch + cd "${S}" + ht_fix_file Makefile print*.sh + append-ldflags $(bindnow-flags) + append-flags -fPIC + echo -n "$(tc-getCC) ${CFLAGS}" > conf-cc + echo -n "$(tc-getCC) ${LDFLAGS}" > conf-ld + if use ppc; then + # untested + echo -n "powerpc" > conf-opt + elif use sparc; then + # untested + echo -n "sparc" > conf-opt + else + # optiminations for ppro and pentium fail + echo -n "idea64" > conf-opt + fi +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dobin nistp224 nistp224-56 + mv nistp224.a libnistp224.a + dolib.a libnistp224.a + insinto /usr/include + doins nistp224.h +} |