diff --git a/Formula/libswiften.rb b/Formula/libswiften.rb index a1d70b467e..a52d7daba3 100644 --- a/Formula/libswiften.rb +++ b/Formula/libswiften.rb @@ -2,21 +2,19 @@ require 'formula' class Libswiften < Formula homepage 'http://swift.im/swiften' - url 'http://swift.im/downloads/releases/swift-1.0/swift-1.0.tar.gz' - sha1 '9f3780e5dca32c0e0a0ad04e36a3f6214400a1ca' + url 'http://swift.im/downloads/releases/swift-2.0/swift-2.0.tar.gz' + sha1 'b04ba098fffb1edc2ef0215957371c249458f0be' head "git://swift.im/swift" - devel do - url 'http://swift.im/downloads/releases/swift-2.0beta2/swift-2.0beta2.tar.gz' - version '2.0beta2' - sha1 '1ad1967f5d1928d1e7ce9a76877912b779e20c8f' - end - depends_on 'scons' => :build 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; end + def install boost = Formula.factory("boost") libidn = Formula.factory("libidn") @@ -40,3 +38,15 @@ class Libswiften < Formula system "#{bin}/swiften-config" end end + +__END__ +--- a/Swiften/EventLoop/EventLoop.cpp ++++ b/Swiften/EventLoop/EventLoop.cpp +@@ -12,6 +12,7 @@ + #include + + #include ++#include + + + namespace Swift {