aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2024-05-14 15:01:49 -0400
committerJulien Roy <julien@jroy.ca>2024-05-14 15:01:49 -0400
commitd98d8db0ccb4080edcc6b4c0da525401869bb8fc (patch)
tree69d428103271a2f3667b6f7a8f21c810e67dd6ee /dev-libs
parentdev-python/stdlibs: drop 2022.3.16 (diff)
downloadguru-d98d8db0ccb4080edcc6b4c0da525401869bb8fc.tar.gz
guru-d98d8db0ccb4080edcc6b4c0da525401869bb8fc.tar.bz2
guru-d98d8db0ccb4080edcc6b4c0da525401869bb8fc.zip
dev-libs/libsignal-ffi: add 0.46.0
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libsignal-ffi/Manifest2
-rw-r--r--dev-libs/libsignal-ffi/libsignal-ffi-0.46.0.ebuild50
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/libsignal-ffi/Manifest b/dev-libs/libsignal-ffi/Manifest
index d4183f790..d4f5fb747 100644
--- a/dev-libs/libsignal-ffi/Manifest
+++ b/dev-libs/libsignal-ffi/Manifest
@@ -1,2 +1,4 @@
DIST libsignal-ffi-0.44.0-vendor.tar.xz 33303356 BLAKE2B eee56cf615b8d84a1303fb0a1deb90d3bf12b236285d28b052bd7c2433e55b6f49b9583221f3f1af05b8efa6908179e9e8033cd97d8dcbfb13fdff6fe3035aa0 SHA512 5813be8ecb51e00bc544f5e92335f4fad4a7783254364cbe8a1377e690eac3d348b4f44e5eb3bd603661205135220c9cae321dd167ad5bdfe349618bf6dff77b
DIST libsignal-ffi-0.44.0.gh.tar.gz 1382003 BLAKE2B 9984a430e03b908468e0c773e717deb3a4d9e3997680ebd2a0f536c1377407edbd092f8f81b3bfdef8fff4cd8836f7bddfccd2190610216d283cd8da84ea73fd SHA512 ef5bb03e2ebf37aefb31eb7c2e6c5196d07ca90f056e834a580f6293505789cd56268296a4ebc44b60b7550f2d6995ff1d8e4d27e73e783dedc29d097135d784
+DIST libsignal-ffi-0.46.0-vendor.tar.xz 33689364 BLAKE2B 260ce4c19f4f1467a32cc1a78af5e76def16acb0fa9c0fed74ddef345ec187523c5efa8f1cb49846346fd2d584076f014a6ba52d5c0ed3c8831ffb85c6e09288 SHA512 df5cb098b863c88d7451bb84bb43b5441d39ee9de37aacd7fd388b020c7827567c6adc088ea7a2c675562a0e6e4745e8c3fbebf4dcfc8051fa80378081815943
+DIST libsignal-ffi-0.46.0.gh.tar.gz 1405351 BLAKE2B fc9b4360b42b5ea925f11162736ae759008ec806c267e2bbfc4815ee501216e9669dc880528cd4cd4d6419496b4ffe61959d8af8cef99719878bd3c1eb02c309 SHA512 ca34ec4bb6d2931ba1b72c7c1640cb85e10b4418c305791494ba444afb7b9625c04d46c22eef2d070f66d7883e80f1a845b800ecd1344159877e84c757c78c0b
diff --git a/dev-libs/libsignal-ffi/libsignal-ffi-0.46.0.ebuild b/dev-libs/libsignal-ffi/libsignal-ffi-0.46.0.ebuild
new file mode 100644
index 000000000..2fdf4530e
--- /dev/null
+++ b/dev-libs/libsignal-ffi/libsignal-ffi-0.46.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.13.1
+
+EAPI=8
+
+CRATES=" "
+
+inherit 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"
+IUSE="debug"
+
+BDEPEND="
+ dev-libs/protobuf
+ sys-devel/clang
+"
+
+src_unpack() {
+ default
+ cargo_gen_config
+ ln -s "${WORKDIR}/vendor/" "${WORKDIR}/libsignal-${PV}/vendor" || die
+ sed -i "${ECARGO_HOME}/config" -e '/source.crates-io/d' || die
+ sed -i "${ECARGO_HOME}/config" -e '/replace-with = "gentoo"/d' || die
+ sed -i "${ECARGO_HOME}/config" -e '/local-registry = "\/nonexistent"/d' || die
+ cat "${WORKDIR}/vendor/vendor-config.toml" >> "${ECARGO_HOME}/config" || die
+}
+
+src_install() {
+ if use debug; then
+ TARGET=debug
+ else
+ TARGET=release
+ fi
+
+ dolib.a "${WORKDIR}/${P/-ffi/}/target/${TARGET}/${PN/-/_}.a"
+}