aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-02-21 01:54:54 +0800
committerXu Cheng2015-02-21 02:57:31 +0800
commitc5290a8af1d913e26b568af671a2a2f6471be6f0 (patch)
tree4f4670b72319ecbf53908c6f8a497f307e4770a5 /Library/Formula
parent7d2be033bddff174d150191a564b64b95dc401fb (diff)
downloadhomebrew-c5290a8af1d913e26b568af671a2a2f6471be6f0.tar.bz2
pstoedit: add test
Closes #36902. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pstoedit.rb25
1 files changed, 14 insertions, 11 deletions
diff --git a/Library/Formula/pstoedit.rb b/Library/Formula/pstoedit.rb
index b2de81e82..cb8104f1c 100644
--- a/Library/Formula/pstoedit.rb
+++ b/Library/Formula/pstoedit.rb
@@ -1,21 +1,24 @@
-require 'formula'
-
class Pstoedit < Formula
- homepage 'http://www.pstoedit.net'
- url 'https://downloads.sourceforge.net/project/pstoedit/pstoedit/3.62/pstoedit-3.62.tar.gz'
- sha1 '50d5a4e2fe0e0ff2f73cb094cb945b221083e742'
+ homepage "http://www.pstoedit.net"
+ url "https://downloads.sourceforge.net/project/pstoedit/pstoedit/3.62/pstoedit-3.62.tar.gz"
+ sha1 "50d5a4e2fe0e0ff2f73cb094cb945b221083e742"
revision 1
- depends_on 'pkg-config' => :build
- depends_on 'plotutils'
- depends_on 'ghostscript'
- depends_on 'imagemagick'
- depends_on 'xz' if MacOS.version < :mavericks
+ depends_on "pkg-config" => :build
+ depends_on "plotutils"
+ depends_on "ghostscript"
+ depends_on "imagemagick"
+ depends_on "xz" if MacOS.version < :mavericks
def install
ENV.deparallelize
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ system bin/"pstoedit", "-f", "pdf", test_fixtures("test.ps"), "test.pdf"
+ assert File.exist?("test.pdf")
end
end