diff options
author | Julien Roy <julien@jroy.ca> | 2024-11-19 04:17:12 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2024-11-19 05:42:12 -0500 |
commit | fbd526de05dd406d610aa6fab896af92acc9d947 (patch) | |
tree | 0e551ed3b62b7866274c5aefee22e19779a0c85e | |
parent | net-im/revolt-desktop: fix broken symlink (diff) | |
download | guru-fbd526de05dd406d610aa6fab896af92acc9d947.tar.gz guru-fbd526de05dd406d610aa6fab896af92acc9d947.tar.bz2 guru-fbd526de05dd406d610aa6fab896af92acc9d947.zip |
dev-libs/libsignal-ffi: add 0.62.0
Signed-off-by: Julien Roy <julien@jroy.ca>
-rw-r--r-- | dev-libs/libsignal-ffi/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libsignal-ffi/libsignal-ffi-0.62.0.ebuild | 51 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/libsignal-ffi/Manifest b/dev-libs/libsignal-ffi/Manifest index ac6392800..dd8c6ac3f 100644 --- a/dev-libs/libsignal-ffi/Manifest +++ b/dev-libs/libsignal-ffi/Manifest @@ -4,3 +4,5 @@ DIST libsignal-ffi-0.46.0-vendor.tar.xz 33689364 BLAKE2B 260ce4c19f4f1467a32cc1a DIST libsignal-ffi-0.46.0.gh.tar.gz 1405351 BLAKE2B fc9b4360b42b5ea925f11162736ae759008ec806c267e2bbfc4815ee501216e9669dc880528cd4cd4d6419496b4ffe61959d8af8cef99719878bd3c1eb02c309 SHA512 ca34ec4bb6d2931ba1b72c7c1640cb85e10b4418c305791494ba444afb7b9625c04d46c22eef2d070f66d7883e80f1a845b800ecd1344159877e84c757c78c0b DIST libsignal-ffi-0.51.0-vendor.tar.xz 45705656 BLAKE2B 9cedcb219161b100d0b24319f3b1fd69d9ca6784d94b748bde12e4cb5f1621e6b71cc6b7909db6fc60b2ef45de4ad12992a902c5d86d79e6d4620fb47c0552cb SHA512 633cd8fcafd9b0f0c4454e6a56900c4188b2bd6cd8078517f6ad6ddb26cc07c9b53f5419239956007d2b770132834dd7384bfc65ae5ce552ac2d6e9950777b5c DIST libsignal-ffi-0.51.0.gh.tar.gz 1482490 BLAKE2B c2f27c33e20c3b2701ea7025197371d8ed2f161123ecc58c2f50f5df7ca561f4295ae4142372e6d437d1203d3a148031604f6da69cfc231d8c580ba694be653a SHA512 646cb30451dc08f5659f61ea808d19d07336c7731c2309cb950e5f94e3993221ff7cb8311512c1490bbb09b6378f4cc14dfc2ff0689d6e3e7494f2b8a8769406 +DIST libsignal-ffi-0.62.0-vendor.tar.xz 37206664 BLAKE2B 6e6eb05ece456df5f27d05e39a0aeec5f45b615d915010151d47092f3e271c87b2db681e503086fe31dbabbdbcafbae52d1e4bdeb3acf7b72e825965d49ae6d1 SHA512 2b848fa962204285ba1e51900f6588efd3ab4326c094508a9c4a7cfb0ec47b96abacfe07166ed3cf96d25f09095ce65f87ec3838df52830f666d56d528910193 +DIST libsignal-ffi-0.62.0.gh.tar.gz 1784929 BLAKE2B 5dea79062c1f1342d64a9bbac8fdd7980260c73962a2eef60a61b84ecf3c21a471f6d400b5777c1ee3a297d32c63bfceaa6fa229bd0212d2bd492934470ccb8f SHA512 2a1d171a6bf9f1dfea9fc1fbc4f200c8b9e2ccb30d9d63f29007f252ff79ae7d149ab5707a8e430010da90ad1e3112475bd0eba8efb5cc011d5e3098aa1e26de diff --git a/dev-libs/libsignal-ffi/libsignal-ffi-0.62.0.ebuild b/dev-libs/libsignal-ffi/libsignal-ffi-0.62.0.ebuild new file mode 100644 index 000000000..f189a660c --- /dev/null +++ b/dev-libs/libsignal-ffi/libsignal-ffi-0.62.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.1 + +EAPI=8 + +LLVM_COMPAT=( {18..19} ) +RUST_NEEDS_LLVM=1 + +inherit llvm-r1 cargo + +DESCRIPTION="A C ABI library which exposes Signal protocol logic" +HOMEPAGE="https://github.com/signalapp/libsignal" +SRC_URI=" + https://github.com/signalapp/libsignal/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://jroy.ca/dist/${P}-vendor.tar.xz +" +S="${WORKDIR}/libsignal-${PV}/rust/bridge/ffi" + +LICENSE="AGPL-3" +# Dependent crate licenses +LICENSE+=" AGPL-3 Apache-2.0 BSD-2 BSD ISC MIT Unicode-DFS-2016" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + dev-libs/protobuf + $(llvm_gen_dep 'sys-devel/clang:${LLVM_SLOT}') +" + +pkg_setup() { + llvm-r1_pkg_setup + rust_pkg_setup +} + +src_unpack() { + default + cargo_gen_config + ln -s "${WORKDIR}/vendor/" "${WORKDIR}/libsignal-${PV}/vendor" || die + sed -i "${ECARGO_HOME}/config.toml" \ + -e '/source.crates-io/d' \ + -e '/replace-with = "gentoo"/d' \ + -e '/local-registry = "\/nonexistent"/d' \ + || die + cat vendor/vendor-config.toml >> "${ECARGO_HOME}/config.toml" || die +} + +src_install() { + dolib.a "${WORKDIR}/${P/-ffi/}/$(cargo_target_dir)/${PN/-/_}.a" +} |