diff options
author | Sam James <sam@gentoo.org> | 2024-04-01 00:48:31 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-04-01 04:46:12 +0100 |
commit | acea0db754634934fdd2632b6b47fbcddd617d1d (patch) | |
tree | 9eebc1c03829832d5ca0f29f0498f4cbc646220b /net-libs/rustls-ffi | |
parent | dev-python/GitPython: Bump to 3.1.43 (diff) | |
download | gentoo-acea0db754634934fdd2632b6b47fbcddd617d1d.tar.gz gentoo-acea0db754634934fdd2632b6b47fbcddd617d1d.tar.bz2 gentoo-acea0db754634934fdd2632b6b47fbcddd617d1d.zip |
net-libs/rustls-ffi: add 0.12.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/rustls-ffi')
-rw-r--r-- | net-libs/rustls-ffi/Manifest | 1 | ||||
-rw-r--r-- | net-libs/rustls-ffi/rustls-ffi-0.12.2.ebuild | 110 |
2 files changed, 111 insertions, 0 deletions
diff --git a/net-libs/rustls-ffi/Manifest b/net-libs/rustls-ffi/Manifest index c5bc2e5a2a12..db578c155c48 100644 --- a/net-libs/rustls-ffi/Manifest +++ b/net-libs/rustls-ffi/Manifest @@ -55,6 +55,7 @@ DIST rustls-0.21.0.crate 275213 BLAKE2B 171a60d69ac0d56ed269fdf588a42dfb64f0b8ac DIST rustls-0.22.0.crate 324340 BLAKE2B 5271032969b2b57fd180bacf01a4366d8634fcf1026c569fdda88b51235555414ede32abca2f1510ca32ffa28f7bc013c9c1c2487d1889de8252e1b55ee8298a SHA512 224c5ab84f647fa5416507c790bfa1c33f80219f28ba114816c3674885268f4c412fdcb00063e4253bf552c38f1e9156ea98f2f1234e0dcc16600f6dba4411a0 DIST rustls-ffi-0.10.0.tar.gz 95815 BLAKE2B ec776649b18a0cfae1249d5824a4b043d3a3b854ee4571a11ffb4828e107d1c5afb09cb84f0f9074c80d683b083b315301958fd806dc00b549a080707f84ad14 SHA512 f9208c830f1963484e8f12f81457c7beddd0ce8679988b7ff2356240cd753c8948b6566ba603fc6cf707c5eef26cc74316bdb3f71cfa060cf3228f5cd813eeb3 DIST rustls-ffi-0.12.1.tar.gz 107794 BLAKE2B 0fddfcb5980811a1b80db2bfb578132d627ad8b47f1abeeaf052a7135f43b2e29888aa6aaa89ccd315299b73b147126cd67be41b104b1911d06c8324dee0b0e9 SHA512 bf188492ad14e32b1c26873fe5c078a5b24067a0e00e675b7b107f616ab8e3316b7b0e4d0c5646b9407bd171c2e16e97a9bb2fb1a335212aa72fe07045da6aab +DIST rustls-ffi-0.12.2.tar.gz 107905 BLAKE2B 8aadfd5d0e0a6372aef7646d52ab4b1690e2128ce2e7927657a631b32c5e291bcfe4fc6dba51b7ae17d700a78d1b447b50576aa09aca2e03020622f8ba72fc3e SHA512 30ff92a9faa1c7e683258c5910e726bb793d77dc1dcc14546780c36762fa6d3fbb49cb39f75258221fa01316cf6705de982edfc77c40ca8b37affd7cc64f7019 DIST rustls-ffi-0.9.1.tar.gz 80976 BLAKE2B cf9ad6a5666be19d882e0bd3575b2f7bc1e8dec891a7c192c0fc7bcff48801cc7af1c73d005d32c5801514ce852dbee54f74ea0a16110638184bed9fd483740c SHA512 cbced119a486a28aa437da09eda841b00a8bee47d2aadf4cf39601baaa8481b2600dd554d5a6e219374690c2c9d25f0d4ed253b9401ba5ac9ecfb6947625a38d DIST rustls-pemfile-0.2.1.crate 14278 BLAKE2B 2cd27153a5db80581e43009c0ac21209f57341e584c8f11789bc9e9ac71d6cc456c60554bd97176c7567ad67896b74acc6372c62973a3ff1e965bd1d0dd52bfa SHA512 1c03cd74314bc0bffda4803f6e7692e53e3cf67a6bd30e6c96a861d8c118363b0e871a9e28c4e1a4d4f1fcdf98f3a5af3be5f0250f3653836429a27645a10c80 DIST rustls-pemfile-2.1.1.crate 26161 BLAKE2B d761c8c0944b4697336ba389e379e9224471d64e61ec3499427615ba99f9eeb38a47b2bf23579bd9445c28b14811028a81fde89308d1552d805f49bda18833a0 SHA512 5acffbcfa1dc50c20f290f2546caf669334de0ade8153cdfc7f8259ec9076808d2d47ce602829ad1369d546d21347965250cd2c4e46e835f29111d11f38aafde diff --git a/net-libs/rustls-ffi/rustls-ffi-0.12.2.ebuild b/net-libs/rustls-ffi/rustls-ffi-0.12.2.ebuild new file mode 100644 index 000000000000..a09c7412e487 --- /dev/null +++ b/net-libs/rustls-ffi/rustls-ffi-0.12.2.ebuild @@ -0,0 +1,110 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + aho-corasick@1.1.1 + base64@0.21.5 + cc@1.0.83 + cfg-if@1.0.0 + getrandom@0.2.11 + libc@0.2.153 + log@0.4.21 + memchr@2.6.4 + regex-automata@0.3.9 + regex-syntax@0.7.5 + regex@1.9.6 + ring@0.17.5 + rustls-pemfile@2.1.1 + rustls-pki-types@1.3.1 + rustls-webpki@0.102.0 + rustls@0.22.0 + rustversion@1.0.14 + spin@0.9.8 + subtle@2.5.0 + untrusted@0.9.0 + wasi@0.11.0+wasi-snapshot-preview1 + windows-sys@0.48.0 + windows-targets@0.48.5 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.48.5 + zeroize@1.7.0 +" + +inherit cargo flag-o-matic multilib-minimal rust-toolchain + +DESCRIPTION="C-to-rustls bindings" +HOMEPAGE="https://github.com/rustls/rustls-ffi" +SRC_URI="https://github.com/rustls/rustls-ffi/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" ${CARGO_CRATE_URIS}" + +LICENSE="|| ( Apache-2.0 MIT ISC )" +# Dependent crate licenses +LICENSE+=" BSD ISC MIT" +# For Ring (see its LICENSE) +LICENSE+=" ISC openssl SSLeay MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64" + +BDEPEND="dev-util/cargo-c" + +QA_FLAGS_IGNORED="usr/lib.*/librustls.*" + +src_prepare() { + default + + multilib_copy_sources +} + +src_configure() { + # bug #927231 + filter-lto + + # textrels in ring + # Hopefully fixed with https://github.com/rustls/rustls-ffi/pull/389 + export RUSTFLAGS="${RUSTFLAGS} -C link-arg=-Wl,-z,notext" + + multilib-minimal_src_configure +} + +multilib_src_compile() { + local cargoargs=( + --library-type=cdylib + --prefix="${EPREFIX}"/usr + --libdir="${EPREFIX}/usr/$(get_libdir)" + --target="$(rust_abi)" + $(usev !debug '--release') + ) + + cargo cbuild "${cargoargs[@]}" || die "cargo cbuild failed" +} + +multilib_src_test() { + local cargoargs=( + --prefix="${EPREFIX}"/usr + --libdir="${EPREFIX}/usr/$(get_libdir)" + --target="$(rust_abi)" + $(usex debug '--debug' '--release') + ) + + cargo ctest "${cargoargs[@]}" || die "cargo ctest failed" +} + +multilib_src_install() { + local cargoargs=( + --library-type=cdylib + --prefix="${EPREFIX}"/usr + --libdir="${EPREFIX}/usr/$(get_libdir)" + --target="$(rust_abi)" + --destdir="${D}" + $(usex debug '--debug' '--release') + ) + + cargo cinstall "${cargoargs[@]}" || die "cargo cinstall failed" +} |