Permalink
Browse files

cairo: Added HEAD (#1302)

* Added HEAD to cairo formula

* Reconfigured for brevity

* Added HTTPS

* Don't run configure twice for HEAD builds
  • Loading branch information...
davenquinn authored and MikeMcQuaid committed Jun 1, 2016
1 parent 8cd92ea commit 4387ec3990dcadfdb2e28951f0558412ea885b56
Showing with 12 additions and 1 deletion.
  1. +12 −1 Formula/cairo.rb
@@ -17,6 +17,13 @@ class Cairo < Formula
sha256 "268cc265a7f807403582f440643064bf52896556766890c8df7bad02d230f6c9"
end
head do
url "https://anongit.freedesktop.org/git/cairo", :using => :git
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "libtool" => :build
end
keg_only :provided_pre_mountain_lion
option :universal
@@ -47,7 +54,11 @@ def install
args << "--enable-xcb=no" << "--enable-xlib=no" << "--enable-xlib-xrender=no"
end
system "./configure", *args
if build.head?
system "./autogen.sh", *args
else
system "./configure", *args
end
system "make", "install"
end

0 comments on commit 4387ec3

Please sign in to comment.