2011-08-25 21:03:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Bbcp < Formula
|
|
|
|
homepage 'http://www.slac.stanford.edu/%7Eabh/bbcp'
|
2012-02-21 06:04:21 +00:00
|
|
|
url 'http://www.slac.stanford.edu/~abh/bbcp/bbcp.tgz'
|
2013-05-14 16:38:23 +00:00
|
|
|
version '13.05.03.00.0'
|
|
|
|
sha1 '218911904b46f7aff3784705581737f53eccbc53'
|
2013-09-26 00:14:01 +00:00
|
|
|
head 'http://www.slac.stanford.edu/~abh/bbcp/bbcp.git'
|
|
|
|
|
|
|
|
# Adds missing required return type specification on 'main'
|
2014-03-18 03:44:52 +00:00
|
|
|
patch :DATA
|
2011-08-25 21:03:36 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-21 06:04:21 +00:00
|
|
|
mkdir "bin"
|
|
|
|
mkdir "obj"
|
|
|
|
|
2011-08-25 21:03:36 +00:00
|
|
|
cd "src" do
|
|
|
|
system "make", "Darwin"
|
|
|
|
end
|
2012-02-21 06:04:21 +00:00
|
|
|
|
2011-08-25 21:03:36 +00:00
|
|
|
bin.install "bin/bbcp"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-06 05:29:23 +00:00
|
|
|
system "#{bin}/bbcp", "--help"
|
2011-08-25 21:03:36 +00:00
|
|
|
end
|
|
|
|
end
|
2013-09-26 00:14:01 +00:00
|
|
|
|
|
|
|
__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;
|