x11-wm/i3: add PREFIX to the man pages pathes

Bump PORTREVISION.

Approved by:	bapt (maintainer)
This commit is contained in:
Sergey A. Osokin 2025-06-15 14:05:58 -04:00
parent 9b39331539
commit b998385f30
3 changed files with 43 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= i3 PORTNAME= i3
DISTVERSION= 4.24 DISTVERSION= 4.24
PORTREVISION= 1
CATEGORIES= x11-wm CATEGORIES= x11-wm
MASTER_SITES= https://i3wm.org/downloads/ \ MASTER_SITES= https://i3wm.org/downloads/ \
http://i3wm.org/downloads/ http://i3wm.org/downloads/
@ -40,4 +41,9 @@ MAKE_JOBS_UNSAFE= yes
CONFLICTS_INSTALL= i3-gaps CONFLICTS_INSTALL= i3-gaps
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
${WRKSRC}/man/i3-config-wizard.1 \
${WRKSRC}/man/i3.1
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -0,0 +1,17 @@
--- man/i3-config-wizard.1.orig 2025-06-15 17:44:02 UTC
+++ man/i3-config-wizard.1
@@ -54,12 +54,12 @@ Display a short help message and exit\&.
Display a short help message and exit\&.
.RE
.SH "FILES"
-.SS "/etc/i3/config\&.keycodes"
+.SS "%%PREFIX%%/etc/i3/config\&.keycodes"
.sp
This file contains the default configuration with keycodes\&. All the bindcode lines will be transformed to bindsym and the user\-specified modifier will be used\&.
.SH "DESCRIPTION"
.sp
-i3\-config\-wizard is started by i3 in its default config, unless ~/\&.i3/config exists\&. i3\-config\-wizard creates a keysym based i3 config file (based on /etc/i3/config\&.keycodes) in ~/\&.i3/config\&.
+i3\-config\-wizard is started by i3 in its default config, unless ~/\&.i3/config exists\&. i3\-config\-wizard creates a keysym based i3 config file (based on %%PREFIX%%/etc/i3/config\&.keycodes) in ~/\&.i3/config\&.
.sp
The advantage of using keysyms is that the config file is easy to read, understand and modify\&. However, if we shipped with a keysym based default config file, the key positions would not be consistent across different keyboard layouts (take for example the homerow for movement)\&. Therefore, we ship with a keycode based default config and let the wizard transform it according to your current keyboard layout\&.
.SH "SEE ALSO"

View File

@ -0,0 +1,20 @@
--- man/i3.1.orig 2024-11-06 17:26:59 UTC
+++ man/i3.1
@@ -261,7 +261,7 @@ When starting, i3 looks for configuration files in the
.sp -1
.IP " 3." 4.2
.\}
-/etc/xdg/i3/config (or $XDG_CONFIG_DIRS/i3/config if set)
+/usr/local/etc/xdg/i3/config (or $XDG_CONFIG_DIRS/i3/config if set)
.RE
.sp
.RS 4
@@ -272,7 +272,7 @@ When starting, i3 looks for configuration files in the
.sp -1
.IP " 4." 4.2
.\}
-/etc/i3/config
+/usr/local/etc/i3/config
.RE
.sp
You can specify a custom path using the \-c option\&.