diff options
| author | Xu Cheng | 2015-02-18 11:29:57 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-02-18 11:33:17 +0800 |
| commit | f8eb7fa8b98ba511b0136bd1f498f23c1c425499 (patch) | |
| tree | 677d462219c96f2ca8c90a3b0e5ac6209a1780b0 /Library/Formula/ghostscript.rb | |
| parent | 27be1fbdc251aa36224691cbecd34865b6ff244c (diff) | |
| download | homebrew-f8eb7fa8b98ba511b0136bd1f498f23c1c425499.tar.bz2 | |
ghostscript: add missing `%!PS` in the testcase
The `%!PS` is missing due to a bug in Github.
(See https://github.com/Homebrew/homebrew/pull/36902#issuecomment-74705905)
Also modernize it.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula/ghostscript.rb')
| -rw-r--r-- | Library/Formula/ghostscript.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/ghostscript.rb b/Library/Formula/ghostscript.rb index 9729d5506..21c3c4a23 100644 --- a/Library/Formula/ghostscript.rb +++ b/Library/Formula/ghostscript.rb @@ -18,7 +18,7 @@ class Ghostscript < Formula head do url "git://git.ghostscript.com/ghostpdl.git" - resource 'djvu' do + resource "djvu" do url "git://git.code.sf.net/p/djvu/gsdjvu-git" end @@ -63,7 +63,7 @@ class Ghostscript < Formula # If the install version of any of these doesn't match # the version included in ghostscript, we get errors # Taken from the MacPorts portfile - http://bit.ly/ghostscript-portfile - renames = %w{freetype jbig2dec jpeg libpng tiff} + renames = %w[freetype jbig2dec jpeg libpng tiff] renames.each { |lib| mv lib, "#{lib}_local" } end @@ -99,7 +99,7 @@ class Ghostscript < Formula inreplace "Makefile", "/$(GS_DOT_VERSION)", "" inreplace "Makefile" do |s| - s.change_make_var!("DEVICE_DEVS17","$(DD)djvumask.dev $(DD)djvusep.dev") + s.change_make_var!("DEVICE_DEVS17", "$(DD)djvumask.dev $(DD)djvusep.dev") end if build.with? "djvu" # Install binaries and libraries @@ -114,7 +114,7 @@ class Ghostscript < Formula test do (testpath/"test.ps").write <<-EOS.undent - + %!PS /Courier 20 selectfont 72 500 moveto |
