homebrew-core/Formula/cimg.rb
2019-09-03 19:20:31 -04: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.1.zip"
sha256 "3ff9805ca2534775e3a41acfff9b2c6435e43dce7e84c0532fcdff62a68481d3"
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