From 33fa4b3e870a9a27c1ba918fc03a5930ef455020 Mon Sep 17 00:00:00 2001 From: royhodgman Date: Sun, 7 Oct 2012 08:20:04 -0400 Subject: [PATCH] povray now requires at least Lion to compile. --- Library/Formula/povray.rb | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Library/Formula/povray.rb b/Library/Formula/povray.rb index a00c61ebfdb5..8075b236fbd4 100644 --- a/Library/Formula/povray.rb +++ b/Library/Formula/povray.rb @@ -1,5 +1,17 @@ require 'formula' +class NeedsLion < Requirement + def satisfied? + MacOS.version >= :lion + end + def message + "PovRay 3.7.0.RC6 requires Mac OS X 10.7 or newer" + end + def fatal? + true + end +end + class Povray < Formula homepage 'http://www.povray.org/' url 'http://www.povray.org/beta/source/povray-3.7.0.RC6.tar.gz' @@ -9,17 +21,13 @@ class Povray < Formula option 'use-openexr', 'Compile with OpenEXR support.' option 'use-zlib', 'Compile with zlib support.' + depends_on NeedsLion.new depends_on 'boost' depends_on 'jpeg' depends_on 'libpng' depends_on 'libtiff' depends_on 'openexr' => :optional if build.include? 'use-openexr' - # TODO give this a build number (2326?) - fails_with :llvm do - cause "povray fails with 'terminate called after throwing an instance of int'" - end if MacOS.version == :leopard - def patches {:p0 => [ "http://svn.macports.org/repository/macports/trunk/dports/graphics/povray/files/patch-boost-1.50.diff",