summaryrefslogtreecommitdiff
path: root/net-misc/warpinator/warpinator-1.8.3.ebuild
blob: 23eeb6d67ce5d4a4550ec8f5ed83601b7901a8e8 (plain)
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
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Share files across the LAN"
HOMEPAGE="https://github.com/linuxmint/warpinator"
SRC_URI="https://github.com/linuxmint/${PN}/archive/refs/tags/master.lmde6.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

inherit meson gnome2-utils xdg

DEPEND="
	dev-libs/gobject-introspection
	dev-python/cryptography
	dev-python/ifaddr
	dev-python/netaddr
	dev-python/netifaces
	dev-python/pynacl
	dev-python/setproctitle
	>=dev-python/python3-xapp-1.6.0
"
RDEPEND="${DEPEND}"
BDEPEND="
	>=dev-build/meson-0.45.0
"

S="${WORKDIR}/${PN}-master.lmde6"

PATCHES=(
	"${FILESDIR}/${PN}-bundled-grpcio-cython3.patch"
	"${FILESDIR}/${PN}-system-paths.patch"
	"${FILESDIR}/${PN}-dbus-fallback.patch"
)

src_configure() {
	local emesonargs=(
		-Dinclude-firewall-mod=true
		-Dbundle-zeroconf=true
		-Dbundle-landlock=true
		-Dbundle-grpc=true
	)
	meson_src_configure
}

pkg_postinst() {
	xdg_pkg_postinst
	gnome2_schemas_update
}

pkg_postrm() {
	xdg_pkg_postinst
	gnome2_schemas_update
}