summaryrefslogtreecommitdiff
path: root/net-libs/rustls-ffi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-01 08:13:46 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-01 08:13:46 +0100
commit48e7f15d37baf7167041b2ab0e2a19a703e5c99f (patch)
treea4ae631f4b109859ab021cfc9d048e9a81a252ce /net-libs/rustls-ffi
parentde6c40224da664deb650b25efd11f41044602c76 (diff)
gentoo auto-resync : 01:04:2024 - 08:13:46
Diffstat (limited to 'net-libs/rustls-ffi')
-rw-r--r--net-libs/rustls-ffi/Manifest2
-rw-r--r--net-libs/rustls-ffi/rustls-ffi-0.12.2.ebuild110
2 files changed, 112 insertions, 0 deletions
diff --git a/net-libs/rustls-ffi/Manifest b/net-libs/rustls-ffi/Manifest
index 86354f487159..bd95f87c9d04 100644
--- a/net-libs/rustls-ffi/Manifest
+++ b/net-libs/rustls-ffi/Manifest
@@ -59,6 +59,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
@@ -123,5 +124,6 @@ DIST winnow-0.4.1.crate 138177 BLAKE2B 9fb55dc5dbca2250c5921aebc42fd8dff7da6fc70
DIST zeroize-1.7.0.crate 19039 BLAKE2B 2f94a5025f409bd2b96a456d2f78a34c6b05b5554abe7ef3fad2a55a8fcff8a6a1b971be660aa4c2954ab7d6e89bebc431036e349edef74711292f9f64b1dbae SHA512 9d31e3e76e8c861309a3579c21f6da5fd6b056c7d7a350427445a1a832e8827204804783f7f9b808acaa2148efef883d9078bf84943b1db55526bba5bf5a2756
EBUILD rustls-ffi-0.10.0-r1.ebuild 2429 BLAKE2B 834e8ae3ba8886ee2170c8e5a62f9c882f3b60f8204397d598de3b95d4b2edd324013d4810d3d8ff4abaf5c09e8542d320f01028c48bf074425fb00edba91d06 SHA512 677d5ace039db50d3581a34eb3fc2e2c9f3b636c2993b804cda37a102cda02198bd8a45b5bf763bc3206dc4ca0ecbe4bd1900d53c1db92de9264bd92a081aa1f
EBUILD rustls-ffi-0.12.1-r2.ebuild 2413 BLAKE2B 7c5e20bd8c82ff986eb12c3cbcdb5e64c5cd44d7007e060e30afd68723ebe4a05cc4b77a6ebcd6c31d72ce26b406992c64adffab2ea00197150d74610b4916b7 SHA512 0c6886c70a6118a9cba72d128a77951b7abe0244a17562d38918a0150bd64e9f5eb916418218dab8d9385ae99c454402db476f1140e4a7660e17212e995f6c87
+EBUILD rustls-ffi-0.12.2.ebuild 2350 BLAKE2B c687a42ed365c1ef386e9cfd83339fe03137c1bc3058718eff641fbe56b1ab52f6a83c2e89eac91dd69bd387faf266e50ac22fceac4903d853a346e3fdd4f1b1 SHA512 7a931f98a44b37667a8a1525c3135e7c9e934f38f4a54ebf3cdcbdb1f5a5d4a2fd5a2d188f747433259a7d507b0d828d40e4a6522250928bdecc16fc5bb4aab8
EBUILD rustls-ffi-0.9.1-r1.ebuild 2747 BLAKE2B f73c676004c7a4869ada531391b2dd442bc1541259465e3171b8a2f478dbc737d91d7446b52cc6a44ce7716266c7eca0fb5f7cabab4aedab9b8771b6510aab84 SHA512 3fa80f3657fcb1ef2bb6dc8976469c87ac101f616e41626469270d750b1fd9e8fbe67522d90ba46f5ee07f3cd88854d4feff871b8024d2bea9430616b65de9b3
MISC metadata.xml 322 BLAKE2B 8c95cd2d631dfe96e34412bbc1c12bce2f13f631840642f2bd52384b554b0c1eeb03e2b959921ff2cf0f15f9cdb2ba37acc016549f84c47ca6e7ad857cf3e7df SHA512 08c35857ba4e7e85d619e94b5e6f0a3203faced5f83fb7bdb63d8e25c793bfb8af1b5e1f252613fa8e60e45e3e1a5e092b64f96b8ac2156c9f336bab7a4d6ae1
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"
+}