aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bbcp.rb
blob: 59ef633a397f9908fb77015ec68a5a2c22da704b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'formula'

class Bbcp < Formula
  homepage 'http://www.slac.stanford.edu/%7Eabh/bbcp'
  url 'http://www.slac.stanford.edu/~abh/bbcp/bbcp.tgz'
  version '13.05.03.00.0'
  sha1 '218911904b46f7aff3784705581737f53eccbc53'
  head 'http://www.slac.stanford.edu/~abh/bbcp/bbcp.git'

  # Adds missing required return type specification on 'main'
  patch :DATA

  def install
    mkdir %w{bin obj}
    system "make", "-C", "src", "Darwin"
    bin.install "bin/bbcp"
  end

  test do
    system "#{bin}/bbcp", "--help"
  end
end

__END__
diff --git c/src/bbcp.C w/src/bbcp.C
index 03c6d4e..7116fff 100644
--- c/src/bbcp.C
+++ w/src/bbcp.C
@@ -58,7 +58,7 @@ extern bbcp_System   bbcp_OS;
 /*                                  m a i n                                   */
 /******************************************************************************/
   
-main(int argc, char *argv[], char *envp[])
+int main(int argc, char *argv[], char *envp[])
 {
    bbcp_Node     *Source, *Sink;
    bbcp_Protocol  Protocol;