homebrew-core/Formula/vncsnapshot.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

40 lines
1,016 B
Ruby

class Vncsnapshot < Formula
desc "Command-line utility for taking VNC snapshots"
homepage "http://sourceforge.net/projects/vncsnapshot/"
url "https://downloads.sourceforge.net/project/vncsnapshot/vncsnapshot/1.2a/vncsnapshot-1.2a-src.tar.gz"
sha256 "20f5bdf6939a0454bc3b41e87e41a5f247d7efd1445f4fac360e271ddbea14ee"
depends_on "jpeg"
patch :DATA # remove old PPC __APPLE__ ifdef from sockets.cxx
def install
# From Ubuntu
inreplace "rfb.h" do |s|
s.gsub! /typedef unsigned long CARD32;/, "typedef unsigned int CARD32;"
end
system "make"
bin.install "vncsnapshot", "vncpasswd"
man1.install "vncsnapshot.man1" => "vncsnapshot.1"
end
end
__END__
diff --git a/sockets.cxx b/sockets.cxx
index ecdf0db..6c827fa 100644
--- a/sockets.cxx
+++ b/sockets.cxx
@@ -38,9 +38,9 @@ typedef int socklen_t;
#include <fcntl.h>
#endif
-#ifdef __APPLE__
-typedef int socklen_t;
-#endif
+//#ifdef __APPLE__
+//typedef int socklen_t;
+//#endif
extern "C" {
#include "vncsnapshot.h"