aboutsummaryrefslogtreecommitdiff
blob: 5cfcc62db54400439d8b8a7f7f941637f1cf9941 (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 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
VALA_MIN_API_VERSION="0.44"
inherit vala xdg

DESCRIPTION="An easy to use manager and mounter for encfs stashes"
HOMEPAGE="https://launchpad.net/gencfsm"
SRC_URI="https://launchpad.net/gencfsm/trunk/${PV}/+download/${PN}_${PV}.tar.xz -> ${P}.tar.xz"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="+appindicator"

DEPEND="
	gnome-base/dconf
	sys-fs/encfs
	sys-fs/fuse
	app-crypt/libsecret
	x11-libs/libICE
"
RDEPEND="${DEPEND}"
BDEPEND="
	$(vala_depend)
	dev-build/libtool
	>=dev-build/automake-1.11
	appindicator? ( dev-libs/libappindicator )
	x11-libs/gtk+:3
	>=dev-libs/glib-2
	gnome-base/gnome-keyring
	dev-libs/libgee
	dev-util/intltool
	x11-libs/libSM
"
src_prepare() {
	vala_src_prepare
	default
}

src_configure() {
	local conf
	./autogen.sh
	if ! use appindicator; then
		conf+=" --disable-appindicator"
	fi
	econf  ${conf}
}

pkg_postinst() {
	xdg_icon_cache_update
}

pkg_postrm() {
	xdg_icon_cache_update
}