Created attachment 228668 [details]
With patches from https://github.com/MiKTeX/miktex/pull/895/files
Looks good, thanks for doing this!
I was hoping to update the port after upstreaming all the changes, but the upstream maintainer seems a bit strange person to say the least.
Created attachment 228876 [details]
add missing deps
Feel free to push.