homebrew-core/Formula/cimg.rb
Caleb Xu a47f3e45f4
cimg 2.5.4
Closes #38355.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-03-27 15:10:33 +08:00

22 lines
614 B
Ruby

class Cimg < Formula
desc "C++ toolkit for image processing"
homepage "http://cimg.eu/"
url "http://cimg.eu/files/CImg_2.5.4.zip"
sha256 "1036dc2d1c13bc578c4391e58fec53e87dc8a5591a370a8c99bcc6e99f8abe22"
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", "mmacosx"
system "examples/image2ascii"
end
end