From b531ea2bc41d74341d6a0992112b28c18bdfc1b6 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Mon, 11 Mar 2024 21:59:37 +0000 Subject: net-im/signald: new package, add 0.23.2 --- net-im/signald/Manifest | 1 + net-im/signald/metadata.xml | 11 +++++++ net-im/signald/signald-0.23.2.ebuild | 59 ++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 net-im/signald/Manifest create mode 100644 net-im/signald/metadata.xml create mode 100644 net-im/signald/signald-0.23.2.ebuild (limited to 'net-im') diff --git a/net-im/signald/Manifest b/net-im/signald/Manifest new file mode 100644 index 00000000..de0921c0 --- /dev/null +++ b/net-im/signald/Manifest @@ -0,0 +1 @@ +DIST signald-0.23.2.tar.bz2 266114 BLAKE2B c26ceb0e141562a8f2d379d2840ec6a1493ca5e02266563a22f4f342abe2b2da5bb8d326326e73663c39221b47417767c291289868d53b809a22a1c60cdda8d0 SHA512 4af92a36d703fde05af28ee68c0faa1e389275288c4c414157222853ae2d694dfb8232d5bb264992ff7688aad79fd2532b70181dc927219de41c1e999f4551e4 diff --git a/net-im/signald/metadata.xml b/net-im/signald/metadata.xml new file mode 100644 index 00000000..6314609b --- /dev/null +++ b/net-im/signald/metadata.xml @@ -0,0 +1,11 @@ + + + + + bertrand@jacquin.bzh + Bertrand Jacquin + + + signald/signald + + diff --git a/net-im/signald/signald-0.23.2.ebuild b/net-im/signald/signald-0.23.2.ebuild new file mode 100644 index 00000000..89f518f8 --- /dev/null +++ b/net-im/signald/signald-0.23.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-pkg-2 systemd + +DESCRIPTION="An API for Signal" +HOMEPAGE="https://signald.org/" +SRC_URI="https://gitlab.com/signald/signald/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="${DEPEND} + acct-user/signald + acct-group/signald" +BDEPEND="" + +# FIXME +RESTRICT="network-sandbox" + +src_prepare () { + default + + export GRADLE_OPTS=( + --no-daemon + --no-build-cache + -Djava.io.tmpdir="${T}" + --gradle-user-home="${T}/gradle-homedir" + --project-cache-dir="${T}/gradle-project" + --info + --console=verbose + --stacktrace + ) +} + +src_compile() { + emake VERSION="${PV}" \ + CI_BUILD_REF_NAME="${PV}" \ + CI_COMMIT_SHA="8cfebfe0ab8395221eca94c4c366abb6d7f39314" \ + GRADLE="${S}/gradlew ${GRADLE_OPTS[*]}" +} + +src_install () { + into /opt/signald + dobin build/install/signald/bin/signald + dosym ../../opt/signald/bin/signald /usr/bin/signald + + insinto /opt/signald + doins -r build/install/signald/lib + + dodoc README.md + + # FIXME: https://gitlab.com/signald/signald/-/issues/152 + systemd_dounit src/main/resources/io/finn/signald/signald.service +} -- cgit v1.2.3