2012-05-05 04:07:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Serf < Formula
|
|
|
|
homepage 'http://code.google.com/p/serf/'
|
2013-09-17 21:01:41 +00:00
|
|
|
url 'http://serf.googlecode.com/files/serf-1.3.1.tar.bz2'
|
|
|
|
sha1 'b8c8e12e7163d7bacf9be0ea4aaa7b8c32e8c72c'
|
2012-05-05 04:07:36 +00:00
|
|
|
|
2013-09-18 09:57:18 +00:00
|
|
|
bottle do
|
2013-09-20 17:25:46 +00:00
|
|
|
revision 1
|
|
|
|
sha1 'c31a3b3ede3835046c7d85eb8ae34c5b2a95666c' => :mountain_lion
|
|
|
|
sha1 'bc8c4d71c2f26bd0606f6d5adfe3f0a6089e4581' => :lion
|
|
|
|
sha1 '25d62121d1b07921cc49f618eb62d70cca087516' => :snow_leopard
|
2013-09-18 09:57:18 +00:00
|
|
|
end
|
|
|
|
|
2012-08-10 05:17:14 +00:00
|
|
|
option :universal
|
|
|
|
|
2012-08-02 16:00:30 +00:00
|
|
|
depends_on :libtool
|
2013-01-22 16:45:01 +00:00
|
|
|
depends_on 'sqlite'
|
2013-09-17 21:01:41 +00:00
|
|
|
depends_on 'scons' => :build
|
2013-07-26 20:19:53 +00:00
|
|
|
|
2013-09-17 21:01:41 +00:00
|
|
|
# Patch to use only the major version of the dylib
|
|
|
|
# Details: https://code.google.com/p/serf/source/detail?r=2161
|
|
|
|
def patches
|
|
|
|
{ :p0 => DATA }
|
2013-07-26 20:19:53 +00:00
|
|
|
end
|
2012-08-31 15:42:01 +00:00
|
|
|
|
2012-05-05 04:07:36 +00:00
|
|
|
def install
|
2012-08-10 05:17:14 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2013-09-19 01:55:36 +00:00
|
|
|
system "scons", "PREFIX=#{prefix}", "GSSAPI=/usr"
|
2013-09-17 21:01:41 +00:00
|
|
|
system "scons install"
|
2012-05-05 04:07:36 +00:00
|
|
|
end
|
|
|
|
end
|
2013-09-17 21:01:41 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- SConstruct~ 2013-08-15 11:13:20.000000000 +0200
|
|
|
|
+++ SConstruct 2013-09-17 22:52:50.000000000 +0200
|
|
|
|
@@ -401,7 +401,7 @@
|
|
|
|
# to a path in the sandbox. The shared library install name (id) should be the
|
|
|
|
# final targat path.
|
|
|
|
install_shared_path = install_shared[0].abspath
|
|
|
|
- target_install_shared_path = os.path.join(libdir, lib_shared[0].name)
|
|
|
|
+ target_install_shared_path = os.path.join(libdir, '%s.dylib' % LIBNAME)
|
|
|
|
env.AddPostAction(install_shared, ('install_name_tool -id %s %s'
|
|
|
|
% (target_install_shared_path,
|
|
|
|
install_shared_path)))
|