blob: 949a1dfe1638c230bfa443edf66bdd3a2992f9ed (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..14} )
inherit meson python-any-r1 xdg
DESCRIPTION="Modern, beautiful IRC client written in GTK+ 3"
HOMEPAGE="https://github.com/SrainApp/srain"
SRC_URI="https://github.com/SrainApp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="appindicator doc man"
RDEPEND="
app-crypt/libsecret
dev-libs/glib:2
dev-libs/libconfig:=
dev-libs/openssl:=
net-libs/libsoup:3.0
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
appindicator? ( dev-libs/libayatana-appindicator )
"
DEPEND="${RDEPEND}"
BDEPEND="
doc? ( $(python_gen_any_dep '
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinxnotes-mock[${PYTHON_USEDEP}]
' ) )
man? ( $(python_gen_any_dep '
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinxnotes-mock[${PYTHON_USEDEP}]
' ) )
sys-devel/gettext
virtual/pkgconfig
${PYTHON_DEPS}
"
python_check_deps() {
if use doc || use man; then
python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" &&
python_has_version "dev-python/sphinxnotes-mock[${PYTHON_USEDEP}]"
fi
}
src_prepare() {
default
sed "s/\('doc'\), meson.project_name()/\1, '${PF}'/" \
-i meson.build || die
}
src_configure() {
local -a doc_builders=()
use doc && doc_builders+=( html )
use man && doc_builders+=( man )
local emesonargs=(
-Ddoc_builders="$(meson-format-array "${doc_builders[@]}")"
$(meson_use appindicator app_indicator)
)
meson_src_configure
}
|