summaryrefslogtreecommitdiff
path: root/net-misc/tuba/tuba-0.11.1.ebuild
blob: 30decf597673cf0a8563dc0db6dcc5753ce678f8 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit gnome2-utils meson optfeature vala

MY_P=${P^}
DESCRIPTION="Browse the Fediverse (GTK client)"
HOMEPAGE="
	https://tuba.geopjr.dev/
	https://github.com/GeopJr/Tuba/
"
SRC_URI="
	https://github.com/GeopJr/Tuba/archive/v${PV}.tar.gz
		-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}

LICENSE="GPL-3 CC-BY-SA-4.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="exif gstreamer spell webkit"

DEPEND="
	app-crypt/libsecret[introspection,vala]
	>=dev-libs/glib-2.80.0:2
	dev-libs/icu:=
	>=dev-libs/json-glib-1.4.4[introspection]
	>=dev-libs/libgee-0.8.5:0.8[introspection]
	dev-libs/libxml2:=
	>=gui-libs/gtk-4.19:4[introspection]
	>=gui-libs/libadwaita-1.8:1[introspection,vala]
	>=gui-libs/gtksourceview-5.6.0:5[introspection,vala]
	net-libs/libsoup:3.0[introspection,vala]
	exif? (
		>=media-libs/gexiv2-0.14:=[introspection,vala]
	)
	gstreamer? (
		>=gui-libs/gtk-4.13.4:4[gstreamer,introspection]
		media-libs/gstreamer[introspection]
	)
	spell? (
		app-text/libspelling[vala]
	)
	webkit? (
		net-libs/webkit-gtk:6
	)
"
RDEPEND="
	${DEPEND}
"
BDEPEND="
	$(vala_depend)
	sys-devel/gettext
	virtual/pkgconfig
"

src_configure() {
	local emesonargs=(
		# disable calling updaters (see pkg_post*)
		-Ddistro=true
		$(meson_feature spell spelling)
		# not packaged
		-Dclapper=disabled
		$(meson_feature gstreamer)
		$(meson_feature webkit in-app-browser)
		$(meson_feature exif gexiv2)
		-Dunifiedpush=disabled
	)

	vala_setup
	meson_src_configure
}

src_install() {
	meson_src_install
	dosym dev.geopjr.Tuba /usr/bin/tuba
}

pkg_postinst() {
	optfeature "WebP image support" gui-libs/gdk-pixbuf-loader-webp

	gnome2_schemas_update
	xdg_desktop_database_update
	xdg_icon_cache_update
}

pkg_postrm() {
	gnome2_schemas_update
	xdg_desktop_database_update
	xdg_icon_cache_update
}