2013-02-15 19:53:14 +00:00
|
|
|
class Ctl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Programming language for digital color management"
|
2014-05-26 14:49:33 +00:00
|
|
|
homepage "https://github.com/ampas/CTL"
|
2014-06-05 21:57:29 +00:00
|
|
|
url "https://github.com/ampas/CTL/archive/ctl-1.5.2.tar.gz"
|
2015-07-22 20:19:43 +00:00
|
|
|
sha256 "d7fac1439332c4d84abc3c285b365630acf20ea041033b154aa302befd25e0bd"
|
|
|
|
revision 1
|
2013-02-15 19:53:14 +00:00
|
|
|
|
2015-03-12 13:33:02 +00:00
|
|
|
bottle do
|
2016-02-23 20:48:37 +00:00
|
|
|
sha256 "c66847b6d0da88f917d5c701b0faeb91678f9622718fa09734973bef46a2599f" => :el_capitan
|
2015-07-23 03:25:25 +00:00
|
|
|
sha256 "d04f2f46eaa9b3fa1d6e67e0493e8b206f873c6211874962b8ef06865bbf5c71" => :yosemite
|
|
|
|
sha256 "59a4e155666ed1854a2b38204d750ddc0af75ebd988367b1629be4a9f00a6c1f" => :mavericks
|
|
|
|
sha256 "84aaaa696f7ea8837d13a3a1e58d826978be781c01dd5a77fa20197f45b7d25b" => :mountain_lion
|
2015-03-12 13:33:02 +00:00
|
|
|
end
|
|
|
|
|
2014-05-26 14:49:33 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "libtiff"
|
|
|
|
depends_on "ilmbase"
|
|
|
|
depends_on "openexr"
|
|
|
|
depends_on "aces_container"
|
2013-02-15 19:53:14 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-12 12:52:54 +00:00
|
|
|
ENV.delete "CTL_MODULE_PATH"
|
2015-07-22 20:19:43 +00:00
|
|
|
|
2014-05-26 14:49:33 +00:00
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", "..", *std_cmake_args
|
|
|
|
system "make"
|
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
2013-02-15 19:53:14 +00:00
|
|
|
end
|
2015-07-22 20:19:43 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match /transforms an image/, shell_output("#{bin}/ctlrender -help", 1)
|
|
|
|
end
|
2013-02-15 19:53:14 +00:00
|
|
|
end
|