diff options
author | Thilo Bangert <bangert@gentoo.org> | 2009-03-16 11:14:03 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2009-03-16 11:14:03 +0000 |
commit | 4da41e8989150f4c617eac17b82c4c97065a704d (patch) | |
tree | 9aaacc227827a8249d4e959e223d66005228b9cd /app-crypt/nistp224 | |
parent | Version bump and dumps. (diff) | |
download | historical-4da41e8989150f4c617eac17b82c4c97065a704d.tar.gz historical-4da41e8989150f4c617eac17b82c4c97065a704d.tar.bz2 historical-4da41e8989150f4c617eac17b82c4c97065a704d.zip |
introduce src_configure (bug #239970) - honour CC (bug #243546) - thanks Diego
Package-Manager: portage-2.2_rc24/cvs/Linux i686
Diffstat (limited to 'app-crypt/nistp224')
-rw-r--r-- | app-crypt/nistp224/ChangeLog | 10 | ||||
-rw-r--r-- | app-crypt/nistp224/Manifest | 4 | ||||
-rw-r--r-- | app-crypt/nistp224/files/nistp224-0.75-honour-CC.patch | 79 | ||||
-rw-r--r-- | app-crypt/nistp224/nistp224-0.75-r1.ebuild | 54 |
4 files changed, 144 insertions, 3 deletions
diff --git a/app-crypt/nistp224/ChangeLog b/app-crypt/nistp224/ChangeLog index 701b91156593..67c09216ca36 100644 --- a/app-crypt/nistp224/ChangeLog +++ b/app-crypt/nistp224/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-crypt/nistp224 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/nistp224/ChangeLog,v 1.2 2008/06/26 07:57:55 bangert Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/nistp224/ChangeLog,v 1.3 2009/03/16 11:14:03 bangert Exp $ + +*nistp224-0.75-r1 (16 Mar 2009) + + 16 Mar 2009; Thilo Bangert <bangert@gentoo.org> + +files/nistp224-0.75-honour-CC.patch, +nistp224-0.75-r1.ebuild: + introduce src_configure (bug #239970) - honour CC (bug #243546) 26 Jun 2008; Thilo Bangert <bangert@gentoo.org> nistp224-0.75.ebuild: remove bindnow-flags - as per bug #226945 diff --git a/app-crypt/nistp224/Manifest b/app-crypt/nistp224/Manifest index 1921f5a3fd95..3d0e5734a10a 100644 --- a/app-crypt/nistp224/Manifest +++ b/app-crypt/nistp224/Manifest @@ -1,6 +1,8 @@ AUX nistp224-0.75-asmfix.patch 1360 RMD160 172697e18b9a97983d03ba5a3448298be657a5b0 SHA1 0542576711958009cda77b03f2d630ea4187baa7 SHA256 8fa379e289034ac2b0d33aa1b1c77da8a53f23348a311d3ec67c3e0e742b5504 AUX nistp224-0.75-declare-exit.patch 658 RMD160 5feb45953246bf9f630122e72e4a95f07cac7028 SHA1 a9fb10cd0d317e8f65551881bfd8835bc4803721 SHA256 dc69eaf6f8c3d5d145910dbc96785ded8d65838ab002582df563f1541e71add7 +AUX nistp224-0.75-honour-CC.patch 1909 RMD160 2d09b9a017891cacd48bc8f926457ee78267e24b SHA1 fe8fb643c58ad6b9298dcf844bafa2101ce78f12 SHA256 d39678ef56d6268ed91c4b1104dd90473eeaf13d1c39a35742a27a09b92ec1de DIST nistp224-0.75.tar.gz 204747 RMD160 0394055d583a922702c1be0c4f8c417a3e9f4f3d SHA1 3fa1b8971a7e6b89c00ed7e09f89eaf1736343b2 SHA256 4e033b1bd0bb906229ed8c42cf87aa03cdc54ad40593ca262c7178fe3425351d +EBUILD nistp224-0.75-r1.ebuild 1298 RMD160 63eaa1ed365d61a4c4e7441a3f8479c465fbbaf8 SHA1 ec8b7ca4bc9cd23e201a8b66c1f3ef01baddfb8c SHA256 6967b1ec1b77eb0cea75375d72bda9a63731d6d3226fe6977f5d04f46057d4ff EBUILD nistp224-0.75.ebuild 1231 RMD160 cab6e94d87b36d920d26537abc43f6657b35e3f8 SHA1 1a388f3435d12787ed159d174125373360ae60ad SHA256 e0c50c15c3df505bf96f052614796071912a8d491c39ae3c01dada2b8dfe21a0 -MISC ChangeLog 901 RMD160 07b9ab94a12536a48b67dca976e6d242385cb595 SHA1 7fb127fd981ad7cf3603a0a708a1ac7872dd8ff8 SHA256 9c8460232f9700f3c38837b270435bd25bc8bc1140d45352515a082ee178c522 +MISC ChangeLog 1117 RMD160 8e1fb5b2b1afca17ad36237d9fb3f8946b429441 SHA1 4394865e4aa69ee27951d26db8cb7d3eeac99170 SHA256 17fb8c380024b719bf03f990e1dee43242199a45a4781e4942a85f1f4351d05d MISC metadata.xml 585 RMD160 3060fe656027d10dbb9cda6df42d3789e462c328 SHA1 3cc542189e51e3cf03099129705409e77055364f SHA256 a24bc31bc34bc99ebb393b51d4823e1384055edf5d0f5e9cb78fb7d1cb15f543 diff --git a/app-crypt/nistp224/files/nistp224-0.75-honour-CC.patch b/app-crypt/nistp224/files/nistp224-0.75-honour-CC.patch new file mode 100644 index 000000000000..1f5a938c2cc3 --- /dev/null +++ b/app-crypt/nistp224/files/nistp224-0.75-honour-CC.patch @@ -0,0 +1,79 @@ +--- Makefile.orig 2008-11-04 22:36:26.000000000 +0100 ++++ Makefile 2008-11-04 22:40:08.000000000 +0100 +@@ -1,3 +1,5 @@ ++CC=`head -n 1 conf-cc` ++ + default: it + + clean: +@@ -108,7 +110,7 @@ + hasrpcc.h load rts rts.exp speed systype + rm -f sysdeps + echo nistp224 0.75 >> sysdeps +- gcc --version >> sysdeps ++ ${CC} --version >> sysdeps + cat systype compile load >> sysdeps + grep sysdep hasgethr.h >> sysdeps + grep sysdep hasrdtsc.h >> sysdeps +--- find-systype.sh.orig 2008-11-04 22:35:18.000000000 +0100 ++++ find-systype.sh 2008-11-04 22:36:51.000000000 +0100 +@@ -79,8 +79,8 @@ + ;; + esac + else +- gcc -c trycpp.c +- gcc -o trycpp trycpp.o ++ ${CC} -c trycpp.c ++ ${CC} -o trycpp trycpp.o + case `./trycpp` in + nextstep) + oper="nextstep-`hostinfo | sed -n 's/^[ ]*NeXT Mach \([^:]*\):.*$/\1/p'`" +--- print-cc.sh.orig 2008-11-04 22:34:51.000000000 +0100 ++++ print-cc.sh 2008-11-04 22:35:04.000000000 +0100 +@@ -1,46 +1,5 @@ + cc="`head -n 1 conf-cc`" + systype="`cat systype`" + +- +-gcc -c trycpp.c -malign-double >/dev/null 2>&1 \ +-&& gccad="-malign-double" +- +-gcc -c trycpp.c -mcpu=ultrasparc >/dev/null 2>&1 \ +-&& gccus="-mcpu=ultrasparc" +- +-gcc -c trycpp.c -mcpu=powerpc >/dev/null 2>&1 \ +-&& gccpp="-mcpu=powerpc" +- +-gcc -c trycpp.c -mcpu=21164 >/dev/null 2>&1 \ +-&& gcc21="-mcpu=21164" +- +-rm -f trycpp.o +- +- +-gccbase="gcc -fomit-frame-pointer -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings" +- +- +-case "$cc:$systype" in +- auto:*:i386-*:*) +- cc="$gccbase -O1 $gccad" +- ;; +- auto:*:sparc-*:*:*:*) +- cc="$gccbase -O1 $gccus" +- ;; +- auto:*:ppc-*:*:*:*) +- cc="$gccbase -O2 $gccpp" +- ;; +- auto:*:alpha-*:*:*:*) +- cc="$gccbase -O2 $gcc21" +- ;; +- auto:aix-*:-:-:*:-) +- cc="$gccbase -O2 $gccpp" +- ;; +- auto:*) +- cc="$gccbase -O2" +- ;; +-esac +- +- + cat warn-auto.sh + echo exec "$cc" '-c ${1+"$@"}' diff --git a/app-crypt/nistp224/nistp224-0.75-r1.ebuild b/app-crypt/nistp224/nistp224-0.75-r1.ebuild new file mode 100644 index 000000000000..0fb3005a7db3 --- /dev/null +++ b/app-crypt/nistp224/nistp224-0.75-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/nistp224/nistp224-0.75-r1.ebuild,v 1.1 2009/03/16 11:14:03 bangert Exp $ + +EAPI="2" + +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_prepare() { + epatch "${FILESDIR}"/${P}-asmfix.patch + epatch "${FILESDIR}"/${P}-declare-exit.patch + cd "${S}" + epatch "${FILESDIR}"/${P}-honour-CC.patch + ht_fix_file Makefile print*.sh +} + +src_configure() { + 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 +} |