homebrew-core/Formula/cimg.rb
2017-09-24 03:50:39 -07:00

23 lines
627 B
Ruby

class Cimg < Formula
desc "C++ toolkit for image processing"
homepage "http://cimg.eu/"
url "http://cimg.eu/files/CImg_2.0.4.zip"
sha256 "50cdc91f0434364c55211f3578829514fe7ee30824e45094d15b24c5057766d3"
revision 1
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