diff options
Diffstat (limited to 'dev-libs/nettle')
-rw-r--r-- | dev-libs/nettle/Manifest | 6 | ||||
-rw-r--r-- | dev-libs/nettle/metadata.xml | 3 | ||||
-rw-r--r-- | dev-libs/nettle/nettle-3.5.1-r1.ebuild | 63 | ||||
-rw-r--r-- | dev-libs/nettle/nettle-3.6-r2.ebuild (renamed from dev-libs/nettle/nettle-3.5.1.ebuild) | 9 |
4 files changed, 75 insertions, 6 deletions
diff --git a/dev-libs/nettle/Manifest b/dev-libs/nettle/Manifest index 1af8d115f846..f786e2999f62 100644 --- a/dev-libs/nettle/Manifest +++ b/dev-libs/nettle/Manifest @@ -1,6 +1,8 @@ AUX nettle-3.4.1-build.patch 1598 BLAKE2B ce10cb8a59bf8e2d1dea57ceff5bb2fcf2da1320034672abed770fcce54466704a6b3820a135d04d2d52881cb0d701bdd252d388bcc1ddd80b508fb3828cd237 SHA512 6b95ec112471895d3fb7c7c2c82517d113c0da604285f19b4d14ef3e4bfda6b5d32b869b97a0510c8a9f8c5828c410d99d67bba09f57a14115a6a7ed0d677b3a DIST nettle-3.4.1.tar.gz 1947053 BLAKE2B 354318c46c28aeaaca611abe70298024ec12ff70aed53c741e43c1b5373361e5cffb03df7b8e86ef103a3b7770b2b4fe39fbca00b128f2b7ec810b3a4d9fd0fd SHA512 26aefbbe9927e90e28f271e56d2ba876611831222d0e1e1a58bdb75bbd50934fcd84418a4fe47b845f557e60a9786a72a4de2676c930447b104f2256aca7a54f DIST nettle-3.5.1.tar.gz 1989593 BLAKE2B 40e527a4cc541674acc39072f2ebbab4b6ed1b043687d88c776ce9c58374538b111d282e0eea5424059260b0876c5cf01f97470c850e082c167b05a57e6c591a SHA512 f738121b9091cbe79435fb5d46b45cf6f10912320c233829356908127bab1cac6946ca56e022a832380c44f2c10f21d2feef64cb0f4f41e3da4a681dc0131784 +DIST nettle-3.6.tar.gz 2288173 BLAKE2B 45e08832e9c337f10d958956545c77f521b747b8abca56ce40c755adf352bdc2a79584b1e1c0e50f5ede0ac54794aabd6883601c53593b965aada744502789db SHA512 2471af875e51327af61af8bda53cd9c3adc27b6e32592a4b5b10b3ec60999ebf771ab9c54c747b0bade4b3b5a717e77fdbdb53699dd9e8a9ed4eee07f46aed51 EBUILD nettle-3.4.1.ebuild 1790 BLAKE2B 556d39f46ddc010db277004599bc6ac59ee28192b05eb5cc46ca0c1d12349f9255a2548705000e6728a9c9739556665a52800ad5e8f2424c538f28124c0286ff SHA512 b3152d8e5f2569afad23587361ae302846d357f02956b9222642b1f9ae3267b52d6ef0ecf43ae53c0269c0c1cb677d9daf04127be88805417eb9d77eda230bc6 -EBUILD nettle-3.5.1.ebuild 1695 BLAKE2B ecfc6dc0dc6acf11b059abf3c88048365cd7d3712960f9cdf74ac83ec2b1818adb6e4fe852d27644515e5b7a0b06773671e15a6671cd5d193dfbee347fde3d98 SHA512 f175c4c4e80fecf4457625e97b49ce4c3dc244319a60d50f3e6eb5052dc64a5ddd6aceebb0b7aa01c96b2706149111b2e94ff44b413f0789caee14c4b52cb4b2 -MISC metadata.xml 347 BLAKE2B 0a9102d605396d04414dc017572cee25f9088959b268f0181c09f345e0b0c835242c64ecbd83cbdacc3c6014ed7de418ee486c1f22a59a4a698216c3a364bb5e SHA512 c4f9b5c16edb448e4e9ebf49bbe89d1f84afad45b68d19b3d5339aa11ac118f508c62c7fc7cb264868be28a3ce2f3785423b4a52b526d8dd20f2fdb9ab93617c +EBUILD nettle-3.5.1-r1.ebuild 1751 BLAKE2B a6bb47e9a8df3e48403a94e801491b833072bdacbcb6ae84ee806854ea947424452ea16dfebabc5023a7ab7ab72678b8c704f4a003e0bcd420109dc2853cc7ba SHA512 b2f8977f00c4bfa283336978c3376b9fd30b2b19524f97d279ef2109bfdd2354610f6c7872f6c85a366cb198b9b05df66b345d5f8bf10399ac8f6d74a4b0e07a +EBUILD nettle-3.6-r2.ebuild 1775 BLAKE2B cd4d7bbe377f3f58dcb55de91bf8d0540d983a437f6564ea365d4d4e9538ca9592673ee7aa474cddf1572d14a7d66a82d168f2033ed1119bd18320d8dc3a5823 SHA512 06e9d0277d74d771b9b18db755c459878199f219444f83f27d4132aeaed9a254fbcee4fc95f2f356349492d6f98d3e5a967ac021a837b937cbf02e75e8b1eb06 +MISC metadata.xml 460 BLAKE2B 66da3978fdcd6fb67c2d345578e78768795254f4bb9a8b1ea8236ce99a0516cb2206f77280b5bfc23b98acbbee92bd96c32be12776fd83faa1a670fd10b3f648 SHA512 6a08cf01475e5b46f05ec3fd7d2186b7210501769d2d06780b5d078e1db39c23fd564a8a1c671362eb359c1a88759fb5479cbe757e832507aff81296fd739972 diff --git a/dev-libs/nettle/metadata.xml b/dev-libs/nettle/metadata.xml index d67991097866..1762d3327574 100644 --- a/dev-libs/nettle/metadata.xml +++ b/dev-libs/nettle/metadata.xml @@ -8,4 +8,7 @@ <upstream> <remote-id type="cpe">cpe:/a:nettle_project:nettle</remote-id> </upstream> + <use> + <flag name="asm">Support assembly hand optimized crypto functions (i.e. faster run time)</flag> + </use> </pkgmetadata> diff --git a/dev-libs/nettle/nettle-3.5.1-r1.ebuild b/dev-libs/nettle/nettle-3.5.1-r1.ebuild new file mode 100644 index 000000000000..a0e936df6498 --- /dev/null +++ b/dev-libs/nettle/nettle-3.5.1-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multilib-build multilib-minimal multilib toolchain-funcs + +DESCRIPTION="Low-level cryptographic library" +HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="|| ( LGPL-3 LGPL-2.1 )" +SLOT="0/7" # subslot = libnettle soname version +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="+asm doc +gmp static-libs test cpu_flags_x86_aes cpu_flags_arm_neon cpu_flags_x86_sha" +RESTRICT="!test? ( test )" + +DEPEND="gmp? ( >=dev-libs/gmp-6.0:0=[static-libs?,${MULTILIB_USEDEP}] )" +RDEPEND="${DEPEND}" + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/nettle/version.h +) + +DOCS=() +HTML_DOCS=() + +pkg_setup() { + use doc && DOCS+=( + nettle.pdf + ) + use doc && HTML_DOCS+=( + nettle.html + ) +} + +src_prepare() { + default + + # I do not see in config.sub reference to sunldsolaris. + # if someone complains readd + # -e 's/solaris\*)/sunldsolaris*)/' \ + sed -e '/CFLAGS=/s: -ggdb3::' \ + -i configure.ac || die + + eautoreconf +} + +multilib_src_configure() { + # --disable-openssl bug #427526 + ECONF_SOURCE="${S}" econf \ + $(tc-is-static-only && echo --disable-shared) \ + $(use_enable cpu_flags_x86_aes x86-aesni) \ + $(use_enable cpu_flags_x86_sha x86-sha-ni) \ + $(use_enable asm assembler) \ + $(use_enable doc documentation) \ + $(use_enable gmp public-key) \ + $(use_enable cpu_flags_arm_neon arm-neon) \ + $(use_enable static-libs static) \ + --disable-fat \ + --disable-openssl \ + --libdir="${EPREFIX}"/usr/$(get_libdir) +} diff --git a/dev-libs/nettle/nettle-3.5.1.ebuild b/dev-libs/nettle/nettle-3.6-r2.ebuild index 47028eee5626..8bac0c13512c 100644 --- a/dev-libs/nettle/nettle-3.5.1.ebuild +++ b/dev-libs/nettle/nettle-3.6-r2.ebuild @@ -10,12 +10,12 @@ HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/" SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" LICENSE="|| ( LGPL-3 LGPL-2.1 )" -SLOT="0/7" # subslot = libnettle soname version +SLOT="0/8-6" # subslot = libnettle - libhogweed soname version KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes cpu_flags_x86_sha" +IUSE="+asm doc +gmp static-libs test cpu_flags_x86_aes cpu_flags_arm_neon cpu_flags_x86_sha" RESTRICT="!test? ( test )" -DEPEND="gmp? ( >=dev-libs/gmp-6.0:0=[static-libs?,${MULTILIB_USEDEP}] )" +DEPEND="gmp? ( >=dev-libs/gmp-6.1:0=[static-libs?,${MULTILIB_USEDEP}] )" RDEPEND="${DEPEND}" MULTILIB_WRAPPED_HEADERS=( @@ -52,9 +52,10 @@ multilib_src_configure() { $(tc-is-static-only && echo --disable-shared) \ $(use_enable cpu_flags_x86_aes x86-aesni) \ $(use_enable cpu_flags_x86_sha x86-sha-ni) \ + $(use_enable asm assembler) \ $(use_enable doc documentation) \ $(use_enable gmp public-key) \ - $(use_enable neon arm-neon) \ + $(use_enable cpu_flags_arm_neon arm-neon) \ $(use_enable static-libs static) \ --disable-fat \ --disable-openssl \ |