Skip to content

Commit

Permalink
povray now requires at least Lion to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
royhodgman committed Oct 7, 2012
1 parent 14860ed commit 33fa4b3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions 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'
Expand All @@ -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",
Expand Down

0 comments on commit 33fa4b3

Please sign in to comment.