diff options
| author | Mike McQuaid | 2014-01-04 13:04:23 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-04 13:19:21 +0000 |
| commit | 48fbc89b24005433ce3477bc11d57d39b0c44202 (patch) | |
| tree | 585f0d6e732e1afbd4bfb6f006284b7a0e09abac /Library/Formula | |
| parent | 4db8fb6f05bbd3564f0b2ee7107822ffab334ab9 (diff) | |
| download | homebrew-48fbc89b24005433ce3477bc11d57d39b0c44202.tar.bz2 | |
disco: cleanup python usage.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/disco.rb | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/Library/Formula/disco.rb b/Library/Formula/disco.rb index 1f16238fe..c94f75b05 100644 --- a/Library/Formula/disco.rb +++ b/Library/Formula/disco.rb @@ -24,28 +24,24 @@ class Disco < Formula s.change_make_var! "localstatedir", var end - python do - # Disco's "rebar" build tool refuses to build unless it's in a git repo, so - # make a dummy one - system "git init && git add master/rebar && git commit -a -m 'dummy commit'" + # Disco's "rebar" build tool refuses to build unless it's in a git repo, so + # make a dummy one + system "git init && git add master/rebar && git commit -a -m 'dummy commit'" - system "make" - system "make install" - prefix.install %w[contrib doc examples] + system "make" + system "make install" + prefix.install %w[contrib doc examples] - # Fix the config file to point at the linked files, not in to cellar - # This isn't ideal - if there's a settings.py file left over from a previous disco - # installation, it'll issue a Warning - inreplace "#{etc}/disco/settings.py" do |s| - s.gsub!("Cellar/disco/"+version+"/", "") - end + # Fix the config file to point at the linked files, not in to cellar + # This isn't ideal - if there's a settings.py file left over from a previous disco + # installation, it'll issue a Warning + inreplace "#{etc}/disco/settings.py" do |s| + s.gsub!("Cellar/disco/"+version+"/", "") end end def caveats - s = '' - s += python.standard_caveats if python - s += <<-EOS.undent + <<-EOS.undent Please copy #{etc}/disco/settings.py to ~/.disco and edit it if necessary. The DDFS_*_REPLICA settings have been set to 1 assuming a single-machine install. Please see http://discoproject.org/doc/disco/start/install.html for further instructions. |
