From 3ae24f768bca5212c244bb18dbca43e602987837 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 10 Mar 2017 18:50:34 +0000 Subject: [PATCH] giflib@5: import from homebrew/versions. --- Formula/giflib@5.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Formula/giflib@5.rb diff --git a/Formula/giflib@5.rb b/Formula/giflib@5.rb new file mode 100644 index 0000000000..23df45aaef --- /dev/null +++ b/Formula/giflib@5.rb @@ -0,0 +1,17 @@ +class GiflibAT5 < Formula + desc "Library and utilities for processing GIFs" + homepage "http://giflib.sourceforge.net/" + url "https://downloads.sourceforge.net/project/giflib/giflib-5.1.3.tar.bz2" + sha256 "5096d27805283599b01074d487ad3f8e02bd26b84d759b9017be876ca3d5b81d" + + keg_only :versioned_formula + + def install + system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" + system "make", "install" + end + + test do + assert_match /Screen Size - Width = 1, Height = 1/, shell_output("#{bin}/giftext #{test_fixtures("test.gif")}") + end +end