diff options
| author | Adam Vandenberg | 2013-08-06 21:37:32 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-11 22:05:37 -0700 |
| commit | 5831a942cfe6869f8432dfeda9bb724250572975 (patch) | |
| tree | 7f21203f7ef654921bdccad45dab8a309892a600 | |
| parent | 70c4a008ecadc37da39e7d22fe10fb7b23bfb45d (diff) | |
| download | homebrew-5831a942cfe6869f8432dfeda9bb724250572975.tar.bz2 | |
xapian: use resource
| -rw-r--r-- | Library/Formula/xapian.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/xapian.rb b/Library/Formula/xapian.rb index d5c4000e9..2a07eef04 100644 --- a/Library/Formula/xapian.rb +++ b/Library/Formula/xapian.rb @@ -1,11 +1,5 @@ require 'formula' -class XapianBindings < Formula - homepage 'http://xapian.org' - url 'http://oligarchy.co.uk/xapian/1.2.13/xapian-bindings-1.2.13.tar.gz' - sha1 '0cffc6ae2df295d2f8bc052831ed225e60236e92' -end - class Xapian < Formula homepage 'http://xapian.org' url 'http://oligarchy.co.uk/xapian/1.2.13/xapian-core-1.2.13.tar.gz' @@ -17,6 +11,11 @@ class Xapian < Formula depends_on :python => :optional + resource 'bindings' do + url 'http://oligarchy.co.uk/xapian/1.2.13/xapian-bindings-1.2.13.tar.gz' + sha1 '0cffc6ae2df295d2f8bc052831ed225e60236e92' + end + skip_clean :la def build_any_bindings? @@ -29,7 +28,7 @@ class Xapian < Formula system "make install" return unless build_any_bindings? - XapianBindings.new.brew do + resource('bindings').stage do args = %W[ --disable-dependency-tracking --prefix=#{prefix} |
