git: 3824d8733328 - main - x11/fnott: respect PREFIX for config after 272ba1db96af
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Mar 2023 10:50:39 UTC
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3824d8733328e4eab0abeb209aa6bde2285c1003
commit 3824d8733328e4eab0abeb209aa6bde2285c1003
Author: Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-31 08:17:12 +0000
Commit: Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-31 10:49:51 +0000
x11/fnott: respect PREFIX for config after 272ba1db96af
---
x11/fnott/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/x11/fnott/Makefile b/x11/fnott/Makefile
index f08d9d385f4b..8f3ef343205c 100644
--- a/x11/fnott/Makefile
+++ b/x11/fnott/Makefile
@@ -1,5 +1,6 @@
PORTNAME= fnott
DISTVERSION= 1.3.0
+PORTREVISION= 1
CATEGORIES= x11 wayland
MASTER_SITES= https://codeberg.org/dnkl/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
@@ -25,6 +26,10 @@ USE_XORG= pixman
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
+# Respect PREFIX for system-wide config
+ @${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' \
+ ${WRKSRC}/config.c \
+ ${WRKSRC}/doc/${PORTNAME}.ini.5.scd
# Respect PREFIX for icons
@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
${WRKSRC}/xdg.c