Use meson.native.binaries to point find_program at the versioned
python3 instead of patching meson.build, and keep the reinplace only
for upstream's run_command() calls that bypass the found program.
See: https://trac.macports.org/ticket/71963
Explicitly enable libvirt/vnc/spice, disable ovirt (no govirt port
exists to satisfy it), and add default-on vte and bash_completion
variants, so the build no longer depends on which optional libraries
happen to be installed.
Add the spice-protocol dependency (spice-gtk's pkg-config file requires
it but only build-depends on it) and enable spice/vnc explicitly, so
SPICE support is not silently dropped. Point meson at a versioned
python3 so the build does not rely on "port select python3".
Fixes: https://trac.macports.org/ticket/74206
Fixes: https://trac.macports.org/ticket/71963
MP bug 45500 was opened 12y ago to say this was broken.
I am certain this worked for me as recently as last year.
There is some part of this timeline that I do not understand.
Maybe that bug should have been closed a long time ago?
This might have broken, again, and much later, for a different reason.
https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html
> The -Wimplicit-function-declaration and -Wimplicit-int warnings
> now default to an error in C99, C11, and C17.
Closes: https://trac.macports.org/ticket/45500