aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ghostscript.rb
diff options
context:
space:
mode:
authorFelix Bùˆnemann2012-01-30 11:42:59 +0100
committerCharlie Sharpsteen2012-02-01 09:05:31 -0800
commit72b9a7977208019a2339e66d3d9cb41b9a6ef567 (patch)
tree8604d2debc245b88454f217b1da91346e2f0c22f /Library/Formula/ghostscript.rb
parent18caa8cfae03da59a432bfab4da90e52b0d2df18 (diff)
downloadhomebrew-72b9a7977208019a2339e66d3d9cb41b9a6ef567.tar.bz2
Ghostscript: Add HEAD URL
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/ghostscript.rb')
-rw-r--r--Library/Formula/ghostscript.rb28
1 files changed, 17 insertions, 11 deletions
diff --git a/Library/Formula/ghostscript.rb b/Library/Formula/ghostscript.rb
index 9f17167c0..cb992a669 100644
--- a/Library/Formula/ghostscript.rb
+++ b/Library/Formula/ghostscript.rb
@@ -8,18 +8,19 @@ end
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 @@ class Ghostscript < Formula
# 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 '..'