From de452854d8943cb81f4e72224a65ce7b3af86829 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 19 Mar 2014 12:07:56 -0500 Subject: libswiften: use patch DSL --- Library/Formula/libswiften.rb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Library') 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"] -- cgit v1.2.3