mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 16:41:11 +02:00
dev-libs/nettle: Sync with Gentoo
It's from Gentoo commit 92d3f4da6045ef59eb4fa4ac99e63ef5f4c2fc95.
This commit is contained in:
parent
808474cc3e
commit
3b467914de
@ -1,4 +1,6 @@
|
|||||||
DIST nettle-3.8.1.tar.gz 2406251 BLAKE2B 22b4ec81645b579504356597ba87b637e46285682020c90e03ecaea386ac9b48eaf91ee76ae3b86b6060be355de20c320ab3b74958074ad23fc08ad9ab6a4cbb SHA512 a405da3438d185d96917b03b00abb9ab43e04f58f770f657f716c25d64bb258ee170a71328e74736caa7121f50c0c89d3cc840c1201d2a92cfaf1357d24bdc6a
|
DIST nettle-3.8.1.tar.gz 2406251 BLAKE2B 22b4ec81645b579504356597ba87b637e46285682020c90e03ecaea386ac9b48eaf91ee76ae3b86b6060be355de20c320ab3b74958074ad23fc08ad9ab6a4cbb SHA512 a405da3438d185d96917b03b00abb9ab43e04f58f770f657f716c25d64bb258ee170a71328e74736caa7121f50c0c89d3cc840c1201d2a92cfaf1357d24bdc6a
|
||||||
DIST nettle-3.8.1.tar.gz.sig 374 BLAKE2B e2bfce4aaa1be114fb9bf8724f25db75c69c3b98538df46e9b1428ce615f7db3b9e9f9240d232fddac195db4568439b3f58989c20beca82aa6db79f4956db547 SHA512 978304b1faa5adc3b0d6ea7e9597af6154ad5d6e328913ac19184ece94771fdb2a7d5ce0af535ae8d28cb6ccd94fb3d4ef2613c0356df9e08b5d4c26ea646e09
|
DIST nettle-3.8.1.tar.gz.sig 374 BLAKE2B e2bfce4aaa1be114fb9bf8724f25db75c69c3b98538df46e9b1428ce615f7db3b9e9f9240d232fddac195db4568439b3f58989c20beca82aa6db79f4956db547 SHA512 978304b1faa5adc3b0d6ea7e9597af6154ad5d6e328913ac19184ece94771fdb2a7d5ce0af535ae8d28cb6ccd94fb3d4ef2613c0356df9e08b5d4c26ea646e09
|
||||||
|
DIST nettle-3.9.1.tar.gz 2396741 BLAKE2B e3ceaefa19491e58f26b900beaf8b4e746feb2357c7677f5c050f257f4a23c304773446b6283a42a82cf9640e16522b8a71c47f137759f1df23cdeee4625d142 SHA512 5939c4b43cf9ff6c6272245b85f123c81f8f4e37089fa4f39a00a570016d837f6e706a33226e4bbfc531b02a55b2756ff312461225ed88de338a73069e031ced
|
||||||
|
DIST nettle-3.9.1.tar.gz.sig 374 BLAKE2B 41c37cc0ea649445c7e4bbe2d0e9ab1c6f7bb50000adef2c2ee4828e7efdd2d7c6d823d64209f251cb7d82ce85e73768430a435ee7f1d5a3732e744987918d0c SHA512 fe6f4c9746e7dbc10f61843673de95d2faea209b1caea5c7bf69b81d3f6b2248a4907012b2baf0d65e54682f835cff465482db37615b789017ce0a9e7e267d7d
|
||||||
DIST nettle-3.9.tar.gz 2393838 BLAKE2B 80885fa380de58765155a5d4b209e524f4bd0336156ba6f5189702007438998094df0e4e801370fd0a74251b8cf91f46638b0c0139388c2c2098b1207ed3415c SHA512 5e44f59b37ec1e92345fce0b963151d1f2aabf01b3a197b8d931067c51af4ba025059c6a07f2bcd19b17eb49d6ede98f5c200e58d340959826cda473459d2fba
|
DIST nettle-3.9.tar.gz 2393838 BLAKE2B 80885fa380de58765155a5d4b209e524f4bd0336156ba6f5189702007438998094df0e4e801370fd0a74251b8cf91f46638b0c0139388c2c2098b1207ed3415c SHA512 5e44f59b37ec1e92345fce0b963151d1f2aabf01b3a197b8d931067c51af4ba025059c6a07f2bcd19b17eb49d6ede98f5c200e58d340959826cda473459d2fba
|
||||||
DIST nettle-3.9.tar.gz.sig 374 BLAKE2B 4fb9fbdafd01712db2506e070a64b6821dcc0c3ff3cea83011662ee4cdd5120ed10c6fa7b41d556069fe2d8827a312e94bb3586be845284fa7a7ac75f000a750 SHA512 8cf060e9f8e0dc0a70a7d324cf2366e0fc990fca2d8a1c677e66382f6853f96146fe30ea9b8629030991f4799430c7660ae7867c94167760bb945abb526b5bda
|
DIST nettle-3.9.tar.gz.sig 374 BLAKE2B 4fb9fbdafd01712db2506e070a64b6821dcc0c3ff3cea83011662ee4cdd5120ed10c6fa7b41d556069fe2d8827a312e94bb3586be845284fa7a7ac75f000a750 SHA512 8cf060e9f8e0dc0a70a7d324cf2366e0fc990fca2d8a1c677e66382f6853f96146fe30ea9b8629030991f4799430c7660ae7867c94167760bb945abb526b5bda
|
||||||
|
@ -14,7 +14,7 @@ SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.gz.sig )"
|
|||||||
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
|
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
|
||||||
# Subslot = libnettle - libhogweed soname version
|
# Subslot = libnettle - libhogweed soname version
|
||||||
SLOT="0/8-6"
|
SLOT="0/8-6"
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
IUSE="+asm doc +gmp static-libs cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_x86_aes cpu_flags_x86_sha cpu_flags_x86_pclmul"
|
IUSE="+asm doc +gmp static-libs cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_x86_aes cpu_flags_x86_sha cpu_flags_x86_pclmul"
|
||||||
# The arm64 crypto option controls AES, SHA1, and SHA2 usage.
|
# The arm64 crypto option controls AES, SHA1, and SHA2 usage.
|
||||||
REQUIRED_USE="cpu_flags_arm_aes? ( cpu_flags_arm_sha1 cpu_flags_arm_sha2 )
|
REQUIRED_USE="cpu_flags_arm_aes? ( cpu_flags_arm_sha1 cpu_flags_arm_sha2 )
|
||||||
|
89
sdk_container/src/third_party/portage-stable/dev-libs/nettle/nettle-3.9.1.ebuild
vendored
Normal file
89
sdk_container/src/third_party/portage-stable/dev-libs/nettle/nettle-3.9.1.ebuild
vendored
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/nettle.asc
|
||||||
|
inherit multilib-build multilib-minimal toolchain-funcs verify-sig
|
||||||
|
|
||||||
|
DESCRIPTION="Low-level cryptographic library"
|
||||||
|
HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
|
||||||
|
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||||
|
SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.gz.sig )"
|
||||||
|
|
||||||
|
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
|
||||||
|
# Subslot = libnettle - libhogweed soname version
|
||||||
|
SLOT="0/8-6"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
IUSE="+asm doc +gmp static-libs cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_x86_aes cpu_flags_x86_sha cpu_flags_x86_pclmul"
|
||||||
|
# The arm64 crypto option controls AES, SHA1, and SHA2 usage.
|
||||||
|
REQUIRED_USE="
|
||||||
|
cpu_flags_arm_aes? ( cpu_flags_arm_sha1 cpu_flags_arm_sha2 )
|
||||||
|
cpu_flags_arm_sha1? ( cpu_flags_arm_aes cpu_flags_arm_sha2 )
|
||||||
|
cpu_flags_arm_sha2? ( cpu_flags_arm_aes cpu_flags_arm_sha1 )
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="gmp? ( >=dev-libs/gmp-6.1:=[static-libs?,${MULTILIB_USEDEP}] )"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
sys-devel/m4
|
||||||
|
doc? ( sys-apps/texinfo )
|
||||||
|
verify-sig? ( sec-keys/openpgp-keys-nettle )
|
||||||
|
"
|
||||||
|
|
||||||
|
MULTILIB_WRAPPED_HEADERS=(
|
||||||
|
/usr/include/nettle/version.h
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=()
|
||||||
|
HTML_DOCS=()
|
||||||
|
|
||||||
|
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 configure || die
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
DOCS+=( nettle.pdf )
|
||||||
|
HTML_DOCS+=( nettle.html )
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
||||||
|
|
||||||
|
$(tc-is-static-only && echo --disable-shared)
|
||||||
|
|
||||||
|
# Intrinsics
|
||||||
|
$(use_enable cpu_flags_arm_neon arm-neon)
|
||||||
|
$(use_enable cpu_flags_arm_aes arm64-crypto)
|
||||||
|
$(use_enable cpu_flags_ppc_altivec power-altivec)
|
||||||
|
$(use_enable cpu_flags_x86_aes x86-aesni)
|
||||||
|
$(use_enable cpu_flags_x86_sha x86-sha-ni)
|
||||||
|
$(use_enable cpu_flags_x86_pclmul x86-pclmul)
|
||||||
|
# TODO: PPC crypto flag?
|
||||||
|
--disable-power-crypto-ext
|
||||||
|
# TODO: How do we detect this in ebuilds reliably?
|
||||||
|
--disable-power9
|
||||||
|
$([[ ${CHOST} == *-solaris* ]] && echo '--disable-symbol-versions')
|
||||||
|
# TODO: cpu_flags_s390?
|
||||||
|
--disable-s390x-vf
|
||||||
|
--disable-s390x-msa
|
||||||
|
|
||||||
|
$(use_enable asm assembler)
|
||||||
|
$(multilib_native_use_enable doc documentation)
|
||||||
|
$(use_enable gmp public-key)
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
--disable-fat
|
||||||
|
|
||||||
|
# openssl is just used for benchmarks (bug #427526)
|
||||||
|
--disable-openssl
|
||||||
|
)
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||||
|
}
|
@ -14,7 +14,7 @@ SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.gz.sig )"
|
|||||||
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
|
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
|
||||||
# Subslot = libnettle - libhogweed soname version
|
# Subslot = libnettle - libhogweed soname version
|
||||||
SLOT="0/8-6"
|
SLOT="0/8-6"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
IUSE="+asm doc +gmp static-libs cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_x86_aes cpu_flags_x86_sha cpu_flags_x86_pclmul"
|
IUSE="+asm doc +gmp static-libs cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_x86_aes cpu_flags_x86_sha cpu_flags_x86_pclmul"
|
||||||
# The arm64 crypto option controls AES, SHA1, and SHA2 usage.
|
# The arm64 crypto option controls AES, SHA1, and SHA2 usage.
|
||||||
REQUIRED_USE="
|
REQUIRED_USE="
|
||||||
|
Loading…
x
Reference in New Issue
Block a user