From dfec604e4d96bbfaf031249089578679fe68ff1f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 17 Apr 2015 22:32:55 -0400 Subject: Remove more uses of build.head? in the DSL --- Library/Formula/src.rb | 6 ++++-- Library/Formula/trafficserver.rb | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Formula/src.rb b/Library/Formula/src.rb index bf0296305..f17e7bf62 100644 --- a/Library/Formula/src.rb +++ b/Library/Formula/src.rb @@ -3,7 +3,10 @@ class Src < Formula url "http://www.catb.org/~esr/src/src-0.19.tar.gz" sha256 "3d9c5c2fe816b3f273aab17520b917a774e90776c766f165efb6ae661378a65c" - head "git://thyrsus.com/repositories/src.git" + head do + url "git://thyrsus.com/repositories/src.git" + depends_on "asciidoc" => :build + end bottle do cellar :any @@ -15,7 +18,6 @@ class Src < Formula conflicts_with "srclib", :because => "both install a 'src' binary" depends_on "rcs" - depends_on "asciidoc" if build.head? def install # OSX doesn't provide a /usr/bin/python2. Upstream has been notified but diff --git a/Library/Formula/trafficserver.rb b/Library/Formula/trafficserver.rb index 16764a7c1..373e58114 100644 --- a/Library/Formula/trafficserver.rb +++ b/Library/Formula/trafficserver.rb @@ -30,7 +30,9 @@ class Trafficserver < Formula # Patch 1: OpenSSL 1.0.2+ tls1.h detection, remove on 5.3.0 (upstream bug TS-3443) # Patch 2: Xcode 6.3 compile fix, remove on 5.3.0 (upstream bug TS-3302) - patch :DATA if build.stable? + stable do + patch :DATA + end def install # Needed for correct ./configure detections. -- cgit v1.2.3