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

EAPI=6

inherit gnome2-utils gnome.org meson xdg

DESCRIPTION="Cooking recipe application"
HOMEPAGE="https://wiki.gnome.org/Apps/Recipes"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="archive spell"

RDEPEND="
	dev-libs/glib:2
	media-libs/libcanberra
	net-libs/libsoup:2.4
	>=x11-libs/gtk+-3.22:3
	>=dev-libs/json-glib-1
	>=net-libs/rest-0.7
	net-libs/gnome-online-accounts
	archive? ( app-arch/gnome-autoar )
	spell? ( >=app-text/gspell-1 )
"
DEPEND="${RDEPEND}
	virtual/pkgconfig
"

src_configure() {
	local emesonargs=(
		-Denable-autoar=$(usex archive yes no)
		-Denable-gspell=$(usex spell yes no)
		-Denable-canberra=yes
	)

	meson_src_configure
}

pkg_postinst() {
	gnome2_schemas_update
	gnome2_icon_cache_update
	xdg_pkg_postinst
}

pkg_postrm() {
	gnome2_schemas_update
	gnome2_icon_cache_update
	xdg_pkg_postrm
}