42 lines
1.5 KiB
Ruby
42 lines
1.5 KiB
Ruby
class ArgyllCms < Formula
|
|
desc "ICC compatible color management system"
|
|
homepage "https://www.argyllcms.com/"
|
|
url "https://www.argyllcms.com/Argyll_V2.0.0_src.zip"
|
|
version "2.0.0"
|
|
sha256 "5492896c040b406892864c467466ad6b50eb62954b5874ef0eb9174d1764ff41"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "78bff4029872e5e426021471b40d2f843368517811f261d706a90410743ff4a3" => :high_sierra
|
|
sha256 "b1e55b622b10dff09e0923ad2d3e6bec53b8ba6147446d95a78a830621d9d597" => :sierra
|
|
sha256 "2f05c8e7477d3ff505799ca6bbc9374ec2e3acb4a5ca6203bb20203686aec2c3" => :el_capitan
|
|
end
|
|
|
|
depends_on "jam" => :build
|
|
depends_on "jpeg"
|
|
depends_on "libtiff"
|
|
|
|
conflicts_with "num-utils", :because => "both install `average` binaries"
|
|
|
|
def install
|
|
# dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
|
|
# Reported 20 Aug 2017 to graeme AT argyllcms DOT com
|
|
if MacOS.version == :el_capitan && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
|
|
inreplace "numlib/numsup.c", "CLOCK_MONOTONIC", "UNDEFINED_GIBBERISH"
|
|
end
|
|
|
|
system "sh", "makeall.sh"
|
|
system "./makeinstall.sh"
|
|
rm "bin/License.txt"
|
|
prefix.install "bin", "ref", "doc"
|
|
end
|
|
|
|
test do
|
|
system bin/"targen", "-d", "0", "test.ti1"
|
|
system bin/"printtarg", testpath/"test.ti1"
|
|
%w[test.ti1.ps test.ti1.ti1 test.ti1.ti2].each do |f|
|
|
assert_predicate testpath/f, :exist?
|
|
end
|
|
assert_match "Calibrate a Display", shell_output("#{bin}/dispcal 2>&1", 1)
|
|
end
|
|
end
|