Skip to content

Commit

Permalink
cairo: Added HEAD (#1302)
Browse files Browse the repository at this point in the history
* 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 4387ec3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Formula/cairo.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 4387ec3

Please sign in to comment.