I needed jbig2enc for ocrmypdf (details) and decided installing via Homebrew was simply not difficult enough; I wanted to make it a mise package. Since there are no binaries provided by the authors (I think Homebrew is installing from maintainer-managed builds), I followed the mise docs directions and created an asdf plugin. This is that plugin!
It was 100% vibe coded, I don’t know what I’m doing, you shouldn’t use it, etc. etc. I can confirm it works on my specific machine on my specific version of MacOS and absolutely nothing else.
This plugin builds jbig2enc from source, so you need build tools and libraries installed. Yes we were trying to avoid Brew in the first place, don’t ask questions.
macOS:
brew install autoconf automake libtool leptonica
# Add the plugin
mise plugins install jbig2enc https://github.com/ws/asdf-jbig2enc.git
# Install latest
mise install jbig2enc
# Install a specific version
mise install jbig2enc@0.29
# Set as global default
mise use -g jbig2enc@0.29
# Or set for current directory only
mise use jbig2enc@0.29
mise x uv jbig2enc cargo:pngquant -- uvx ocrmypdf yourfile.pdf output.pdf