aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-19 12:07:56 -0500
committerJack Nagel2014-03-19 18:57:18 -0500
commitde452854d8943cb81f4e72224a65ce7b3af86829 (patch)
tree956342470aab7b1db84dddc57bf9e633148793e2 /Library/Formula
parent31ff798f791a5f573e21e21dbb26b9c5f420d7ce (diff)
downloadhomebrew-de452854d8943cb81f4e72224a65ce7b3af86829.tar.bz2
libswiften: use patch DSL
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libswiften.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/Library/Formula/libswiften.rb b/Library/Formula/libswiften.rb
index 0a5af52b5..b8bcf1655 100644
--- a/Library/Formula/libswiften.rb
+++ b/Library/Formula/libswiften.rb
@@ -2,8 +2,15 @@ require 'formula'
class Libswiften < Formula
homepage 'http://swift.im/swiften'
- url 'http://swift.im/downloads/releases/swift-2.0/swift-2.0.tar.gz'
- sha1 'b04ba098fffb1edc2ef0215957371c249458f0be'
+
+ stable do
+ url "http://swift.im/downloads/releases/swift-2.0/swift-2.0.tar.gz"
+ sha1 "b04ba098fffb1edc2ef0215957371c249458f0be"
+
+ # Patch to include lock from boost. Taken from
+ # http://comments.gmane.org/gmane.linux.redhat.fedora.extras.cvs/957411
+ patch :DATA
+ end
head do
url 'git://swift.im/swift'
@@ -14,10 +21,6 @@ class Libswiften < Formula
depends_on 'libidn'
depends_on 'boost'
- # Patch to include lock from boost. Taken from
- # http://comments.gmane.org/gmane.linux.redhat.fedora.extras.cvs/957411
- def patches; DATA unless build.head?; end
-
def install
boost = Formula["boost"]
libidn = Formula["libidn"]