diff options
| author | Jack Nagel | 2013-09-16 23:06:34 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-16 23:06:34 -0500 |
| commit | db0ed8c4bbe48aa75fc7c4ad9022e2a29ec4f4a7 (patch) | |
| tree | 251a24a3b131e372ea048c29ceba04064aae20e6 /Library/Formula | |
| parent | 556d0ff117cd9af91d32fa334105ffc35fb42799 (diff) | |
| download | homebrew-db0ed8c4bbe48aa75fc7c4ad9022e2a29ec4f4a7.tar.bz2 | |
redland: use resource
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/redland.rb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Library/Formula/redland.rb b/Library/Formula/redland.rb index f57683149..90b7839a4 100644 --- a/Library/Formula/redland.rb +++ b/Library/Formula/redland.rb @@ -1,11 +1,5 @@ require 'formula' -class RedlandBindings < Formula - homepage 'http://librdf.org/bindings/' - url 'http://download.librdf.org/source/redland-bindings-1.0.16.1.tar.gz' - sha1 '98c20b64cf5e99cbf29fcb84490e73e2a828213a' -end - class Redland < Formula homepage 'http://librdf.org/' url 'http://download.librdf.org/source/redland-1.0.16.tar.gz' @@ -21,6 +15,11 @@ class Redland < Formula depends_on 'berkeley-db' => :optional depends_on :python => :optional + resource 'bindings' do + url 'http://download.librdf.org/source/redland-bindings-1.0.16.1.tar.gz' + sha1 '98c20b64cf5e99cbf29fcb84490e73e2a828213a' + end + fails_with :llvm do build 2334 end @@ -48,8 +47,8 @@ class Redland < Formula system "./configure", *args system "make install" - if build.with? 'perl' or build.with? 'php' or build.with? 'ruby' or build.with? 'python' - RedlandBindings.new.brew do + if %w{php python ruby}.any? { |lang| build.with? lang } + resource('bindings').stage do args = %W[ --disable-debug --disable-dependency-tracking |
