Skip to content

Instantly share code, notes, and snippets.

@zph
Created May 17, 2018 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zph/2268c0f0f3ef2385fb91cc2348c425cc to your computer and use it in GitHub Desktop.
Save zph/2268c0f0f3ef2385fb91cc2348c425cc to your computer and use it in GitHub Desktop.
# Documentation: https://docs.brew.sh/Formula-Cookbook
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Perceptualdiff < Formula
desc "A program that compares two images using a perceptually based image metric"
homepage ""
head "https://github.com/myint/perceptualdiff.git", revision: "7ae45fbbe2364c02b9dd54cc83c8f530ba96641b"
depends_on "cmake" => :build
depends_on "freeimage"
def install
ENV.deparallelize # if your formula fails when building in parallel
system "make", "build"
bin.install "build/perceptualdiff"
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! For Homebrew/homebrew-core
# this will need to be a test that verifies the functionality of the
# software. Run the test with `brew test perceptualdiff`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment