7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
28 lines
684 B
Ruby
28 lines
684 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.7.0.tar.gz'
|
|
homepage 'http://trac.osgeo.org/proj/'
|
|
md5 '927d34623b52e0209ba2bfcca18fe8cd'
|
|
|
|
def skip_clean? path
|
|
path.extname == '.la'
|
|
end
|
|
|
|
def install
|
|
fails_with_llvm
|
|
|
|
# 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
|
|
|