require 'formula'
class Resty < Formula
homepage 'https://github.com/micha/resty'
url 'https://github.com/micha/resty/tarball/2.2'
sha1 '0c5271dc66dae7466d8be91979c2c6839ab6af00'
head 'https://github.com/micha/resty.git'
# Don't take +x off these files
skip_clean 'bin'
def install
system "mv README.md README"
bin.install %w[pp resty pypp]
end
def caveats; <<-EOS.undent
The Python printy-printer (pypp) uses the json module, available in
Python 2.6 and newer.
The Perl printy-printer (pp) depends on JSON from CPAN:
cpan JSON
EOS
end
end
in'>index : homebrew
blob: ffedcfafdfe7ae4053c5915c60c82ff4c5e800b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'formula'
class CloudfoundryCli < Formula
homepage 'https://github.com/cloudfoundry/cli'
head 'https://github.com/cloudfoundry/cli.git', :branch => 'master'
url 'https://github.com/cloudfoundry/cli.git', :tag => 'v6.0.0'
depends_on 'go' => :build
def install
inreplace 'src/cf/app_constants.go', 'SHA', 'homebrew'
system 'bin/build'
bin.install 'out/cf'
doc.install 'LICENSE'
end
test do
system "#{bin}/cf"
end
end
|