aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-02-18 00:43:11 +0800
committerXu Cheng2015-02-21 02:49:37 +0800
commit6a63297b43a5cf189c31bbb15fffdd48d35e5402 (patch)
treedac923c60211366ab10bd3af842d46759cd113fc /Library/Formula
parente70e0ee1acf0196c860886cfd9ec15ddd45adc12 (diff)
downloadhomebrew-6a63297b43a5cf189c31bbb15fffdd48d35e5402.tar.bz2
epstool: add test and missing runtime dependency
Closes #36905. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/epstool.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/epstool.rb b/Library/Formula/epstool.rb
index 6a0c4e4ce..6a972a23f 100644
--- a/Library/Formula/epstool.rb
+++ b/Library/Formula/epstool.rb
@@ -1,15 +1,20 @@
-require "formula"
-
class Epstool < Formula
homepage "http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm"
url "http://pkgs.fedoraproject.org/repo/pkgs/epstool/epstool-3.08.tar.gz/465a57a598dbef411f4ecbfbd7d4c8d7/epstool-3.08.tar.gz"
mirror "https://raw.githubusercontent.com/DomT4/LibreMirror/master/Epstool/epstool-3.08.tar.gz"
sha1 "dc495934f06d3ea8b3209e8b02ea96c66c34f614"
+ depends_on "ghostscript"
+
def install
system "make", "install",
"EPSTOOL_ROOT=#{prefix}",
"EPSTOOL_MANDIR=#{man}",
"CC=#{ENV.cc}"
end
+
+ test do
+ system bin/"epstool", "--add-tiff-preview", "--device", "tiffg3", test_fixtures("test.eps"), "test2.eps"
+ assert File.exist?("test2.eps")
+ end
end