homebrew-core/Formula/cimg.rb
Caleb Xu 6572f0ef27 cimg 2.7.0
Closes #43140.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-08-27 00:39:23 +02:00

22 lines
618 B
Ruby

class Cimg < Formula
desc "C++ toolkit for image processing"
homepage "http://cimg.eu/"
url "http://cimg.eu/files/CImg_2.7.0.zip"
sha256 "dbe2e6a95ceec1507562c1820b8e1267aba13a648bba3bac8fccdfcbc41846d1"
bottle :unneeded
def install
include.install "CImg.h"
prefix.install "Licence_CeCILL-C_V1-en.txt", "Licence_CeCILL_V2-en.txt"
pkgshare.install "examples", "plugins"
end
test do
cp_r pkgshare/"examples", testpath
cp_r pkgshare/"plugins", testpath
cp include/"CImg.h", testpath
system "make", "-C", "examples", "image2ascii"
system "examples/image2ascii"
end
end