diff options
| author | Mike McQuaid | 2012-09-02 01:13:54 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2012-09-04 19:44:45 -0700 |
| commit | 746615c1a80df58510b40b38d39aa242d6415bb3 (patch) | |
| tree | e2491a2991819717e891c2daab7003ec48846b96 /Library/Formula | |
| parent | cb00084fe5403625c7619419dcce4c7a8f282fdc (diff) | |
| download | homebrew-746615c1a80df58510b40b38d39aa242d6415bb3.tar.bz2 | |
tiff2png: fix SHA1, test and X11 dependency.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tiff2png.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Library/Formula/tiff2png.rb b/Library/Formula/tiff2png.rb index c5f85fe4b..de670e004 100644 --- a/Library/Formula/tiff2png.rb +++ b/Library/Formula/tiff2png.rb @@ -5,8 +5,8 @@ class Tiff2png < Formula url 'ftp://ftp.simplesystems.org/pub/libpng/png/applications/tiff2png/tiff2png-0.91.tar.gz' sha1 '3a23abaaadbed8f3d13b88241257fe2078eb61fd' - depends_on :x11 depends_on 'libtiff' + depends_on :libpng depends_on 'jpeg' # libpng 1.5 no longer #includes zlib.h @@ -18,12 +18,17 @@ class Tiff2png < Formula "LIBTIFF=#{HOMEBREW_PREFIX}/lib", "TIFFINC=#{HOMEBREW_PREFIX}/include", "LIBJPEG=#{HOMEBREW_PREFIX}/lib", - "LIBPNG=#{MacOS::X11.lib}", - "PNGINC=#{MacOS::X11.include}", "ZLIB=/usr/lib", "DEBUGFLAGS=" bin.install 'tiff2png' end + + def test + mktemp do + system "#{bin}/tiff2png", \ + "/System/Library/Frameworks/AppKit.framework/Versions/C/Resources/GrammarDot.tiff" + end + end end __END__ |
