Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 2024 19:37:49 GMT
From:      Zsolt Udvari <uzsolt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6bd8a8b245a7 - main - graphics/zathura: Fix system-wide config path
Message-ID:  <202412021937.4B2JbnvA024520@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by uzsolt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6bd8a8b245a77eb84547876ff450d5dfb76a97fc

commit 6bd8a8b245a77eb84547876ff450d5dfb76a97fc
Author:     embhd <embhd@posteo.de>
AuthorDate: 2024-12-02 19:34:17 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-12-02 19:37:21 +0000

    graphics/zathura: Fix system-wide config path
    
    Zathura searches system-wide config in /etc - now in ${PREFIX}/etc.
    Pet portfmt.
    
    PR:             282810
    Approved by:    quentin.stievenart <quentin.stievenart@gmail.com> (maintainer)
---
 graphics/zathura/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/graphics/zathura/Makefile b/graphics/zathura/Makefile
index 0043aa269283..71bf100feac5 100644
--- a/graphics/zathura/Makefile
+++ b/graphics/zathura/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	zathura
 DISTVERSION=	0.5.8
+PORTREVISION=	1
 CATEGORIES=	graphics print
 MASTER_SITES=	https://pwmt.org/projects/zathura/download/
 
@@ -16,9 +17,9 @@ LIB_DEPENDS=	libgirara-gtk3.so:x11-toolkits/girara \
 USES=		compiler:c11 desktop-file-utils gettext-tools:build gnome meson \
 		ninja pkgconfig python sqlite tar:xz
 USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30
-MESON_ARGS=	-Dmanpages=disabled \
+MESON_ARGS=	-Dlandlock=disabled \
+		-Dmanpages=disabled \
 		-Dseccomp=disabled \
-		-Dlandlock=disabled \
 		-Dtests=disabled
 
 OPTIONS_DEFINE=		MANPAGES SYNCTEX
@@ -35,4 +36,8 @@ 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 '/GLOBAL_RC/ s|/etc|${PREFIX}/etc|' ${WRKSRC}/zathura/config.c
+	@${REINPLACE_CMD} -e 's|^/etc|${PREFIX}/etc|' ${WRKSRC}/doc/man/zathurarc.5.rst
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412021937.4B2JbnvA024520>