Skip to content


Subversion checkout URL

You can clone with
Download ZIP


imagesnap formula: give option to install pre-built binary #12995

wants to merge 1 commit into from

4 participants


The imagesnap tarball comes with a prebuilt binary. Give the option to use it instead of building it yourself.
This is especially useful for those without XCode.


If this download includes a pre-built binary, then perhaps we should stop packaging it, especially since it requires Xcode in the first place.


how do you give the option to --no-build?


The pull request hasn't been merged, so the option isn't available.
But you can just download the tar from unpack it and copy the included binary to /usr/local/bin


thanks michihuber. I have done that, however 'brew upgrade' wont be effective on imagesnap unless it is installed by brew.


Since Homebrew's charter is to install from source when possible, passing on this. Self-updating binaries can just be installed by downloading from a website.

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 2 deletions.
  1. +9 −2 Library/Formula/imagesnap.rb
11 Library/Formula/imagesnap.rb
@@ -4,9 +4,16 @@ class Imagesnap < Formula
url ''
homepage ''
md5 '32e341f059a91703816d8aa9b87fb1e4'
+ def options
+ [['--no-build', "Copy the pre-built binary instead of building yourself"]]
+ end
def install
- system "xcodebuild -project ImageSnap.xcodeproj SYMROOT=build -sdk macosx#{MACOS_VERSION}"
- bin.install "build/Release/imagesnap"
+ if ARGV.include? '--no-build'
+ bin.install "imagesnap"
+ else
+ system "xcodebuild -project ImageSnap.xcodeproj SYMROOT=build -sdk macosx#{MACOS_VERSION}"
+ bin.install "build/Release/imagesnap"
+ end
Something went wrong with that request. Please try again.