homebrew-core/Formula/proj.rb
Jack Nagel 64afeec6d4 Use new fails_with DSL syntax
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00

29 lines
708 B
Ruby

require 'formula'
class ProjDatumgrid < Formula
url 'http://download.osgeo.org/proj/proj-datumgrid-1.5.zip'
md5 'f5bf28a2a9c6afe9a3f670f0c0adb783'
end
class Proj < Formula
url 'http://download.osgeo.org/proj/proj-4.8.0.tar.gz'
homepage 'http://trac.osgeo.org/proj/'
md5 'd815838c92a29179298c126effbb1537'
fails_with :llvm do
build 2334
end
def skip_clean? path
path.extname == '.la'
end
def install
# The datum grid files are required to support datum shifting
d = Dir.getwd
ProjDatumgrid.new.brew { cp Dir["*"], "#{d}/nad/" }
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end