On Wed, 13 Dec 2017 14:34:03 +0000 Zero King <l...@macports.org> wrote: > On Wed, Dec 13, 2017 at 09:22:14AM -0500, Perry E. Metzger wrote: > >For the moment, OCaml doesn't work on 10.6 and earlier. There's > >some work that can fix that, but it isn't done yet. > > > >How does one specify that a port is only for more recent operating > >system versions to prevent it from building on older platforms? (I > >know how to blacklist ppc for the moment using supported_archs.) > > Here's a snippet excerpted from port mas: > > pre-fetch { > if {${os.major} < 15} { > ui_error "${name} @${version} requires OS X 10.11 or later." > return -code error "incompatible OS X version" > } > }
Cool. What is os.major for 10.7? (Or how could I answer that on my own?) Perry -- Perry E. Metzger pe...@piermont.com