Submitting editors/issy: a small console text editor written in Zig, BSD 
3-Clause licensed.

Source at https://github.com/davidemerson/issy

What it is:
A gap-buffer editor with syntax highlighting for 20 languages (including 
TeX/LaTeX), multi-cursor editing, incremental search, undo/redo, and PDF export 
via a hand-rolled PDF 1.4 writer with TTF/OTF font embedding. No runtime 
dependencies beyond libc.

Build notes:

zig build -Doptimize=ReleaseSafe. BUILD_DEPENDS on lang/zig and redirects the 
zig cache into ${WRKBUILD} via MAKE_ENV (same pattern as lang/zig's own 
Makefile) so the ports build doesn't write to $HOME. The project declares zero 
zig package dependencies, so zig build performs no network fetch — the distfile 
is self-contained. Unit tests run under zig build test, wired to do-test.

Upstream build.zig calls linkLibC() on OpenBSD so native builds go through libc 
rather than raw syscalls — that's why WANTLIB includes c for what looks like a 
pure-Zig program.

The packaged binary carries a "dev" build stamp (the release stamp is only set 
for upstream's own binary releases), which upstream uses as the signal to 
disable its update-notification check entirely: a pkg_add-installed issy never 
phones home.

Arches:

ONLY_FOR_ARCHS = amd64 arm64, matching lang/zig.

Testing:

Re-submission. The first round failed at do-build with std.fs.Dir.realpath ... 
unsupported on this host — Zig's stdlib reaches for /proc/self/fd/ which 
OpenBSD lacks. Fixed upstream in commit 4438a2d by switching to 
std.posix.getcwd (plain libc).

Build and test verified end-to-end at v1.2.4 on OpenBSD 7.9 amd64 with lang/zig 
0.15.2 from packages: all unit tests pass under zig build test, and all 15 
PTY-based integration suites (58 cases) under bash tests/run_tests.sh pass. 
Upstream CI runs this same sequence in an OpenBSD 7.9 VM on every push 
(cross-platform-actions), so future regressions will block main.

Port directory attached as a gzipped tarball; extract into ports/editors/ to 
produce ports/editors/issy/.

Regards,
David Emerson

Attachment: issy-port.tar.gz
Description: GNU Zip compressed data

Reply via email to