Skip to content

Commit

Permalink
ghostscript: add missing %!PS in the testcase
Browse files Browse the repository at this point in the history
The `%!PS` is missing due to a bug in Github.
(See Homebrew#36902 (comment))

Also modernize it.

Signed-off-by: Xu Cheng <xucheng@me.com>
  • Loading branch information
xu-cheng committed Feb 18, 2015
1 parent 27be1fb commit f8eb7fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Library/Formula/ghostscript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -63,7 +63,7 @@ def move_included_source_copies
# 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

Expand Down Expand Up @@ -99,7 +99,7 @@ def install
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
Expand All @@ -114,7 +114,7 @@ def install

test do
(testpath/"test.ps").write <<-EOS.undent
%!PS
/Courier
20 selectfont
72 500 moveto
Expand Down

0 comments on commit f8eb7fa

Please sign in to comment.