geos: remove options and always depend on swig at build time
This commit is contained in:
parent
aa213091c8
commit
30bea9145f
1 changed files with 5 additions and 13 deletions
|
@ -12,10 +12,8 @@ class Geos < Formula
|
|||
sha256 "5966c5ecea54189c67a3ffb5856176f4bb070ca72b3c3628ad7b76fb67e35de8" => :yosemite
|
||||
end
|
||||
|
||||
option "without-python", "Do not build the Python extension"
|
||||
option "with-ruby", "Build the ruby extension"
|
||||
|
||||
depends_on "swig" => :build if build.with?("python") || build.with?("ruby")
|
||||
depends_on "swig" => :build
|
||||
depends_on "python@2" if MacOS.version <= :snow_leopard
|
||||
|
||||
def install
|
||||
# https://trac.osgeo.org/geos/ticket/771
|
||||
|
@ -24,15 +22,9 @@ class Geos < Formula
|
|||
s.gsub! /PYTHON_LDFLAGS=.*/, 'PYTHON_LDFLAGS="-Wl,-undefined,dynamic_lookup"'
|
||||
end
|
||||
|
||||
args = [
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
]
|
||||
|
||||
args << "--enable-python" if build.with?("python")
|
||||
args << "--enable-ruby" if build.with?("ruby")
|
||||
|
||||
system "./configure", *args
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--enable-python"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue