xapian: remove some options
This commit is contained in:
parent
91af49c82c
commit
faa0820781
1 changed files with 1 additions and 15 deletions
|
@ -13,12 +13,8 @@ class Xapian < Formula
|
|||
sha256 "1ee62f239e87de8a4ba26c7f74eaefff7ec4841e83a01dbcf14d4a2c712781c0" => :el_capitan
|
||||
end
|
||||
|
||||
option "with-java", "Java bindings"
|
||||
option "with-php", "PHP bindings"
|
||||
option "with-ruby", "Ruby bindings"
|
||||
|
||||
deprecated_option "java" => "with-java"
|
||||
deprecated_option "php" => "with-php"
|
||||
deprecated_option "ruby" => "with-ruby"
|
||||
deprecated_option "with-python" => "with-python@2"
|
||||
|
||||
|
@ -34,14 +30,12 @@ class Xapian < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
build_binds = build.with?("ruby") || build.with?("python@2") || build.with?("java") || build.with?("php")
|
||||
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
|
||||
if build_binds
|
||||
if build.with?("ruby") || build.with?("python@2")
|
||||
resource("bindings").stage do
|
||||
ENV["XAPIAN_CONFIG"] = bin/"xapian-config"
|
||||
|
||||
|
@ -50,8 +44,6 @@ class Xapian < Formula
|
|||
--prefix=#{prefix}
|
||||
]
|
||||
|
||||
args << "--with-java" if build.with? "java"
|
||||
|
||||
if build.with? "ruby"
|
||||
ruby_site = lib/"ruby/site_ruby"
|
||||
ENV["RUBY_LIB"] = ENV["RUBY_LIB_ARCH"] = ruby_site
|
||||
|
@ -73,12 +65,6 @@ class Xapian < Formula
|
|||
args << "--with-python"
|
||||
end
|
||||
|
||||
if build.with? "php"
|
||||
extension_dir = lib/"php/extensions"
|
||||
extension_dir.mkpath
|
||||
args << "--with-php" << "PHP_EXTENSION_DIR=#{extension_dir}"
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue