<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/df4bc09c15066a657b41d92302a24a95907d4142">https://github.com/macports/macports-ports/commit/df4bc09c15066a657b41d92302a24a95907d4142</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new df4bc09c150 yabai: new port 3.3.6
</span>df4bc09c150 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit df4bc09c15066a657b41d92302a24a95907d4142
</span>Author: Kevin James <KevinJames@thekev.in>
AuthorDate: Sat Oct 31 13:55:13 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> yabai: new port 3.3.6
</span>---
sysutils/yabai/Portfile | 80 ++++++++++++++++++++++++
sysutils/yabai/files/org.macports.yabai.plist.in | 24 +++++++
sysutils/yabai/files/patch-makefile.diff | 34 ++++++++++
3 files changed, 138 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/yabai/Portfile b/sysutils/yabai/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8ee13adfee5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/yabai/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,80 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup makefile 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup xcodeversion 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup koekeishiya yabai 3.3.6 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories sysutils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@thekevjames thekev.in:macports} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description A tiling window manager for macOS based on binary space partitioning
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description yabai is a window management utility that is designed to work as an extension to the built-in window manager of macOS.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 04c848682475392f8d33a42c5025e75138048524 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 1240f40a5a631818255af9930430dfcc11d2f78286d0c8d2a18d96e869c6f0e0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1514953
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.jobs 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-makefile.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set yabai.plist ${workpath}/org.macports.yabai.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Fill in startup plist template
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy -- ${filespath}/org.macports.yabai.plist.in ${yabai.plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" ${yabai.plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Copy binary
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/bin/yabai ${destroot}${prefix}/bin/yabai
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Copy manpage
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # TODO: build manpage properly
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 444 ${worksrcpath}/doc/yabai.1 ${destroot}${prefix}/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Copy example files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/examples
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy {*}[glob ${worksrcpath}/examples/*] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/doc/${name}/examples
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Install our custom plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set launchd_dir ${prefix}/etc/${startupitem.location}/${startupitem.uniquename}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${destroot}/${launchd_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 ${yabai.plist} ${destroot}/${launchd_dir}/${startupitem.plist}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[getuid] == 0 && ${startupitem.install} ne "no"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${destroot}/Library/${startupitem.location}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf ${launchd_dir}/${startupitem.plist} ${destroot}/Library/${startupitem.location}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf ${launchd_dir}/${startupitem.plist} ${destroot}${prefix}/etc/${startupitem.location}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set minxcodever 9.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {([vercmp $xcodeversion ${minxcodever}] < 0)} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ known_fail yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${name} ${version} requires Xcode ${minxcodever} or greater to build."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "incompatible Xcode version"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ A sample configuration is provided at
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * ${prefix}/share/doc/${name}/examples/yabairc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ You are strongly encouraged to copy this file to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * ~/.config/${name}/yabairc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and adjust it to your needs.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.create no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.autostart no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.location LaunchAgents
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.executable ${prefix}/bin/yabai
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/yabai/files/org.macports.yabai.plist.in b/sysutils/yabai/files/org.macports.yabai.plist.in
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..56de1448a0e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/yabai/files/org.macports.yabai.plist.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,24 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<?xml version='1.0' encoding='UTF-8'?>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<plist version='1.0'>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<key>Label</key><string>org.macports.yabai</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<key>ProgramArguments</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@/bin/daemondo</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>--label=yabai</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>--start-cmd</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@/bin/yabai</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>;</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>--pid=exec</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<key>EnvironmentVariables</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>PATH</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<key>KeepAlive</key><true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<key>RunAtLoad</key><true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</plist>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/yabai/files/patch-makefile.diff b/sysutils/yabai/files/patch-makefile.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0e21b299ea1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/yabai/files/patch-makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,34 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- makefile.orig 2021-01-22 17:41:47.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ makefile 2021-01-22 17:55:53.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,6 +1,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FRAMEWORK_PATH = -F/System/Library/PrivateFrameworks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FRAMEWORK = -framework Carbon -framework Cocoa -framework CoreServices -framework SkyLight -framework ScriptingBridge
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-BUILD_FLAGS = -std=c99 -Wall -g -O0 -fvisibility=hidden -mmacosx-version-min=10.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS += -std=c99 -Wall -DNDEBUG -fvisibility=hidden
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BUILD_PATH = ./bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DOC_PATH = ./doc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SCRIPT_PATH = ./scripts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -16,13 +16,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ all: clean-build $(BINS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install: BUILD_FLAGS=-std=c99 -Wall -DNDEBUG -O2 -fvisibility=hidden -mmacosx-version-min=10.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install: clean-build $(BINS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ cp $(BINS) $(DESTDIR)/$(PREFIX)/$(BINS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(OSAX_SRC): $(OSAX_PATH)/loader.m $(OSAX_PATH)/payload.m $(OSAX_PATH)/mach_bootstrap.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- clang $(OSAX_PATH)/loader.m -shared -O2 -mmacosx-version-min=10.13 -o $(OSAX_PATH)/loader -framework Foundation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- clang $(OSAX_PATH)/payload.m -shared -fPIC -O2 -mmacosx-version-min=10.13 -o $(OSAX_PATH)/payload -framework Foundation -framework Carbon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- clang $(OSAX_PATH)/mach_bootstrap.c -shared -fPIC -O2 -mmacosx-version-min=10.13 -o $(OSAX_PATH)/mach_bootstrap -framework Carbon -lpthread
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(OSAX_PATH)/loader.m $(CFLAGS) -shared -o $(OSAX_PATH)/loader -framework Foundation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(OSAX_PATH)/payload.m $(CFLAGS) -shared -fPIC -o $(OSAX_PATH)/payload -framework Foundation -framework Carbon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(OSAX_PATH)/mach_bootstrap.c $(CFLAGS) -shared -fPIC -o $(OSAX_PATH)/mach_bootstrap -framework Carbon -lpthread
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xxd -i -a $(OSAX_PATH)/loader $(OSAX_PATH)/sa_loader.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xxd -i -a $(OSAX_PATH)/payload $(OSAX_PATH)/sa_payload.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xxd -i -a $(OSAX_PATH)/mach_bootstrap $(OSAX_PATH)/sa_mach_bootstrap.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -56,4 +56,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(BUILD_PATH)/yabai: $(YABAI_SRC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mkdir -p $(BUILD_PATH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- clang $^ $(BUILD_FLAGS) $(FRAMEWORK_PATH) $(FRAMEWORK) -o $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $^ $(CFLAGS) $(FRAMEWORK_PATH) $(FRAMEWORK) -o $@
</span></pre><pre style='margin:0'>
</pre>