Setting a build dependency for the JDK

Guenael Strutt macports at guenael.com
Sat Sep 1 02:32:18 UTC 2018


To build lang/processing, one needs a specific version of the JDK (as
specified in
https://github.com/processing/processing/blob/master/build/build.xml).
Question: how does one create a dependency in the Portfile to determine
whether this version is present? The purpose is to 1) provide a better
error message to the user and 2) prevent builds from failing
https://travis-ci.org/macports/macports-ports/builds/423195489 at every
update. I tried checking for the existence of this folder:  `/Library/Java/
JavaVirtualMachines/jdk1.8.0_181.jdk/` but didn't get anywhere. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180831/ab5fc75b/attachment.html>


More information about the macports-dev mailing list