<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/17a7c9ef0d9da9fcb289078204c824f4929ac387">https://github.com/macports/macports-ports/commit/17a7c9ef0d9da9fcb289078204c824f4929ac387</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 17a7c9ef0d9 spacebar: new port
</span>17a7c9ef0d9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 17a7c9ef0d9da9fcb289078204c824f4929ac387
</span>Author: Basil Shubin <basil.shubin@gmail.com>
AuthorDate: Wed Nov 30 11:20:49 2022 +0600
<span style='display:block; white-space:pre;color:#404040;'> spacebar: new port
</span>---
sysutils/spacebar/Portfile | 66 ++++++++++++++++++++++
.../spacebar/files/org.macports.spacebar.plist | 24 ++++++++
sysutils/spacebar/files/patch-makefile.diff | 29 ++++++++++
.../spacebar/files/patch-src__event_loop.c.diff | 11 ++++
4 files changed, 130 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/spacebar/Portfile b/sysutils/spacebar/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..7c47dfd1044
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/spacebar/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,66 @@
</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;'>+
</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;'>+minimum_xcodeversions {19 12.0}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup cmacrae spacebar 1.4.0 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;'>+maintainers {@bashu gmail.com:bashu.was.here} 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 minimal status bar for macOS.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description spacebar is a minimal status bar for macOS. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Ideal for use with tiling window managers like yabai.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 0ecfd10f589154dfaa99a3b05154cc7a926fae55 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 80165fb20e2b6436cabb972f3bac1ccf25cc174edff78e47be5aaac9c9733f05 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 44938
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-makefile.diff patch-src__event_loop.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${filespath}/org.macports.${name}.plist ${worksrcpath}/org.macports.${name}.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;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@NAME@|${name}|g" ${worksrcpath}/org.macports.${name}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/org.macports.${name}.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;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Copy manpage
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 ${worksrcpath}/doc/spacebar.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 -m 0755 -d ${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;'>+ set launchd_dir ${prefix}/etc/${startupitem.location}/${startupitem.uniquename}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${destroot}/${launchd_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 ${worksrcpath}/${startupitem.plist} ${destroot}${launchd_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # install the plist, if startupitem.install is set
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[getuid] == 0 && ${startupitem.install}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${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;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Copy the example configuration into your home directory:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cp ${prefix}/share/doc/${name}/examples/spacebarrc ~/.spacebarrc
</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/spacebar
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/spacebar/files/org.macports.spacebar.plist b/sysutils/spacebar/files/org.macports.spacebar.plist
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e1c8c5ea4df
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/spacebar/files/org.macports.spacebar.plist
</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" "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>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>org.macports.@NAME@</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=spacebar</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/spacebar</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/spacebar/files/patch-makefile.diff b/sysutils/spacebar/files/patch-makefile.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..68c9d0998d5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/spacebar/files/patch-makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- makefile.orig 2022-11-30 10:29:26.000000000 +0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ makefile 2022-11-30 10:29:34.000000000 +0600
</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 -framework IOKit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-BUILD_FLAGS = -std=c99 -Wall -DDEBUG -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;'>+ SMP_PATH = ./examples
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -11,11 +11,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ all: clean $(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 $(BINS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-stats: BUILD_FLAGS=-std=c99 -Wall -DSTATS -DNDEBUG -O2 -fvisibility=hidden -mmacosx-version-min=10.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-stats: clean $(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;'>+ man:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ asciidoctor -b manpage $(DOC_PATH)/spacebar.asciidoc -o $(DOC_PATH)/spacebar.1 && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,4 +23,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(BUILD_PATH)/spacebar: $(SPACEBAR_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><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/spacebar/files/patch-src__event_loop.c.diff b/sysutils/spacebar/files/patch-src__event_loop.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4d578a8f011
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/spacebar/files/patch-src__event_loop.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/event_loop.c.orig 2022-11-30 10:49:37.000000000 +0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/event_loop.c 2022-11-30 10:49:40.000000000 +0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -15,7 +15,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uint64_t cycle_count = __sync_add_and_fetch(&counter->cycle_count, elapsed_cycles);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uint64_t hit_count = __sync_add_and_fetch(&counter->hit_count, 1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fprintf(stdout, "%30s: hits %'25lld | cur %'25lld | avg %'25lld\n",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- name, hit_count, elapsed_cycles, cycle_count / hit_count)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ name, hit_count, elapsed_cycles, cycle_count / hit_count);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>