diff options
Diffstat (limited to 'homebrew/vncsnapshot')
-rw-r--r-- | homebrew/vncsnapshot/.beer | 48 | ||||
-rw-r--r-- | homebrew/vncsnapshot/.make.sh-auto | 5 | ||||
-rw-r--r-- | homebrew/vncsnapshot/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/vncsnapshot/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/vncsnapshot/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/vncsnapshot/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/vncsnapshot/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/vncsnapshot/patches.sh | 20 |
8 files changed, 78 insertions, 0 deletions
diff --git a/homebrew/vncsnapshot/.beer b/homebrew/vncsnapshot/.beer new file mode 100644 index 000000000..add5fbc0d --- /dev/null +++ b/homebrew/vncsnapshot/.beer @@ -0,0 +1,48 @@ +{ + "name": "Vncsnapshot", + "description": "Command-line utility for taking VNC snapshots", + "url": "https://downloads.sourceforge.net/project/vncsnapshot/vncsnapshot/1.2a/vncsnapshot-1.2a-src.tar.gz", + "mirror": null, + "homepage": "https://sourceforge.net/projects/vncsnapshot/", + "depends": [ + { + "depend": "jpeg", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/sockets.cxx b/sockets.cxx\n", + "index ecdf0db..6c827fa 100644\n", + "--- a/sockets.cxx\n", + "+++ b/sockets.cxx\n", + "@@ -38,9 +38,9 @@ typedef int socklen_t;\n", + " #include <fcntl.h>\n", + " #endif\n", + "\n", + "-#ifdef __APPLE__\n", + "-typedef int socklen_t;\n", + "-#endif\n", + "+//#ifdef __APPLE__\n", + "+//typedef int socklen_t;\n", + "+//#endif\n", + "\n", + " extern \"C\" {\n", + " #include \"vncsnapshot.h\"\n" + ] + } + ], + "install": [ + "inreplace \"rfb.h\", \"typedef unsigned long CARD32;\",", + "\"typedef unsigned int CARD32;\"", + "system \"make\"", + "bin.install \"vncsnapshot\", \"vncpasswd\"", + "man1.install \"vncsnapshot.man1\" => \"vncsnapshot.1\"" + ], + "version": "1.2", + "file": "vncsnapshot.rb" +}
\ No newline at end of file diff --git a/homebrew/vncsnapshot/.make.sh-auto b/homebrew/vncsnapshot/.make.sh-auto new file mode 100644 index 000000000..0de8fd1e5 --- /dev/null +++ b/homebrew/vncsnapshot/.make.sh-auto @@ -0,0 +1,5 @@ +pkg:setup +inreplace "rfb.h", "typedef unsigned long CARD32;", "typedef unsigned int CARD32;" +make +bin.install "vncsnapshot", "vncpasswd" +man1.install "vncsnapshot.man1" => "vncsnapshot.1" diff --git a/homebrew/vncsnapshot/_metadata/description b/homebrew/vncsnapshot/_metadata/description new file mode 100644 index 000000000..3bf3a9548 --- /dev/null +++ b/homebrew/vncsnapshot/_metadata/description @@ -0,0 +1 @@ +Command-line utility for taking VNC snapshots diff --git a/homebrew/vncsnapshot/_metadata/homepage b/homebrew/vncsnapshot/_metadata/homepage new file mode 100644 index 000000000..94b59c749 --- /dev/null +++ b/homebrew/vncsnapshot/_metadata/homepage @@ -0,0 +1 @@ +https://sourceforge.net/projects/vncsnapshot/ diff --git a/homebrew/vncsnapshot/_metadata/name b/homebrew/vncsnapshot/_metadata/name new file mode 100644 index 000000000..f0fe75a95 --- /dev/null +++ b/homebrew/vncsnapshot/_metadata/name @@ -0,0 +1 @@ +Vncsnapshot diff --git a/homebrew/vncsnapshot/_metadata/version b/homebrew/vncsnapshot/_metadata/version new file mode 100644 index 000000000..5625e59da --- /dev/null +++ b/homebrew/vncsnapshot/_metadata/version @@ -0,0 +1 @@ +1.2 diff --git a/homebrew/vncsnapshot/download.sh b/homebrew/vncsnapshot/download.sh new file mode 100755 index 000000000..00544d172 --- /dev/null +++ b/homebrew/vncsnapshot/download.sh @@ -0,0 +1 @@ +wget https://downloads.sourceforge.net/project/vncsnapshot/vncsnapshot/1.2a/vncsnapshot-1.2a-src.tar.gz
\ No newline at end of file diff --git a/homebrew/vncsnapshot/patches.sh b/homebrew/vncsnapshot/patches.sh new file mode 100755 index 000000000..f12809d5f --- /dev/null +++ b/homebrew/vncsnapshot/patches.sh @@ -0,0 +1,20 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +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" +EOF |