app-crypt/gnome-encfs-manager: update EAPI 7 -> 8

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
This commit is contained in:
Pascal Jäger 2023-12-06 14:20:34 +01:00
parent b3c14cf227
commit 51127ec324
No known key found for this signature in database
GPG Key ID: 9DF5441454F67138
2 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,28 @@
Clang 16 and GCC 14 do not allow implicit function declarations by default.
This adds the proper declaration.
Upstream PR: https://bugs.launchpad.net/gencfsm/+bug/2045767
Bug: https://bugs.gentoo.org/887207
Pascal Jäger <pascal.jaeger@leimstift.de> (2023-12-06)
--- a/src/tools.c
+++ b/src/tools.c
@@ -19,6 +19,17 @@
#include "tools.h"
+#if !defined(VALA_EXTERN)
+#if defined(_MSC_VER)
+#define VALA_EXTERN __declspec(dllexport) extern
+#elif __GNUC__ >= 4
+#define VALA_EXTERN __attribute__((visibility("default"))) extern
+#else
+#define VALA_EXTERN extern
+#endif
+#endif
+VALA_EXTERN void gnome_encfs_manager_on_logout (void);
+
gchar* get_glade_file(gchar *filename) {
return g_build_filename(DATA_PATH, "glade", filename, NULL);
}

View File

@ -0,0 +1,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"
KEYWORDS="~amd64 ~x86"
SLOT="0"
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)
sys-devel/libtool
>=sys-devel/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
}