blob: 67b9588f6116cb89113ec4627a095bef99ce39d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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="dev-java/openjdk:17"
# FIXME
RESTRICT="network-sandbox"
src_prepare () {
default
export VERSION="${PV}"
export CI_BUILD_REF_NAME="${PV}"
export CI_COMMIT_SHA="8cfebfe0ab8395221eca94c4c366abb6d7f39314"
}
src_compile() {
"${S}/gradlew" \
--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 \
installDist \
|| die "gradle failed"
}
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
}
|