2011-03-10 05:11:03 +00:00
|
|
|
class Geos < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GEOS Geometry Engine"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://trac.osgeo.org/geos"
|
2014-12-27 16:00:40 +00:00
|
|
|
url "http://download.osgeo.org/geos/geos-3.4.2.tar.bz2"
|
|
|
|
sha1 "b8aceab04dd09f4113864f2d12015231bb318e9a"
|
2010-04-01 22:46:11 +00:00
|
|
|
|
2014-04-10 10:40:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-22 01:39:08 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "b4143e5f3a051ffbd88286d204fac02db95956a7" => :yosemite
|
|
|
|
sha1 "b052b96b44f00ceb6fdc94296c257fa93bf2b0c8" => :mavericks
|
|
|
|
sha1 "d1e56b9aa2d39c087bfc4914515954e21b82350d" => :mountain_lion
|
2014-04-10 10:40:32 +00:00
|
|
|
end
|
|
|
|
|
2012-10-02 20:55:04 +00:00
|
|
|
option :universal
|
2013-10-12 11:35:55 +00:00
|
|
|
option :cxx11
|
2015-05-08 12:46:15 +00:00
|
|
|
option "with-php", "Build the PHP extension"
|
|
|
|
option "with-python", "Build the Python extension"
|
|
|
|
option "with-ruby", "Build the ruby extension"
|
|
|
|
|
|
|
|
depends_on "swig" => :build if build.with?("python") || build.with?("ruby")
|
2012-10-02 20:55:04 +00:00
|
|
|
|
2014-05-15 05:13:53 +00:00
|
|
|
fails_with :llvm
|
|
|
|
|
2009-10-02 18:02:51 +00:00
|
|
|
def install
|
2013-08-27 08:25:14 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2013-10-12 11:35:55 +00:00
|
|
|
ENV.cxx11 if build.cxx11?
|
2013-08-27 08:25:14 +00:00
|
|
|
|
2015-05-08 12:46:15 +00:00
|
|
|
args = [
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
]
|
|
|
|
|
|
|
|
args << "--enable-php" if build.with?("php")
|
|
|
|
args << "--enable-python" if build.with?("python")
|
|
|
|
args << "--enable-ruby" if build.with?("ruby")
|
|
|
|
|
|
|
|
system "./configure", *args
|
2014-12-27 16:00:40 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/geos-config", "--libs"
|
2009-10-02 18:02:51 +00:00
|
|
|
end
|
|
|
|
end
|