Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2026 15:43:21 +0000
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 55656c737372 - main - x11-wm/mangowc: Update to 0.12.3
Message-ID:  <6995de19.274b9.3fe11dcd@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=55656c737372d67dc7aab6111097953e115c4f44

commit 55656c737372d67dc7aab6111097953e115c4f44
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-02-18 15:37:39 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-02-18 15:43:17 +0000

    x11-wm/mangowc: Update to 0.12.3
    
    - Add a patch to meson.build, otherwise mango always looks for
      the global configuration file in the /etc/mango directory
      (even if you pass the argument --sysconfdir to meson), instead of
      ${PREFIX}/etc/mango.
    
    ChangeLog:      https://github.com/DreamMaoMao/mangowc/releases/tag/0.12.3
    Reported by:    DreamMaoMao <notifications@github.com>
---
 x11-wm/mangowc/Makefile                |  4 +++-
 x11-wm/mangowc/distinfo                |  6 +++---
 x11-wm/mangowc/files/patch-meson.build | 30 ++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 4 deletions(-)

diff --git a/x11-wm/mangowc/Makefile b/x11-wm/mangowc/Makefile
index b607a0c04fe4..65fa539338f3 100644
--- a/x11-wm/mangowc/Makefile
+++ b/x11-wm/mangowc/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	mangowc
-DISTVERSION=	0.12.2
+DISTVERSION=	0.12.3
 PORTREVISION=	0
 CATEGORIES=	x11-wm
 
@@ -40,6 +40,8 @@ USES=		meson pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	DreamMaoMao
 
+MESON_ARGS=	-Dsysconfdir=${PREFIX}/etc
+
 SUB_FILES=	pkg-message
 
 PLIST_FILES=	bin/mango \
diff --git a/x11-wm/mangowc/distinfo b/x11-wm/mangowc/distinfo
index b0fcae1646ab..3d9de9852898 100644
--- a/x11-wm/mangowc/distinfo
+++ b/x11-wm/mangowc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1770975720
-SHA256 (DreamMaoMao-mangowc-0.12.2_GH0.tar.gz) = b2e6d0cad2eb4a18e0098c45f5f961a81ddd8b37027bd61c25b5e24473c62d66
-SIZE (DreamMaoMao-mangowc-0.12.2_GH0.tar.gz) = 414227
+TIMESTAMP = 1771427762
+SHA256 (DreamMaoMao-mangowc-0.12.3_GH0.tar.gz) = 140b1b625e56034c1f042f850364bba7d0c630fea027459eb44fe46c37bcd0f6
+SIZE (DreamMaoMao-mangowc-0.12.3_GH0.tar.gz) = 415574
diff --git a/x11-wm/mangowc/files/patch-meson.build b/x11-wm/mangowc/files/patch-meson.build
new file mode 100644
index 000000000000..69f9787894de
--- /dev/null
+++ b/x11-wm/mangowc/files/patch-meson.build
@@ -0,0 +1,30 @@
+--- meson.build.orig	2026-02-18 05:26:24 UTC
++++ meson.build
+@@ -12,12 +12,16 @@ endif
+     endif
+ endif
+ 
++osname = build_machine.system()
++
+ prefix = get_option('prefix')
+ sysconfdir = get_option('sysconfdir')
+ 
+ # 如果 sysconfdir 以 prefix 开头,去掉 prefix
+-if sysconfdir.startswith(prefix) and not is_nixos
+-  sysconfdir = sysconfdir.substring(prefix.length())
++if sysconfdir.startswith(prefix) and not is_nixos and osname != 'freebsd'
++  # this fails with: Unknown method "length" in object <[OptionStringHolder] holds [OptionString]
++  # sysconfdir = sysconfdir.substring(prefix.length())
++  sysconfdir = sysconfdir.replace(prefix, '')
+   # 确保 sysconfdir 是绝对路径
+   if not sysconfdir.startswith('/')
+     sysconfdir = '/' + sysconfdir
+@@ -72,7 +76,7 @@ c_args = [
+   '-DWLR_USE_UNSTABLE',
+   '-D_POSIX_C_SOURCE=200809L',
+   '-DVERSION="@0@"'.format(version_with_hash),
+-  '-DSYSCONFDIR="@0@"'.format('/etc'),
++  '-DSYSCONFDIR="@0@"'.format(sysconfdir),
+ ]
+ 
+ # 仅在 debug 选项启用时添加调试参数


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6995de19.274b9.3fe11dcd>