dev-libs/libsignal-ffi: new package, add 0.48.0
This commit is contained in:
parent
9768bcfe7f
commit
ea0b89f6d8
2
dev-libs/libsignal-ffi/Manifest
Normal file
2
dev-libs/libsignal-ffi/Manifest
Normal file
|
@ -0,0 +1,2 @@
|
|||
DIST libsignal-ffi-0.48.0-vendor.tar.xz 44504212 BLAKE2B dc95c235e2bd6111139b607c58cd51f7d7dc44bb127204e7f074c880a17ba61c020932883520e4cbe7ed2f952b0c535e1b49de92ca6f6e1dec190e0f9228a783 SHA512 4b08f208d21bdc7a33169ab4b857c64209f936b381a61a10c97b7529259f6e4bff2620bb13becf8fd538fdbd77623c26ee234b4899a5fadf42bf70a0fc587cda
|
||||
DIST libsignal-ffi-0.48.0.gh.tar.gz 1459375 BLAKE2B 117e41cb9227bac704d57f6c5df1115287a5e8d0b0709ef3601667b7eb8b70a0707c685ad5f4d216e8ac5089853c85a97f03b8cb7b7be17678abe27924e6798c SHA512 5b3c8f001121ac40d6343fafdb273b146658841e5ba6168b8ee99452cf8e484685625492325c25f6a98b8441d28388012817de8de0dd0d682c1dbdbde227e391
|
50
dev-libs/libsignal-ffi/libsignal-ffi-0.48.0.ebuild
Normal file
50
dev-libs/libsignal-ffi/libsignal-ffi-0.48.0.ebuild
Normal file
|
@ -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://herbizarre.swordarmor.fr/garbage/${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"
|
||||
}
|
13
dev-libs/libsignal-ffi/metadata.xml
Normal file
13
dev-libs/libsignal-ffi/metadata.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Julien Roy</name>
|
||||
<email>julien@jroy.ca</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/signalapp/libsignal/issues</bugs-to>
|
||||
<changelog>https://github.com/signalapp/libsignal/releases</changelog>
|
||||
<remote-id type="github">signalapp/libsignal</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in a new issue