diff --git a/x11/mangobar/Makefile b/x11/mangobar/Makefile index 64f360fd944f..86a808b86bca 100644 --- a/x11/mangobar/Makefile +++ b/x11/mangobar/Makefile @@ -1,40 +1,48 @@ PORTNAME= mangobar -DISTVERSION= 0.2.1 +DISTVERSION= 0.2.2 CATEGORIES= x11 MAINTAINER= nivit@FreeBSD.org COMMENT= Simple bar for x11-wm/mango WWW= https://github.com/mangowm/mangobar LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= tllist>=1.1.0:devel/tllist \ +BUILD_DEPENDS= evdev-proto>=5.8:devel/evdev-proto \ + tllist>=1.1.0:devel/tllist \ wayland-protocols>=1.24:graphics/wayland-protocols \ wayland-scanner:graphics/wayland LIB_DEPENDS= libasound.so:audio/alsa-lib \ libbasu.so:devel/basu \ libcjson.so:devel/libcjson \ libfcft.so:x11-fonts/fcft \ libpixman-1.so:x11/pixman \ libpulse.so:audio/pulseaudio \ libudev.so:devel/libudev-devd \ libwayland-server.so:graphics/wayland -USES= gnome meson ninja pkgconfig +USES= gnome meson ninja pkgconfig python:build shebangfix USE_GITHUB= yes GH_ACCOUNT= mangowm USE_GNOME= cairo gdkpixbuf pango +SHEBANG_FILES= scripts/gen_defaults.py + SUB_FILES= pkg-message PLIST_FILES= bin/mangobar \ share/mangobar/config.jsonc \ share/mangobar/style.css +post-patch: + ${REINPLACE_CMD} \ + -e 's,%%PYTHON_VERSION%%,${PYTHON_VERSION},1' \ + ${WRKSRC}/meson.build + post-install: ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/config.jsonc ${STAGEDIR}${DATADIR}/ ${INSTALL_DATA} ${WRKSRC}/style.css ${STAGEDIR}${DATADIR}/ .include diff --git a/x11/mangobar/distinfo b/x11/mangobar/distinfo index ed44c067bd40..52aa34431ba3 100644 --- a/x11/mangobar/distinfo +++ b/x11/mangobar/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1788363531 -SHA256 (mangowm-mangobar-0.2.1_GH0.tar.gz) = 83ace53cca7b0702baee0453998e8ac2ca9f7e3033737ce617df18bff8a37613 -SIZE (mangowm-mangobar-0.2.1_GH0.tar.gz) = 87378 +TIMESTAMP = 1789548661 +SHA256 (mangowm-mangobar-0.2.2_GH0.tar.gz) = 3e673fcf8b2d87da9e7fa072ca15ce722f686086e4cbcf2d22311cc7e5d506ae +SIZE (mangowm-mangobar-0.2.2_GH0.tar.gz) = 97256 diff --git a/x11/mangobar/files/patch-mangobar.c b/x11/mangobar/files/patch-mangobar.c deleted file mode 100644 index 999e947f245c..000000000000 --- a/x11/mangobar/files/patch-mangobar.c +++ /dev/null @@ -1,14 +0,0 @@ ---- mangobar.c.orig 2026-09-01 09:23:05 UTC -+++ mangobar.c -@@ -10,7 +10,11 @@ - #include - #include - #include -+#ifdef __FreeBSD__ -+#include -+#else - #include -+#endif - #include - #include - #include diff --git a/x11/mangobar/files/patch-meson.build b/x11/mangobar/files/patch-meson.build index 00e744154494..b758609b41cd 100644 --- a/x11/mangobar/files/patch-meson.build +++ b/x11/mangobar/files/patch-meson.build @@ -1,14 +1,27 @@ ---- meson.build.orig 2026-09-01 09:23:05 UTC +--- meson.build.orig 2026-09-16 06:12:24 UTC +++ meson.build -@@ -22,10 +22,10 @@ deps = [ +@@ -19,6 +19,7 @@ deps = [ + dependency('fcft'), + dependency('pixman-1'), + dependency('cairo'), ++ dependency('libcjson'), + dependency('pango'), + dependency('pangocairo'), dependency('libpulse'), - sdbus_dep, +@@ -26,7 +27,6 @@ deps = [ dependency('libudev'), -+ dependency('libcjson'), dependency('gdk-pixbuf-2.0'), - dependency('alsa'), cc.find_library('rt'), - cc.find_library('cjson'), ] scanner = find_program('wayland-scanner') +@@ -59,7 +59,7 @@ defaults_h = custom_target('defaults-h', + output: 'defaults.h', + input: ['config.jsonc', 'style.css'], + command: [ +- find_program('python3'), ++ find_program('%%PYTHON_VERSION%%'), + files('scripts/gen_defaults.py'), + '@INPUT0@', + '@INPUT1@',