Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

4 participants

@michihuber

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.

@adamv
Owner

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

@microbmen

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

@michihuber

The pull request hasn't been merged, so the option isn't available.
But you can just download the tar from http://downloads.sourceforge.net/project/iharder/imagesnap/ImageSnap-v0.2.5.tgz unpack it and copy the included binary to /usr/local/bin

@microbmen

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

@adamv
Owner

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
View
11 Library/Formula/imagesnap.rb
@@ -4,9 +4,16 @@ class Imagesnap < Formula
url 'http://downloads.sourceforge.net/project/iharder/imagesnap/ImageSnap-v0.2.5.tgz'
homepage 'http://iharder.sourceforge.net/current/macosx/imagesnap/'
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
end
end
Something went wrong with that request. Please try again.