aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-04-17 22:32:55 -0400
committerJack Nagel2015-04-17 22:33:48 -0400
commitdfec604e4d96bbfaf031249089578679fe68ff1f (patch)
treebe6124146bc30ee92bf9a8068d473f984ed7c4cd /Library
parent346f42a3e35d45685017b5da9d0fd4677816bd5c (diff)
downloadhomebrew-dfec604e4d96bbfaf031249089578679fe68ff1f.tar.bz2
Remove more uses of build.head? in the DSL
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/src.rb6
-rw-r--r--Library/Formula/trafficserver.rb4
2 files changed, 7 insertions, 3 deletions
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.