aboutsummaryrefslogtreecommitdiff
blob: 03650089eb6b8b5987d717981016f7b060fb8e9c (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
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
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"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+appindicator"

DEPEND="
	gnome-base/dconf
	sys-fs/encfs
	sys-fs/fuse
	app-crypt/libsecret
	x11-libs/libICE
	dev-libs/glib:2
	dev-libs/libappindicator:3
	dev-libs/libgee:0.8=
	x11-libs/gtk+:3
	x11-libs/libSM
"
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
"

PATCHES=( "${FILESDIR}/${P}-fix-implicit-function-decl.patch" )

src_prepare() {
	vala_setup
	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
}