You can use the java PortGroup (https://guide.macports.org/chunked/reference.portgroup.html#reference.portgroup.java) to specify a minimum required Java version, and a fallback port to install when this minimum version is not already available.
Nils. > Op 5 feb 2024 om 07:42 heeft Joshua Root <[email protected]> het volgende > geschreven: > > On 5/2/2024 16:10, Dave Allured - NOAA Affiliate via macports-dev wrote: >> Would someone with builder access please trigger a rebuild of antlr on the >> 12.x86_64 builder? There seems to be a difference between builders and >> github CI, and I need to check a recent builder log file. Thanks for your >> help. > > I don't think there's any need to run a build; the issue (or at least the > first one encountered) is that antlr needs Java, the antlr port doesn't > depend on any Java port, and recent macOS versions don't ship Java in a > default installation. > > The CI image on the other hand does have Java installed. > <https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#java> > > - Josh
