Created
May 17, 2018 01:51
-
-
Save zph/2268c0f0f3ef2385fb91cc2348c425cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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