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