22 lines
614 B
Ruby
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.2.2.zip"
|
|
sha256 "41fc0968bde3882824bfc2546b41b33fee22cbcca6d22917012c560dc3ad2a5d"
|
|
|
|
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
|