mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 23:16:58 +02:00
dev-libs/nettle: Sync with Gentoo
It's from Gentoo commit 8699b7cb457359c12fd881b161d7dd9583b57145.
This commit is contained in:
parent
299769f033
commit
b46e7179c6
@ -1,2 +1,4 @@
|
||||
DIST nettle-3.10.1.tar.gz 2643267 BLAKE2B da2e82e647904e855a0e0bd1efee3b610b33de1a722f5d652deeca083d1983c5ee66754233a0917d3bb91bb5a527a3e80cd5fe18f7c25986076b2388910995b5 SHA512 e8673bbcde9cde859ccae75ed6c9c30591e68a995a7c6d724106cfd67a5a5bd45b3468d742443b6565628849d0fd29505a28ca5ee4e89dd13197cdb51429f96c
|
||||
DIST nettle-3.10.1.tar.gz.sig 374 BLAKE2B 1264636002893e80e3001035ce2f17a3e0077405b74050752f1901abc44c882d2be643823d3476282a8dc78bfe3f19cda75d86e00f58dbb546e4347c59cc0963 SHA512 d074a921df31070a6e6562a9f7e213e67b8e6ce331e2683e8180f387aca92058a5fe8610800817a0aa5098b47176dfcb42b52d617648c84cc6262a09ef557eb8
|
||||
DIST nettle-3.10.2.tar.gz 2644644 BLAKE2B 2bcd54c97d793238a9c6527f0ba4851dd9e5b53c80abc1ed012ef53e9dbed1fc47c474ca7c29a2c0a989830e45f85eb61db4752dd8b8487cffc8559f43788c89 SHA512 bf37ddd7dca8e78488da2a5286dcf16761d527d620572b42f2ad27bb8ee8c12999d92b0272e06f53766e7155a3f4a1ab7ad9c4b1c3caec47c031878b6b1772fb
|
||||
DIST nettle-3.10.2.tar.gz.sig 374 BLAKE2B 4060a6c7910c69be185191443c400135882171cc6679f2f9fcc9efd8e8d5ab8bca967085352f14096416479d190d1d27a1343d72e0436344574a88158d825d7d SHA512 82d82ba83b65b191d0ad9af24603df8dbc1b4172118618be66c267e51bad470d902e7194de1948e3570f144e0021afb7ddfb81badbe71fd57999d3d3227f0d39
|
||||
|
@ -11,7 +11,7 @@ HOMEPAGE="https://www.lysator.liu.se/~nisse/nettle/ https://git.lysator.liu.se/n
|
||||
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 )"
|
||||
LICENSE="|| ( GPL-2+ LGPL-3+ )"
|
||||
# Subslot = libnettle - libhogweed soname version
|
||||
SLOT="0/8-6"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
|
94
sdk_container/src/third_party/portage-stable/dev-libs/nettle/nettle-3.10.2.ebuild
vendored
Normal file
94
sdk_container/src/third_party/portage-stable/dev-libs/nettle/nettle-3.10.2.ebuild
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/nettle.asc
|
||||
inherit multilib-build multilib-minimal toolchain-funcs verify-sig flag-o-matic
|
||||
|
||||
DESCRIPTION="Low-level cryptographic library"
|
||||
HOMEPAGE="https://www.lysator.liu.se/~nisse/nettle/ https://git.lysator.liu.se/nettle/nettle"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||
SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.gz.sig )"
|
||||
|
||||
LICENSE="|| ( GPL-2+ LGPL-3+ )"
|
||||
# Subslot = libnettle - libhogweed soname version
|
||||
SLOT="0/8-6"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~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_ppc_vsx2 cpu_flags_ppc_vsx3 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-20250628 )
|
||||
"
|
||||
|
||||
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() {
|
||||
# We don't want to run Valgrind within ebuilds, it often gets
|
||||
# confused by sandbox, etc.
|
||||
export nettle_cv_prog_valgrind=no
|
||||
|
||||
use elibc_musl && append-cppflags -D__GNU_LIBRARY__ #945970
|
||||
|
||||
# TODO: USE=debug w/ --enable-extra-asserts?
|
||||
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_ppc_vsx2 power-crypto-ext)
|
||||
$(use_enable cpu_flags_ppc_vsx3 power9)
|
||||
$(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)
|
||||
$([[ ${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[@]}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user