Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ghostscript: Add HEAD URL

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
  • Loading branch information...
commit 72b9a7977208019a2339e66d3d9cb41b9a6ef567 1 parent 18caa8c
@felixbuenemann felixbuenemann authored Sharpie committed
Showing with 17 additions and 11 deletions.
  1. +17 −11 Library/Formula/ghostscript.rb
View
28 Library/Formula/ghostscript.rb
@@ -8,18 +8,19 @@ class GhostscriptFonts < Formula
class Ghostscript < Formula
url 'http://downloads.ghostscript.com/public/ghostscript-9.02.tar.bz2'
+ head 'git://git.ghostscript.com/ghostpdl.git'
homepage 'http://www.ghostscript.com/'
md5 'f67151444bd56a7904579fc75a083dd6'
depends_on 'pkg-config' => :build
depends_on 'jpeg'
depends_on 'libtiff'
- depends_on 'jasper'
+ depends_on 'jasper' unless ARGV.build_head?
# The patches fix compilation against libpng 1.5, provided by Lion.
# Patch by @CharlieRoot
def patches
- DATA
+ DATA unless ARGV.build_head?
end
def move_included_source_copies
@@ -41,17 +42,22 @@ def install
# ghostscript configure ignores LDFLAGs apparently
ENV['LIBS']="-L/usr/X11/lib"
- move_included_source_copies
+ src_dir = ARGV.build_head? ? "gs" : "."
- system "./configure", "--prefix=#{prefix}", "--disable-debug",
- # the cups component adamantly installs to /usr so fuck it
- "--disable-cups",
- "--disable-compile-inits",
- "--disable-gtk"
+ cd src_dir do
+ move_included_source_copies
- # versioned stuff in main tree is pointless for us
- inreplace 'Makefile', '/$(GS_DOT_VERSION)', ''
- system "make install"
+ system "./autogen.sh" if ARGV.build_head?
+ system "./configure", "--prefix=#{prefix}", "--disable-debug",
+ # the cups component adamantly installs to /usr so fuck it
+ "--disable-cups",
+ "--disable-compile-inits",
+ "--disable-gtk"
+
+ # versioned stuff in main tree is pointless for us
+ inreplace 'Makefile', '/$(GS_DOT_VERSION)', ''
+ system "make install"
+ end
GhostscriptFonts.new.brew do
Dir.chdir '..'
Please sign in to comment.
Something went wrong with that request. Please try again.