libswiften 2.0
Closes Homebrew/homebrew#19990. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
e13881618d
commit
e237d47782
1 changed files with 18 additions and 8 deletions
|
@ -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 <cassert>
|
||||
|
||||
#include <Swiften/Base/Log.h>
|
||||
+#include <boost/thread/locks.hpp>
|
||||
|
||||
|
||||
namespace Swift {
|
||||
|
|
Loading…
Reference in a new issue