2015-05-28 15:56:54 +00:00
|
|
|
class Negfix8 < Formula
|
2015-06-02 15:53:34 +00:00
|
|
|
desc "Turn scanned negative images into positives"
|
2015-05-28 15:56:54 +00:00
|
|
|
homepage "https://sites.google.com/site/negfix"
|
|
|
|
url "https://sites.google.com/site/negfix/downloads/negfix8.3.tgz"
|
|
|
|
sha256 "2f360b0dd16ca986fbaebf5873ee55044cae591546b573bb17797cbf569515bd"
|
|
|
|
|
|
|
|
depends_on "imagemagick" => "with-quantum-depth-16"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install "negfix8"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/".negfix8/frameprofile").write "1 1 1 1 1 1 1"
|
|
|
|
system "#{bin}/negfix8", "-u", "frameprofile", test_fixtures("test.tiff"),
|
|
|
|
"#{testpath}/output.tiff"
|
|
|
|
assert (testpath/"output.tiff").exist?
|
|
|
|
end
|
|
|
|
end
|