From c4e656a36ce79de0d01612bb8b63f765502fb603 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 2 Jan 2015 15:51:23 +0800 Subject: icoutils: add test Closes #35453. Signed-off-by: Jack Nagel --- Library/Formula/icoutils.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Formula/icoutils.rb b/Library/Formula/icoutils.rb index fa5ce547b..a99f79070 100644 --- a/Library/Formula/icoutils.rb +++ b/Library/Formula/icoutils.rb @@ -1,17 +1,19 @@ -require 'formula' - class Icoutils < Formula - homepage 'http://www.nongnu.org/icoutils/' - url 'http://savannah.nongnu.org/download/icoutils/icoutils-0.31.0.tar.bz2' - sha1 '2712acd33c611588793562310077efd2ff35dca5' + homepage "http://www.nongnu.org/icoutils/" + url "http://savannah.nongnu.org/download/icoutils/icoutils-0.31.0.tar.bz2" + sha1 "2712acd33c611588793562310077efd2ff35dca5" revision 1 - depends_on 'libpng' + depends_on "libpng" def install system "./configure", "--disable-dependency-tracking", "--disable-rpath", "--prefix=#{prefix}" - system "make install" + system "make", "install" + end + + test do + system "#{bin}/icotool", "-l", test_fixtures("test.ico") end end -- cgit v1.2.3