summaryrefslogtreecommitdiff
blob: fb682339abe0459a34df8b7c407eea8c9d1c511a (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit gnome.org meson xdg

DESCRIPTION="GObject based library for handling and rendering epub documents"
HOMEPAGE="https://gitlab.gnome.org/GNOME/libgepub"

LICENSE="LGPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="+introspection webkit"

RDEPEND="
	net-libs/libsoup:3.0
	dev-libs/glib:2
	dev-libs/libxml2
	app-arch/libarchive:=
	webkit? ( >=net-libs/webkit-gtk-2.38.0:4.1[introspection?] )
	introspection? ( >=dev-libs/gobject-introspection-1.30:= )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

src_prepare() {
	default

	# Tests are not executed by `meson test` and they require GTK+3
	sed -i -e "/subdir('tests')/d" meson.build || die
}

src_configure() {
	local emesonargs=(
		$(meson_use introspection)
		$(meson_use webkit widget)
	)
	meson_src_configure
}