public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: app-crypt/gnome-encfs-manager/files/, app-crypt/gnome-encfs-manager/
@ 2023-12-06 13:21 Pascal Jäger
  0 siblings, 0 replies; only message in thread
From: Pascal Jäger @ 2023-12-06 13:21 UTC (permalink / raw
  To: gentoo-commits

commit:     51127ec3242e83c20d1be1f83a134e04610e1cdb
Author:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Wed Dec  6 13:20:34 2023 +0000
Commit:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
CommitDate: Wed Dec  6 13:20:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51127ec3

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

Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>

 ...fs-manager-1.9-fix-implicit-function-decl.patch | 28 ++++++++++
 .../gnome-encfs-manager-1.9-r2.ebuild              | 65 ++++++++++++++++++++++
 2 files changed, 93 insertions(+)

diff --git a/app-crypt/gnome-encfs-manager/files/gnome-encfs-manager-1.9-fix-implicit-function-decl.patch b/app-crypt/gnome-encfs-manager/files/gnome-encfs-manager-1.9-fix-implicit-function-decl.patch
new file mode 100644
index 0000000000..4e5b357f5e
--- /dev/null
+++ b/app-crypt/gnome-encfs-manager/files/gnome-encfs-manager-1.9-fix-implicit-function-decl.patch
@@ -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);
+ }

diff --git a/app-crypt/gnome-encfs-manager/gnome-encfs-manager-1.9-r2.ebuild b/app-crypt/gnome-encfs-manager/gnome-encfs-manager-1.9-r2.ebuild
new file mode 100644
index 0000000000..417a1d97f6
--- /dev/null
+++ b/app-crypt/gnome-encfs-manager/gnome-encfs-manager-1.9-r2.ebuild
@@ -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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-06 13:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06 13:21 [gentoo-commits] repo/proj/guru:dev commit in: app-crypt/gnome-encfs-manager/files/, app-crypt/gnome-encfs-manager/ Pascal Jäger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox