FreeBSD Bugzilla – Attachment 255232 Details for
Bug 282810
graphics/zathura: Expect system-wide config at ${PREFIX}/etc/zathurarc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-graphics-zathura-Expect-system-wide-config-at-PREFIX.patch (text/plain), 2.32 KB, created by
embhd
on 2024-11-17 10:46:21 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
embhd
Created:
2024-11-17 10:46:21 UTC
Size:
2.32 KB
patch
obsolete
>From 6759d0e3856c55d2e58ad4ba07be36a0b0c9ec03 Mon Sep 17 00:00:00 2001 >From: Michael <embhd@posteo.de> >Date: Sun, 17 Nov 2024 11:26:28 +0100 >Subject: [PATCH] graphics/zathura: Expect system-wide config at > ${PREFIX}/etc/zathurarc > >--- > graphics/zathura/Makefile | 5 +++++ > graphics/zathura/files/patch-doc_man_zathurarc.5.rst | 11 +++++++++++ > graphics/zathura/files/patch-zathura_config.c | 11 +++++++++++ > 3 files changed, 27 insertions(+) > create mode 100644 graphics/zathura/files/patch-doc_man_zathurarc.5.rst > create mode 100644 graphics/zathura/files/patch-zathura_config.c > >diff --git a/graphics/zathura/Makefile b/graphics/zathura/Makefile >index 0043aa2692..da5c0464bb 100644 >--- a/graphics/zathura/Makefile >+++ b/graphics/zathura/Makefile >@@ -35,4 +35,9 @@ SYNCTEX_BUILD_DEPENDS= tex-synctex>=1.19.0:devel/tex-synctex > SYNCTEX_RUN_DEPENDS= ${SYNCTEX_BUILD_DEPENDS} > SYNCTEX_MESON_ENABLED= synctex > >+post-patch: >+ @${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' \ >+ ${WRKSRC}/zathura/config.c \ >+ ${WRKSRC}/doc/man/zathurarc.5.rst >+ > .include <bsd.port.mk> >diff --git a/graphics/zathura/files/patch-doc_man_zathurarc.5.rst b/graphics/zathura/files/patch-doc_man_zathurarc.5.rst >new file mode 100644 >index 0000000000..5799d8a8ca >--- /dev/null >+++ b/graphics/zathura/files/patch-doc_man_zathurarc.5.rst >@@ -0,0 +1,11 @@ >+--- doc/man/zathurarc.5.rst.orig 2024-11-17 11:06:13.582362000 +0100 >++++ doc/man/zathurarc.5.rst 2024-11-17 11:06:20.828353000 +0100 >+@@ -5,7 +5,7 @@ >+ SYNOPSIS >+ ======== >+ >+-/etc/zathurarc, $XDG_CONFIG_HOME/zathura/zathurarc >++@PREFIX@/etc/zathurarc, $XDG_CONFIG_HOME/zathura/zathurarc >+ >+ DESCRIPTION >+ =========== >diff --git a/graphics/zathura/files/patch-zathura_config.c b/graphics/zathura/files/patch-zathura_config.c >new file mode 100644 >index 0000000000..237144e7f5 >--- /dev/null >+++ b/graphics/zathura/files/patch-zathura_config.c >@@ -0,0 +1,11 @@ >+--- zathura/config.c 2024-11-17 09:37:12.067602000 +0100 >++++ zathura/config.c.orig 2024-11-17 09:36:55.101275000 +0100 >+@@ -18,7 +18,7 @@ >+ #include <girara/utils.h> >+ #include <glib/gi18n.h> >+ >+-#define GLOBAL_RC "/etc/zathurarc" >++#define GLOBAL_RC "@PREFIX@/etc/zathurarc" >+ #define ZATHURA_RC "zathurarc" >+ >+ static void cb_jumplist_change(girara_session_t* session, const char* UNUSED(name), girara_setting_type_t UNUSED(type), >-- >2.47.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282810
:
255231
|
255232
|
255512