aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory M. Tuner <gmt@be-evil.net>2014-01-22 06:54:51 -0800
committerGregory M. Tuner <gmt@be-evil.net>2014-01-22 06:54:51 -0800
commit5b3d9d05fd6f8914ced61633836e5b06f95bc9a7 (patch)
treef4bccfdb3660e5383069805936e70ec772247969 /dev-libs
parentsys-libs/libcap-ng: multilib-utize (diff)
downloadgmt-5b3d9d05fd6f8914ced61633836e5b06f95bc9a7.tar.gz
gmt-5b3d9d05fd6f8914ced61633836e5b06f95bc9a7.tar.bz2
gmt-5b3d9d05fd6f8914ced61633836e5b06f95bc9a7.zip
dev-libs/nettle: clone upstream
Signed-off-by: Gregory M. Tuner <gmt@be-evil.net>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/nettle/ChangeLog371
-rw-r--r--dev-libs/nettle/Manifest13
-rw-r--r--dev-libs/nettle/files/nettle-1.14-make-as-needed.patch12
-rw-r--r--dev-libs/nettle/files/nettle-2.0-binutils-2.22.patch21
-rw-r--r--dev-libs/nettle/files/nettle-2.4-darwin-shlink.patch53
-rw-r--r--dev-libs/nettle/files/nettle-2.4-missing-libm-link.patch12
-rw-r--r--dev-libs/nettle/files/nettle-2.5-build-ar.patch39
-rw-r--r--dev-libs/nettle/files/nettle-2.5-missing-libm-link.patch11
-rw-r--r--dev-libs/nettle/files/nettle-2.5-static-libs.patch108
-rw-r--r--dev-libs/nettle/files/nettle-2.6-shared.patch89
-rw-r--r--dev-libs/nettle/files/nettle-2.7-shared.patch77
-rw-r--r--dev-libs/nettle/metadata.xml5
-rw-r--r--dev-libs/nettle/nettle-2.7.1-r1.ebuild52
13 files changed, 863 insertions, 0 deletions
diff --git a/dev-libs/nettle/ChangeLog b/dev-libs/nettle/ChangeLog
new file mode 100644
index 0000000..f8a63e1
--- /dev/null
+++ b/dev-libs/nettle/ChangeLog
@@ -0,0 +1,371 @@
+# ChangeLog for dev-libs/nettle
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nettle/ChangeLog,v 1.102 2013/08/06 13:07:05 ago Exp $
+
+ 06 Aug 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for s390, wrt bug #477612
+
+ 04 Aug 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for ia64, wrt bug #477612
+
+ 03 Aug 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for sparc, wrt bug #477612
+
+ 30 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for alpha, wrt bug #477612
+
+ 27 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for x86, wrt bug #477612
+
+ 23 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for arm, wrt bug #477612
+
+ 22 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for ppc64, wrt bug #477612
+
+ 22 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for ppc, wrt bug #477612
+
+ 22 Jul 2013; Jeroen Roovers <jer@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for HPPA (bug #477612).
+
+ 21 Jul 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.7.1.ebuild:
+ Stable for amd64, wrt bug #477612
+
+*nettle-2.7.1 (05 Jun 2013)
+
+ 05 Jun 2013; Tim Harder <radhermit@gentoo.org> +nettle-2.7.1.ebuild:
+ Version bump.
+
+ 27 May 2013; Fabian Groffen <grobian@gentoo.org> nettle-2.7.ebuild:
+ Use prefixed libdir, bug #471298
+
+ 11 May 2013; Alon Bar-Lev <alonbl@gentoo.org> nettle-2.7.ebuild:
+ Fix libdir location, per bug#468810, thanks to Anthony Basile
+
+*nettle-2.7 (27 Apr 2013)
+
+ 27 Apr 2013; Tim Harder <radhermit@gentoo.org> +nettle-2.7.ebuild,
+ +files/nettle-2.7-shared.patch:
+ Version bump (bug #467468), add neon use flag.
+
+ 15 Mar 2013; Jeroen Roovers <jer@gentoo.org> nettle-2.6.ebuild:
+ Stable for HPPA (bug #461104).
+
+ 15 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for sh, wrt bug #461104
+
+ 14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for s390, wrt bug #461104
+
+ 14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for sparc, wrt bug #461104
+
+ 14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for ia64, wrt bug #461104
+
+ 14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for arm, wrt bug #461104
+
+ 14 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for alpha, wrt bug #461104
+
+ 13 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for ppc64, wrt bug #461104
+
+ 12 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for ppc, wrt bug #461104
+
+ 10 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for x86, wrt bug #461104
+
+ 10 Mar 2013; Agostino Sarubbo <ago@gentoo.org> nettle-2.6.ebuild:
+ Stable for amd64, wrt bug #461104
+
+ 20 Feb 2013; Zac Medico <zmedico@gentoo.org> nettle-2.6.ebuild:
+ Add ~arm-linux keyword.
+
+ 18 Jan 2013; Tim Harder <radhermit@gentoo.org> nettle-2.6.ebuild,
+ files/nettle-2.6-shared.patch:
+ Remove explicit src_test. The default just throws a couple warnings if static
+ libs aren't built but still passes successfully.
+
+ 18 Jan 2013; Tim Harder <radhermit@gentoo.org> nettle-2.6.ebuild:
+ Explicitly specify examples dir.
+
+*nettle-2.6 (18 Jan 2013)
+
+ 18 Jan 2013; Tim Harder <radhermit@gentoo.org> +nettle-2.6.ebuild,
+ +files/nettle-2.6-shared.patch:
+ Version bump. Update to EAPI 5 and add subslot, add doc and test use flags,
+ and run tests.
+
+ 14 Dec 2012; Alon Bar-Lev <alonbl@gentoo.org> +files/nettle-2.5-build-ar.patch,
+ nettle-2.5-r1.ebuild:
+ Fix ar detection per bug#438160 by Sean McGovern
+
+*nettle-2.5-r1 (14 Dec 2012)
+
+ 14 Dec 2012; Alon Bar-Lev <alonbl@gentoo.org> +files/nettle-2.5-static-libs.patch,
+ +nettle-2.5-r1.ebuild:
+ bug#405525 add support for USE static-libs
+
+ 20 Oct 2012; Raúl Porcel <armin76@gentoo.org> nettle-2.5.ebuild:
+ alpha/ia64/s390/sh/sparc stable wrt #433235
+
+ 17 Oct 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> nettle-2.5.ebuild:
+ x86 stable wrt bug #433235
+
+ 12 Oct 2012; Agostino Sarubbo <ago@gentoo.org> nettle-2.5.ebuild:
+ Stable for amd64, wrt bug #433235
+
+ 11 Oct 2012; Jeroen Roovers <jer@gentoo.org> nettle-2.5.ebuild:
+ Stable for HPPA (bug #433235).
+
+ 11 Oct 2012; Markus Meier <maekke@gentoo.org> nettle-2.5.ebuild:
+ arm stable, bug #433235
+
+ 11 Oct 2012; Anthony G. Basile <blueness@gentoo.org> nettle-2.5.ebuild:
+ stable ppc64, bug #433235
+
+ 10 Oct 2012; Brent Baude <ranger@gentoo.org> nettle-2.5.ebuild:
+ Marking nettle-2.5 ppc for bug 433235
+
+*nettle-1.15 (24 Jul 2012)
+
+ 24 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> +nettle-1.15.ebuild:
+ Restore ebuild that shouldn't have been deleted.
+
+ 24 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> -nettle-1.15.ebuild,
+ nettle-2.4.ebuild, nettle-2.5.ebuild:
+ Disable openssl dependency (which was also wrong, it wasn't RDEPEND), and
+ avoid using it altogether. Thanks to Maxim Kammerer in bug #427526.
+
+*nettle-2.5 (12 Jul 2012)
+
+ 12 Jul 2012; Tim Harder <radhermit@gentoo.org> +nettle-2.5.ebuild,
+ +files/nettle-2.5-missing-libm-link.patch:
+ Version bump.
+
+ 06 Jul 2012; Rick Farina <zerochaos@gentoo.org>
+ +files/nettle-2.4-missing-libm-link.patch, nettle-2.4.ebuild:
+ fix build failure on uclibc systems per bug 415193
+
+ 26 Apr 2012; Alexis Ballier <aballier@gentoo.org> nettle-2.4.ebuild:
+ keyword ~amd64-fbsd
+
+ 20 Mar 2012; Tim Harder <radhermit@gentoo.org> -nettle-2.0.ebuild,
+ -files/nettle-2.0-asneeded.patch, -nettle-2.1.ebuild, -nettle-2.2.ebuild:
+ Remove old.
+
+ 19 Mar 2012; Raúl Porcel <armin76@gentoo.org> nettle-2.4.ebuild:
+ alpha/ia64/s390/sh/sparc stable wrt #400019
+
+ 06 Mar 2012; Jeff Horelick <jdhore@gentoo.org> nettle-2.4.ebuild:
+ marked x86 per bug 400019
+
+ 06 Mar 2012; Brent Baude <ranger@gentoo.org> nettle-2.4.ebuild:
+ Marking nettle-2.4 ppc64 for bug 400019
+
+ 01 Mar 2012; Brent Baude <ranger@gentoo.org> nettle-2.4.ebuild:
+ Marking nettle-2.4 ppc for bug 400019
+
+ 29 Feb 2012; Markus Meier <maekke@gentoo.org> nettle-2.4.ebuild:
+ arm stable, bug #400019
+
+ 27 Feb 2012; Jeroen Roovers <jer@gentoo.org> nettle-2.4.ebuild:
+ Stable for HPPA (bug #400019).
+
+ 24 Feb 2012; Agostino Sarubbo <ago@gentoo.org> nettle-2.4.ebuild:
+ Stable for amd64, wrt bug #400019
+
+ 18 Feb 2012; Fabian Groffen <grobian@gentoo.org> nettle-2.4.ebuild:
+ Fixed for and marked ~x86-solaris
+
+ 16 Feb 2012; Fabian Groffen <grobian@gentoo.org> nettle-2.4.ebuild:
+ Marked ~sparc-solaris
+
+ 10 Feb 2012; Tim Harder <radhermit@gentoo.org> nettle-2.4.ebuild,
+ files/nettle-2.4-darwin-shlink.patch:
+ Enable gmp use flag by default (needed by gnutls) and fix sed line in patch
+ file (bug #400941).
+
+ 01 Jan 2012; Sergei Trofimovich <slyfox@gentoo.org>
+ +files/nettle-2.0-binutils-2.22.patch, nettle-1.15.ebuild, nettle-2.0.ebuild,
+ nettle-2.1.ebuild:
+ Fix build failure against binutils-2.22 by jdhore (bug #396659). Dropped
+ blockers on nonexistent dev-libs/lsh.
+
+ 03 Dec 2011; Fabian Groffen <grobian@gentoo.org>
+ +files/nettle-2.4-darwin-shlink.patch, nettle-2.4.ebuild:
+ Add patch to fix compilation on Darwin, marked ~x64-macos
+
+*nettle-2.4 (04 Sep 2011)
+
+ 04 Sep 2011; Tim Harder <radhermit@gentoo.org> -nettle-2.3.ebuild,
+ +nettle-2.4.ebuild:
+ Version bump and remove old.
+
+*nettle-2.3 (03 Sep 2011)
+
+ 03 Sep 2011; Tim Harder <radhermit@gentoo.org> +nettle-2.3.ebuild:
+ Version bump.
+
+*nettle-2.2 (08 Aug 2011)
+
+ 08 Aug 2011; Markos Chandras <hwoarang@gentoo.org> +nettle-2.2.ebuild:
+ Version bump. Ebuild by Arfrever
+
+ 24 Jul 2011; Raúl Porcel <armin76@gentoo.org> nettle-2.1.ebuild:
+ sh stable wrt #337160
+
+ 23 Jul 2011; Raúl Porcel <armin76@gentoo.org> nettle-2.1.ebuild:
+ ia64/s390 stable wrt #337160
+
+ 13 Jun 2011; Matt Turner <mattst88@gentoo.org> nettle-2.1.ebuild:
+ Added ~mips, bug 337367
+
+ 02 May 2011; Samuli Suominen <ssuominen@gentoo.org> nettle-2.1.ebuild:
+ ppc64 stable wrt #337160
+
+ 04 Apr 2011; Michael Weber <xmw@gentoo.org> nettle-2.1.ebuild:
+ arm/sparc stable (bug 337160)
+
+ 30 Mar 2011; Jeroen Roovers <jer@gentoo.org> nettle-2.1.ebuild:
+ Stable for HPPA (bug #337160).
+
+ 27 Mar 2011; Brent Baude <ranger@gentoo.org> nettle-2.1.ebuild:
+ stable ppc, bug 337160
+
+ 26 Mar 2011; Tobias Klausmann <klausman@gentoo.org> nettle-2.1.ebuild:
+ Stable on alpha, bug #337160
+
+ 25 Mar 2011; Markos Chandras <hwoarang@gentoo.org> nettle-2.1.ebuild:
+ Stable on amd64 wrt bug #337160
+
+ 17 Dec 2010; Dane Smith <c1pher@gentoo.org> nettle-1.15.ebuild:
+ Fixed implicit RDEPEND="${DEPEND}" warning.
+
+ 05 Nov 2010; Samuli Suominen <ssuominen@gentoo.org> nettle-2.1.ebuild:
+ Keyword ~ppc64 wrt #337367
+
+ 25 Sep 2010; Markus Meier <maekke@gentoo.org> nettle-2.1.ebuild:
+ add ~arm, bug #337367
+
+*nettle-2.1 (10 Aug 2010)
+
+ 10 Aug 2010; Markos Chandras <hwoarang@gentoo.org> +nettle-2.1.ebuild:
+ Version bump. Bug #332129. Thanks to Dane Smith <smithdanea@gmail.com> for
+ the patch and the testing
+
+ 29 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> nettle-2.0.ebuild,
+ +files/nettle-2.0-asneeded.patch:
+ Fix building with -Wl,--as-needed wrt #285747 by Kacper Kowalik.
+
+ 14 Jan 2010; Christian Faulhammer <fauli@gentoo.org> nettle-2.0.ebuild:
+ Transfer Prefix keywords
+
+ 03 Nov 2009; Raúl Porcel <armin76@gentoo.org> nettle-2.0.ebuild:
+ s390 stable wrt #279372
+
+ 05 Aug 2009; Markus Meier <maekke@gentoo.org> nettle-2.0.ebuild:
+ x86 stable, bug #279372
+
+ 02 Aug 2009; nixnut <nixnut@gentoo.org> nettle-2.0.ebuild:
+ ppc stable #279372
+
+ 31 Jul 2009; Tiago Cunha <tcunha@gentoo.org> nettle-2.0.ebuild:
+ stable sparc, bug 279372
+
+ 31 Jul 2009; <chainsaw@gentoo.org> nettle-2.0.ebuild:
+ Marked stable on AMD64 as requested by Arfrever Frehtes Taifersar Arahesis
+ <arfrever@gentoo.org> in bug #279372. Compile-tested on a Core2 Duo with
+ USE="ssl -gmp".
+
+*nettle-2.0 (27 Jun 2009)
+
+ 27 Jun 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +nettle-2.0.ebuild:
+ Version bump.
+
+ 14 Nov 2007; Alon Bar-Lev <alonbl@gentoo.org>
+ -files/nettle-1.13-PIC.patch, -files/nettle-1.13-no-exec-stack.patch,
+ -files/nettle-1.13-preprocess-asm.patch, -nettle-1.10.ebuild,
+ -nettle-1.12.ebuild, -nettle-1.13.ebuild, -nettle-1.13-r1.ebuild,
+ -nettle-1.14.ebuild:
+ Cleanup
+
+ 14 Nov 2007; Markus Ullmann <jokey@gentoo.org> nettle-1.15.ebuild:
+ Stable on sparc wrt bug #198689
+
+ 11 Nov 2007; Dawid Węgliński <cla@gentoo.org> nettle-1.15.ebuild:
+ Stable on x86 (bug #198689)
+
+ 10 Nov 2007; Samuli Suominen <drac@gentoo.org> nettle-1.15.ebuild:
+ amd64 stable
+
+ 10 Nov 2007; nixnut <nixnut@gentoo.org> nettle-1.15.ebuild:
+ Stable on ppc wrt bug 198689
+
+*nettle-1.15 (06 Aug 2007)
+
+ 06 Aug 2007; Alon Bar-Lev <alonbl@gentoo.org> +nettle-1.15.ebuild:
+ Version bump, bug#187862
+
+ 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
+ Transition to Manifest2.
+
+ 27 Dec 2006; Timothy Redaelli <drizzt@gentoo.org> nettle-1.14.ebuild:
+ Add ~x86-fbsd keyword.
+
+ 31 Oct 2006; Alon Bar-Lev <alonbl@gentoo.org> nettle-1.14.ebuild:
+ Autotools fixups
+
+*nettle-1.14 (31 Oct 2006)
+
+ 31 Oct 2006; Alon Bar-Lev <alonbl@gentoo.org>
+ +files/nettle-1.14-make-as-needed.patch, +nettle-1.14.ebuild:
+ Version bump, fix LDFLAGS="-Wl,--as-needed", closes bug#153138
+
+ 14 Oct 2005; Mike Frysinger <vapier@gentoo.org> nettle-1.13-r1.ebuild:
+ Add support for gmp/ssl USE flags.
+
+*nettle-1.13-r1 (13 Oct 2005)
+
+ 13 Oct 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/nettle-1.13-PIC.patch, +files/nettle-1.13-no-exec-stack.patch,
+ +files/nettle-1.13-preprocess-asm.patch, +nettle-1.13-r1.ebuild:
+ Fixes from PaX team to address executable stacks and PIC bugs.
+
+*nettle-1.13 (11 Oct 2005)
+
+ 11 Oct 2005; Mike Frysinger <vapier@gentoo.org> +nettle-1.13.ebuild:
+ Version bump.
+
+ 29 Sep 2005; Marcelo Goes <vanquirius@gentoo.org> nettle-1.10.ebuild,
+ nettle-1.12.ebuild:
+ Do not dodoc INSTALL.
+
+*nettle-1.12 (30 Jul 2005)
+
+ 30 Jul 2005; Daniel Black <dragonheart@gentoo.org> metadata.xml,
+ +nettle-1.12.ebuild:
+ version bump thanks to meatoo
+
+ 22 Apr 2005; Simon Stelling <blubb@gentoo.org> nettle-1.10.ebuild:
+ stable on amd64
+
+ 01 Oct 2004; Danny van Dyk <kugelfang@gentoo.org> nettle-1.10.ebuild:
+ -fPIC _is_ necessary, but not in static libraries. --enable-shared lets it
+ build an additional shared library.
+
+ 30 Aug 2004; Danny van Dyk <kugelfang@gentoo.org> nettle-1.10.ebuild:
+ Removed append-flags -fPIC on amd64. Not necessary anymore.
+
+ 20 Jul 2004; Rainer Groesslinger <scandium@gentoo.org> nettle-1.10.ebuild:
+ stable on x86, ppc, sparc
+
+*nettle-1.10 (11 Jul 2004)
+
+ 11 Jul 2004; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by Rainer Groesslinger #56156.
diff --git a/dev-libs/nettle/Manifest b/dev-libs/nettle/Manifest
new file mode 100644
index 0000000..6c7297c
--- /dev/null
+++ b/dev-libs/nettle/Manifest
@@ -0,0 +1,13 @@
+AUX nettle-1.14-make-as-needed.patch 471 SHA256 f8552cde7b7c91923c276afca147e9c37b851b60896e1c9d5eb729ecd5bbc324 SHA512 fa5b722875b45617df2099ab3542f09dda8331b6dac9aa1f290a0b4f33b796b87e2026e7900109af103ac23aa3910dcdd6c45df4801ac809a1696843493a9760 WHIRLPOOL bf21b6ba4b7e5e09212f70c4ab0dfcfc65e4ee73365a1f7e3a37205d536082fcc4402b267aec7b1e3776c8df291bb605004cdd227b6ec3f7bd80905a5d21712d
+AUX nettle-2.0-binutils-2.22.patch 615 SHA256 13bba9e32f8c78ae84c4eeafa459eb67830e5504e43dc7497f5091086271775b SHA512 951d3073ee8f2e42ebe345481bebfcd58f2fe80ddb80a1b49e0c3f27ed62c5bc45cf8a8b81b84733d54e2d4ae2db6f0edc6a4d89e3904b598b50de8d193f9e01 WHIRLPOOL 4633905b1a7c6f5c70cdfacebffd98411f9829c4b2da79aabaad63150c146a497214302f5897a9dffefadd6def60ef2028ac82f530eb681da740df0efa332d04
+AUX nettle-2.4-darwin-shlink.patch 2308 SHA256 3a4cf3bac2be0fc9df29341d9bf42636a4979b83e7a115515048617d5f175098 SHA512 1fed076d3ffe53f8e8b0533f1c116d50af4b749dff031e8a0ad8249c7011071cbebc7230c7d0a5a3c63de97c6f236b01975fa63e055d8e082ea7c2d551df2d0c WHIRLPOOL 4df815e82ff5cedd009e9bb6f2a54a62bc729632e1166f9ac92d4f5aa0bb9d50a2b003bc1cdc8eed425cecd9b2d5f60954dd9a638bbef825de4317f55e8cb658
+AUX nettle-2.4-missing-libm-link.patch 636 SHA256 a8506fafe954a4f576f2223f9ff2aa73c5e86ba81aa391c77e74976a91b8903c SHA512 13681c21d7bc1b3ecf86ea57dfd8531312467dd10ba7ab39623ae52d2cae2b77e153049854dc718d1fe1f154c8dd05af17b346aea09eda5d64b426dfa48bc200 WHIRLPOOL cbc9f9b028087e4a5512e97a879700bc231a9e01969b8b5b748af7e09d446a711064a29b4c6cc4f194858b4a52ae2a3cff31c2b89da2644b9ecce1c3542774aa
+AUX nettle-2.5-build-ar.patch 1059 SHA256 c433976f5955035a403461977db90b808c13d07b4bd6b956275fc2fda296d886 SHA512 99f29164a2b1dcb5dac9c859f2503a95c685fed143edff22b18010db3dd64c36eb51200d7cbd96c1dd7aedbfa83f64918187d3616bfce43e013f609fe433ebc4 WHIRLPOOL 2abee40ffc489fe1dbd6d6f8fade10bee1880fae036ec7eee1187ccd98972499b66ef3e31c79dab0e8a99ca850f0858b6c30a75da34e0694ecb8d9910406fe79
+AUX nettle-2.5-missing-libm-link.patch 354 SHA256 d6f3fc36e75c4fa5c8f4d12078ab79bab0433bfae9a3f7506e8ff55baf0545f4 SHA512 35a4c9e18abcd3078359c035c6b2bbdc3d52ee8f2cd8036dc3854e4376cef66dbb283c3426d5ed63a11d2b611699ac227921d00194db362abd453febcfdebd19 WHIRLPOOL c055c8c813dbea23f7885838d6e9c1133701a23e9869d7944d72de23fca06bb882269b97c5e698d5dab4cd1785ce33a62a97e59c05f15761b408378e95c8c66c
+AUX nettle-2.5-static-libs.patch 3519 SHA256 d364c56d38109982a961a82f9a35d39fe4576149b1b8e9fc305966ca3265d974 SHA512 fb441c9790b31543b638d5d98dcfd86ee1296efb6a150c174f88200b5e086883551082c5c50302739caa5e13655690f5f521067cd8720cd9e180bba035b094a6 WHIRLPOOL ab219dbc2656221b4a369968c0e4e37725c762ae4c091ee82ee4f674ba6c4dffb36adb17bedf5534c6429ffde3ab7b0cea05c34719144ebcdb14bb9bbb0389f4
+AUX nettle-2.6-shared.patch 3285 SHA256 7aba54a117afe7f3845501fe7c260ebaab8179a527fb5ef5caf08a85e09ddbcb SHA512 1746f4a26eecda67b10b1a3098446229404df5e35b2ae20549d8a1b0d20b8ce17e57bff990dcb3a817ebf4f04a8ae413d2b7806b29a3716d4c4708892e0b0e71 WHIRLPOOL 75887241e290227884392ce512b2aa20614bd0bec9cb9ffa68cef3ebac83cbec89dd3d56f2ad60d5004b0b0e257f09a333e96b564de13613906f402c92f51c5c
+AUX nettle-2.7-shared.patch 2674 SHA256 d71a578ef9eb153770eb98a4741815e74556d101c9373d8b6884871708dc48f3 SHA512 3a0599356a411e03a3ac5284c03b6bef046e170263a41e5504b3ea1403217eca3508d423a207e8373c596491ac95dfca4bf1d52b2c726e7b0c42f19a7499fa70 WHIRLPOOL 33929850b65edd1e793ac320919c5cde65ad2bd09757a68cfcc8beb5596ea120412e5cad0ba85054c37a80f132b693d69df67281c407b15c55fd9ecb35733a70
+DIST nettle-2.7.1.tar.gz 1558863 SHA256 bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40 SHA512 297c69e90bbd448f72e854abe5cc7868c08d710e1c1bcd6a14adf06e25629d58a3ef4d65ab588d001ec7091aa583032312ad15b416ea5479e5bf0ea63717f473 WHIRLPOOL 3a9bca1175652050ac8b96d85ee86dc40968fb56bad416ccdf6e57be85d4ab9f81f75647866c44810dad226830cbfe466cb37d1fdf40afb54b509de6f7a9bcee
+EBUILD nettle-2.7.1-r1.ebuild 1353 SHA256 9b5a33720c4d6479e97331787f0214e1a7279fb77ed3eaf619c0e0b068b4f697 SHA512 14e973c77f5a898474a4df5e7e34e494274922cfb5efc526f3c01ed1573b49233a74c483f664f069202d13b8d2d5228c6e3e98065c597727407d9fdc75d35887 WHIRLPOOL 97a966daf6c2f19bbf33701c1078e91de6d9a73a1040dbb4769b84f477a5d470920a59aae7ae6d6b2f50e7f29d0f77f2b1b1c1724dffa59576079b1db75355cc
+MISC ChangeLog 12786 SHA256 efb2695c62ddb8f78e9af5fe6666b746b8fd66811f0605b28bb0a030935f8ce2 SHA512 63b29358077bc67f56d50473366e9bb5d3fdbe0b01e5310e17c66c3bfd6fd59ce3dee5cf169412f1f2b2802dda4cf884af70a8b480d1a363e06732aed4c2d588 WHIRLPOOL 773e95fb8ff08149a08b93a8da3e84029f3aef0fc30b7aed5eaaf9210eb99fb692beda9a6d2a4902dee46911ff9d09258523816b413a2595cca155ff6cda077c
+MISC metadata.xml 159 SHA256 fabd15e2740a2a68e0bda738d0cd4300b133ff11239802afe7e60aa3862c9c03 SHA512 96a1f7f082adc57e52a1a32666e1206e68f8ff03c728fdb7666ff98c255905977491fc4dfc37bc8bdf5da0eb50cdc408adec357bbd75bd980bc90659cc157194 WHIRLPOOL 82fca1c4b75b090abdb0a4233c8e49fc43535ca6e470f725c1872653ea922b6693e9646bc3ee1fd6f1293ebedad661642cec13b2817fb5315268300f7675a751
diff --git a/dev-libs/nettle/files/nettle-1.14-make-as-needed.patch b/dev-libs/nettle/files/nettle-1.14-make-as-needed.patch
new file mode 100644
index 0000000..ec1380f
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-1.14-make-as-needed.patch
@@ -0,0 +1,12 @@
+diff -urNp nettle-1.13.org/configure.ac nettle-1.13/configure.ac
+--- nettle-1.13.org/configure.ac 2005-10-06 22:29:11.000000000 +0300
++++ nettle-1.13/configure.ac 2006-10-31 21:19:24.000000000 +0200
+@@ -152,7 +152,7 @@ case `uname -sr` in
+ SHLIBFILE='$(SHLIBSONAME).$(SHLIBMINOR)'
+ SHLIBLINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME)'
+ # FIXME: It might make some sense to link with -lgmp
+- SHLIBLIBS=''
++ SHLIBLIBS='$(LIBS)'
+ ;;
+ esac
+
diff --git a/dev-libs/nettle/files/nettle-2.0-binutils-2.22.patch b/dev-libs/nettle/files/nettle-2.0-binutils-2.22.patch
new file mode 100644
index 0000000..072fb66
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-2.0-binutils-2.22.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/396659
+
+Fix build failure againsn binutils-2.22.
+Picked from upstream.
+--- nettle-2.0/x86/md5-compress.asm 2009-06-08 21:27:11.000000000 +0300
++++ nettle-2.1/x86/md5-compress.asm 2010-07-25 22:30:14.000000000 +0300
+@@ -88,7 +88,7 @@
+ movl 12(TMP), SD
+
+ C Pointer to source data.
+- C Note that if analigned, we suffer unaligned accesses
++ C Note that if unaligned, we suffer unaligned accesses
+ movl 24(%esp), INPUT
+
+ ROUND(<F1>, SA, SB, SC, SD, REF( 0), $0xd76aa478, 7)
+@@ -171,4 +171,4 @@
+ popl %ebp
+ popl %ebx
+ ret
+-EPILOGUE(_nettle_sha1_compress)
++EPILOGUE(_nettle_md5_compress)
diff --git a/dev-libs/nettle/files/nettle-2.4-darwin-shlink.patch b/dev-libs/nettle/files/nettle-2.4-darwin-shlink.patch
new file mode 100644
index 0000000..da32808
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-2.4-darwin-shlink.patch
@@ -0,0 +1,53 @@
+From MacPorts:
+https://trac.macports.org/browser/trunk/dports/devel/nettle/files/patch-configure.diff
+
+nettle: move -L. before $(LDFLAGS) (which will contain -L${prefix}/lib)
+so future updates when the new and old libraries are incompatible don't
+go awry
+
+Reworked by Gentoo for configure.ac
+
+Fixes in particular the linking stage on Darwin, using the right
+dependency libs, and creating the right names.
+
+Fixed incorrect -gmp argument in LIBS (probably typo)
+
+
+--- configure.ac
++++ configure.ac
+@@ -61,9 +61,7 @@
+ [enable_gcov=no])
+
+ LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \
+- `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
+- /usr/local/lib /sw/local/lib /sw/lib \
+- /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib])
++ `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"`])
+
+ # Checks for programs.
+ AC_PROG_CC
+@@ -281,16 +280,16 @@
+ ;;
+ darwin*)
+ LIBNETTLE_FORLINK=libnettle.dylib
+- LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
+- LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
+- LIBNETTLE_LINK='$(CC) -dynamiclib $(LDFLAGS)'
+- LIBNETTLE_LIBS=''
++ LIBNETTLE_SONAME='libnettle.$(LIBNETTLE_MAJOR).dylib'
++ LIBNETTLE_FILE='libnettle.$(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR).dylib'
++ LIBNETTLE_LINK='$(CC) -dynamiclib $(LDFLAGS) -install_name ${libdir}/$(LIBNETTLE_SONAME) -compatibility_version $(LIBNETTLE_MAJOR) -current_version $(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR)'
++ LIBNETTLE_LIBS='$(LIBS)'
+
+ LIBHOGWEED_FORLINK=libhogweed.dylib
+- LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
+- LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
+- LIBHOGWEED_LINK='$(CC) -dynamiclib $(LDFLAGS)'
+- LIBHOGWEED_LIBS=''
++ LIBHOGWEED_SONAME='libhogweed.$(LIBHOGWEED_MAJOR).dylib'
++ LIBHOGWEED_FILE='libhogweed.$(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR).dylib'
++ LIBHOGWEED_LINK='$(CC) -dynamiclib -L. $(LDFLAGS) -install_name ${libdir}/$(LIBHOGWEED_SONAME) -compatibility_version $(LIBHOGWEED_MAJOR) -current_version $(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR)'
++ LIBHOGWEED_LIBS='$(LIBS) -lnettle'
+ ;;
+ solaris*)
+ # Sun's ld uses -h to set the soname, and this option is passed
diff --git a/dev-libs/nettle/files/nettle-2.4-missing-libm-link.patch b/dev-libs/nettle/files/nettle-2.4-missing-libm-link.patch
new file mode 100644
index 0000000..3127ad0
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-2.4-missing-libm-link.patch
@@ -0,0 +1,12 @@
+diff -Naur nettle-2.4.orig//examples/Makefile.in nettle-2.4/examples/Makefile.in
+--- nettle-2.4.orig//examples/Makefile.in 2011-09-03 12:51:07.000000000 +0000
++++ nettle-2.4/examples/Makefile.in 2012-05-08 23:49:01.580003605 +0000
+@@ -68,7 +68,7 @@
+
+ nettle-benchmark$(EXEEXT): nettle-benchmark.$(OBJEXT) nettle-openssl.$(OBJEXT) $(GETOPT_OBJS)
+ $(LINK) nettle-benchmark.$(OBJEXT) nettle-openssl.$(OBJEXT) io.$(OBJEXT) $(GETOPT_OBJS) \
+- -lnettle $(BENCH_LIBS) $(OPENSSL_LIBFLAGS) -o nettle-benchmark$(EXEEXT)
++ -lnettle -lm $(BENCH_LIBS) $(OPENSSL_LIBFLAGS) -o nettle-benchmark$(EXEEXT)
+
+ $(TARGETS) : io.$(OBJEXT) ../libnettle.a
+
diff --git a/dev-libs/nettle/files/nettle-2.5-build-ar.patch b/dev-libs/nettle/files/nettle-2.5-build-ar.patch
new file mode 100644
index 0000000..636c1fa
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-2.5-build-ar.patch
@@ -0,0 +1,39 @@
+From 3f35444ca2ae842a546010180e2b16cdd0169b6c Mon Sep 17 00:00:00 2001
+From: Sean McGovern <gseanmcg@gmail.com>
+Date: Tue, 30 Oct 2012 19:23:27 -0400
+Subject: [PATCH] Probe for archiver tool
+
+Gentoo bug#438160.
+---
+ config.make.in | 2 +-
+ configure.ac | 1 +
+ 2 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/config.make.in b/config.make.in
+index 58ee19c..f42421f 100644
+--- a/config.make.in
++++ b/config.make.in
+@@ -46,7 +46,7 @@ LIBHOGWEED_FORLINK = @LIBHOGWEED_FORLINK@
+ LIBHOGWEED_LIBS = @LIBHOGWEED_LIBS@
+ LIBHOGWEED_LINK = @LIBHOGWEED_LINK@
+
+-AR = ar
++AR = @AR@
+ ARFLAGS = cru
+ AUTOCONF = autoconf
+ AUTOHEADER = autoheader
+diff --git a/configure.ac b/configure.ac
+index dea9bd4..737febb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -104,6 +104,7 @@ AC_PROG_RANLIB
+ AC_CHECK_TOOL(NM, nm, strings)
+ # Used only for the GNU-stack configure test.
+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
++AC_CHECK_TOOL(AR, ar, false)
+
+ if test "x$ac_cv_prog_cc_stdc" = xno ; then
+ AC_ERROR([the C compiler doesn't handle ANSI-C]) #'
+--
+1.7.8.6
+
diff --git a/dev-libs/nettle/files/nettle-2.5-missing-libm-link.patch b/dev-libs/nettle/files/nettle-2.5-missing-libm-link.patch
new file mode 100644
index 0000000..193c21a
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-2.5-missing-libm-link.patch
@@ -0,0 +1,11 @@
+--- a/examples/Makefile.in
++++ b/examples/Makefile.in
+@@ -11,7 +11,7 @@ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
+ PRE_LDFLAGS = -L..
+
+ OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
+-BENCH_LIBS = @BENCH_LIBS@
++BENCH_LIBS = @BENCH_LIBS@ -lm
+
+ RSA_TARGETS = rsa-keygen$(EXEEXT) rsa-sign$(EXEEXT) \
+ rsa-verify$(EXEEXT) rsa-encrypt$(EXEEXT) rsa-decrypt$(EXEEXT)
diff --git a/dev-libs/nettle/files/nettle-2.5-static-libs.patch b/dev-libs/nettle/files/nettle-2.5-static-libs.patch
new file mode 100644
index 0000000..4434d58
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-2.5-static-libs.patch
@@ -0,0 +1,108 @@
+From c4a57cf2b0ebf3b99309f40cfa1c5107ae038d84 Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <alon.barlev@gmail.com>
+Date: Fri, 14 Dec 2012 23:31:10 +0200
+Subject: [PATCH] build: add --enable-static option
+
+Gentoo bug#405525, support not installing static libraries.
+
+Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
+---
+ Makefile.in | 16 ++++++++++------
+ configure.ac | 12 ++++++++++++
+ 2 files changed, 22 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index be0de3c..d4a2a7d 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -21,7 +21,11 @@ include config.make
+ PRE_CPPFLAGS = -I.
+ # FIXME: Add configuration of LIBEXT?
+ LIBTARGETS = libnettle.a @IF_HOGWEED@ libhogweed.a
+-SHLIBTARGETS = $(LIBNETTLE_FORLINK) @IF_HOGWEED@ $(LIBHOGWEED_FORLINK)
++@IF_STATIC@INSTALL_LIBTARGETS = install-static
++@IF_STATIC@UNINSTALL_LIBTARGETS = uninstall-static
++@IF_SHARED@SHLIBTARGETS = $(LIBNETTLE_FORLINK) @IF_HOGWEED@ $(LIBHOGWEED_FORLINK)
++@IF_SHARED@INSTALL_SHLIBTARGETS = install-shared-nettle @IF_HOGWEED@ install-shared-hogweed
++@IF_SHARED@UNINSTALL_SHLIBTARGETS = uninstall-shared
+
+ getopt_SOURCES = getopt.c getopt1.c
+ getopt_TARGETS = $(getopt_SOURCES:.c=.$(OBJEXT))
+@@ -32,7 +36,7 @@ internal_TARGETS = $(internal_SOURCES:.c=.$(OBJEXT))
+ TARGETS = aesdata$(EXEEXT) desdata$(EXEEXT) twofishdata$(EXEEXT) \
+ shadata$(EXEEXT) gcmdata$(EXEEXT) \
+ $(getopt_TARGETS) $(internal_TARGETS) \
+- $(LIBTARGETS) @IF_SHARED@ $(SHLIBTARGETS)
++ $(LIBTARGETS) $(SHLIBTARGETS)
+ IMPLICIT_TARGETS = @IF_DLL@ $(LIBNETTLE_FILE) $(LIBHOGWEED_FILE)
+
+ DOCTARGETS = nettle.info nettle.html nettle.pdf
+@@ -302,8 +306,8 @@ hogweed.pc: hogweed.pc.in config.status
+ ./config.status $@
+
+ # Installation
+-install-here: install-info install-headers install-static install-pkgconfig \
+- @IF_SHARED@ install-shared-nettle @IF_HOGWEED@ install-shared-hogweed
++install-here: install-info install-headers install-pkgconfig \
++ $(INSTALL_LIBTARGETS) $(INSTALL_SHLIBTARGETS)
+
+ install-static: $(LIBTARGETS)
+ $(MKDIR_P) $(DESTDIR)$(libdir)
+@@ -369,8 +373,8 @@ install-pkgconfig: $(PKGCONFIG_FILES)
+ done
+
+ # Uninstall
+-uninstall-here: uninstall-info uninstall-headers uninstall-static \
+- uninstall-pkgconfig @IF_SHARED@ uninstall-shared
++uninstall-here: uninstall-info uninstall-headers uninstall-pkgconfig \
++ $(UNINSTALL_LIBTARGETS) $(UNINSTALL_SHLIBTARGETS)
+
+ uninstall-static:
+ for f in $(LIBTARGETS) ; do \
+diff --git a/configure.ac b/configure.ac
+index 6bf2b8b..994ee75 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -43,6 +43,10 @@ AC_ARG_ENABLE(assembler,
+ AC_HELP_STRING([--disable-assembler],[Disable assembler code]),,
+ [enable_assembler=yes])
+
++AC_ARG_ENABLE(static,
++ AC_HELP_STRING([--disable-static], [Do not build any static library]),,
++ [enable_static=yes])
++
+ AC_ARG_ENABLE(shared,
+ AC_HELP_STRING([--disable-shared], [Do not build any shared library]),,
+ [enable_shared=yes])
+@@ -566,6 +570,12 @@ else
+ IF_HOGWEED='#'
+ fi
+
++if test "x$enable_static" = xyes ; then
++ IF_STATIC=''
++else
++ IF_STATIC='#'
++fi
++
+ if test "x$enable_shared" = xyes ; then
+ IF_SHARED=''
+ else
+@@ -573,6 +583,7 @@ else
+ fi
+
+ AC_SUBST(IF_HOGWEED)
++AC_SUBST(IF_STATIC)
+ AC_SUBST(IF_SHARED)
+ AC_SUBST(IF_DLL)
+
+@@ -654,6 +665,7 @@ AC_MSG_NOTICE([summary of build options:
+ Install prefix: ${prefix}
+ Library directory: ${libdir}
+ Compiler: ${CC}
++ Static libraries: ${enable_static}
+ Shared libraries: ${enable_shared}
+ Public key crypto: ${enable_public_key}
+ ])
+--
+1.7.8.6
+
diff --git a/dev-libs/nettle/files/nettle-2.6-shared.patch b/dev-libs/nettle/files/nettle-2.6-shared.patch
new file mode 100644
index 0000000..0af8d74
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-2.6-shared.patch
@@ -0,0 +1,89 @@
+--- nettle-2.6/examples/Makefile.in
++++ nettle-2.6/examples/Makefile.in
+@@ -8,7 +8,7 @@
+ include ../config.make
+
+ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
+-PRE_LDFLAGS = -L..
++PRE_LDFLAGS = -L../.lib
+
+ OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
+ BENCH_LIBS = @BENCH_LIBS@ -lm
+@@ -49,11 +49,11 @@
+ ( cd .. && $(MAKE) nettle-internal.$(OBJEXT))
+
+ # For Solaris and BSD make, we have to use an explicit rule for each executable
+-next-prime$(EXEEXT): next-prime.$(OBJEXT) $(GETOPT_OBJS) ../libhogweed.a
++next-prime$(EXEEXT): next-prime.$(OBJEXT) $(GETOPT_OBJS) ../$(LIBHOGWEED_FORLINK)
+ $(LINK) next-prime.$(OBJEXT) $(GETOPT_OBJS) \
+ -lhogweed -lnettle $(LIBS) -o next-prime$(EXEEXT)
+
+-random-prime$(EXEEXT): random-prime.$(OBJEXT) io.$(OBJEXT) $(GETOPT_OBJS) ../libhogweed.a
++random-prime$(EXEEXT): random-prime.$(OBJEXT) io.$(OBJEXT) $(GETOPT_OBJS) ../$(LIBHOGWEED_FORLINK)
+ $(LINK) random-prime.$(OBJEXT) io.$(OBJEXT) $(GETOPT_OBJS) \
+ -lhogweed -lnettle $(LIBS) -o random-prime$(EXEEXT)
+
+@@ -102,7 +102,7 @@
+ nettle-benchmark$(EXEEXT): $(BENCH_OBJS)
+ $(LINK) $(BENCH_OBJS) -lnettle $(BENCH_LIBS) $(OPENSSL_LIBFLAGS) -o nettle-benchmark$(EXEEXT)
+
+-$(TARGETS) : io.$(OBJEXT) ../libnettle.a
++$(TARGETS) : io.$(OBJEXT) ../$(LIBNETTLE_FORLINK)
+
+
+ check: $(TS_ALL)
+--- nettle-2.6/testsuite/Makefile.in
++++ nettle-2.6/testsuite/Makefile.in
+@@ -8,7 +8,7 @@
+ include ../config.make
+
+ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
+-PRE_LDFLAGS = -L..
++PRE_LDFLAGS = -L../.lib
+
+ TS_NETTLE_SOURCES = aes-test.c arcfour-test.c arctwo-test.c \
+ blowfish-test.c cast128-test.c \
+@@ -93,7 +93,7 @@
+ include $(srcdir)/.test-rules.make
+
+ $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
+- ../libnettle.a @IF_HOGWEED@ ../libhogweed.a
++ ../$(LIBNETTLE_FORLINK) @IF_HOGWEED@ ../$(LIBHOGWEED_FORLINK)
+
+ # For use as, e.g.,
+ #
+--- nettle-2.6/tools/Makefile.in
++++ nettle-2.6/tools/Makefile.in
+@@ -15,7 +15,7 @@
+ include ../config.make
+
+ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
+-PRE_LDFLAGS = -L..
++PRE_LDFLAGS = -L../.lib
+
+ HOGWEED_TARGETS = pkcs1-conv$(EXEEXT)
+ TARGETS = sexp-conv$(EXEEXT) nettle-hash$(EXEEXT) nettle-lfib-stream$(EXEEXT) \
+@@ -34,19 +34,19 @@
+ DISTFILES = $(SOURCES) Makefile.in input.h misc.h output.h parse.h
+
+ sexp_conv_OBJS = $(sexp_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
+-sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../libnettle.a
++sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../$(LIBNETTLE_FORLINK)
+ $(LINK) $(sexp_conv_OBJS) -lnettle $(LIBS) -o $@
+
+-nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../libnettle.a
++nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../$(LIBNETTLE_FORLINK)
+ $(LINK) nettle-lfib-stream.$(OBJEXT) -lnettle $(LIBS) -o $@
+
+ pkcs1_conv_OBJS = $(pkcs1_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
+-pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle.a ../libhogweed.a
++pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../$(LIBNETTLE_FORLINK) ../$(LIBHOGWEED_FORLINK)
+ $(LINK) $(pkcs1_conv_OBJS) -lhogweed -lnettle $(LIBS) -o $@
+
+ # FIXME: Avoid linking with gmp
+ nettle_hash_OBJS = $(nettle_hash_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
+-nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle.a
++nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../$(LIBNETTLE_FORLINK)
+ $(LINK) $(nettle_hash_OBJS) -lnettle $(LIBS) -o $@
+
+
diff --git a/dev-libs/nettle/files/nettle-2.7-shared.patch b/dev-libs/nettle/files/nettle-2.7-shared.patch
new file mode 100644
index 0000000..9b9d6c8
--- /dev/null
+++ b/dev-libs/nettle/files/nettle-2.7-shared.patch
@@ -0,0 +1,77 @@
+--- nettle-2.7/examples/Makefile.in
++++ nettle-2.7/examples/Makefile.in
+@@ -8,7 +8,7 @@
+ include ../config.make
+
+ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
+-PRE_LDFLAGS = -L..
++PRE_LDFLAGS = -L../.lib
+
+ OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
+ BENCH_LIBS = @BENCH_LIBS@ -lm
+@@ -117,8 +117,8 @@
+ -lhogweed -lnettle $(BENCH_LIBS) $(LIBS) $(OPENSSL_LIBFLAGS) \
+ -o hogweed-benchmark$(EXEEXT)
+
+-$(TARGETS) : io.$(OBJEXT) ../libnettle.a
+-$(HOGWEED_TARGETS): ../libhogweed.a
++$(TARGETS) : io.$(OBJEXT) ../$(LIBNETTLE_FORLINK)
++$(HOGWEED_TARGETS): ../$(LIBHOGWEED_FORLINK)
+
+ check: $(TS_ALL)
+ LD_LIBRARY_PATH=../.lib PATH="../.lib:$$PATH" srcdir="$(srcdir)" \
+--- nettle-2.7/testsuite/Makefile.in
++++ nettle-2.7/testsuite/Makefile.in
+@@ -8,7 +8,7 @@
+ include ../config.make
+
+ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
+-PRE_LDFLAGS = -L..
++PRE_LDFLAGS = -L../.lib
+
+ TS_NETTLE_SOURCES = aes-test.c arcfour-test.c arctwo-test.c \
+ blowfish-test.c cast128-test.c \
+@@ -96,7 +96,7 @@
+ include $(srcdir)/.test-rules.make
+
+ $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
+- ../libnettle.a @IF_HOGWEED@ ../libhogweed.a
++ ../$(LIBNETTLE_FORLINK) @IF_HOGWEED@ ../$(LIBHOGWEED_FORLINK)
+
+ # For use as, e.g.,
+ #
+--- nettle-2.7/tools/Makefile.in
++++ nettle-2.7/tools/Makefile.in
+@@ -15,7 +15,7 @@
+ include ../config.make
+
+ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
+-PRE_LDFLAGS = -L..
++PRE_LDFLAGS = -L../.lib
+
+ HOGWEED_TARGETS = pkcs1-conv$(EXEEXT)
+ TARGETS = sexp-conv$(EXEEXT) nettle-hash$(EXEEXT) nettle-lfib-stream$(EXEEXT) \
+@@ -34,19 +34,19 @@
+ DISTFILES = $(SOURCES) Makefile.in input.h misc.h output.h parse.h
+
+ sexp_conv_OBJS = $(sexp_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
+-sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../libnettle.a
++sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../$(LIBNETTLE_FORLINK)
+ $(LINK) $(sexp_conv_OBJS) -lnettle $(LIBS) -o $@
+
+-nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../libnettle.a
++nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../$(LIBNETTLE_FORLINK)
+ $(LINK) nettle-lfib-stream.$(OBJEXT) -lnettle $(LIBS) -o $@
+
+ pkcs1_conv_OBJS = $(pkcs1_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
+-pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle.a ../libhogweed.a
++pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../$(LIBNETTLE_FORLINK) ../$(LIBHOGWEED_FORLINK)
+ $(LINK) $(pkcs1_conv_OBJS) -lhogweed -lnettle $(LIBS) -o $@
+
+ # FIXME: Avoid linking with gmp
+ nettle_hash_OBJS = $(nettle_hash_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
+-nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle.a
++nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../$(LIBNETTLE_FORLINK)
+ $(LINK) $(nettle_hash_OBJS) -lnettle $(LIBS) -o $@
+
+
diff --git a/dev-libs/nettle/metadata.xml b/dev-libs/nettle/metadata.xml
new file mode 100644
index 0000000..d68fe97
--- /dev/null
+++ b/dev-libs/nettle/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>crypto</herd>
+</pkgmetadata>
diff --git a/dev-libs/nettle/nettle-2.7.1-r1.ebuild b/dev-libs/nettle/nettle-2.7.1-r1.ebuild
new file mode 100644
index 0000000..922cac3
--- /dev/null
+++ b/dev-libs/nettle/nettle-2.7.1-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils autotools multilib
+
+DESCRIPTION="Low-level cryptographic library"
+HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
+SRC_URI="http://www.lysator.liu.se/~nisse/archive/${P}.tar.gz"
+
+LICENSE="|| ( LGPL-3 LGPL-2.1 )"
+SLOT="0/4" # subslot = libnettle soname version
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc +gmp neon static-libs test"
+
+DEPEND="gmp? ( dev-libs/gmp )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.7-shared.patch
+
+ sed -e '/CFLAGS=/s: -ggdb3::' \
+ -e 's/solaris\*)/sunldsolaris*)/' \
+ -i configure.ac || die
+
+ # conditionally build tests and examples required by tests
+ use test || sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # --disable-openssl bug #427526
+ econf \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ $(use_enable gmp public-key) \
+ $(use_enable static-libs static) \
+ --disable-openssl \
+ $(use_enable doc documentation) \
+ $(use_enable neon arm-neon)
+}
+
+src_install() {
+ default
+
+ if use doc ; then
+ dohtml nettle.html
+ dodoc nettle.pdf
+ fi
+}