aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-17 12:06:06 -0700
committerAdam Vandenberg2012-03-17 12:06:06 -0700
commite1a8bbca8dee0c676e7a32a78305284a6467313c (patch)
treebc8c0db58b79f3d4b2c058a4b33b3cc333393327 /Library
parentaa46c7638ffcdf2a7e557226451b8f277125b8b1 (diff)
downloadhomebrew-e1a8bbca8dee0c676e7a32a78305284a6467313c.tar.bz2
gearman 0.29
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gearman.rb61
1 files changed, 5 insertions, 56 deletions
diff --git a/Library/Formula/gearman.rb b/Library/Formula/gearman.rb
index 638a0ba3f..44a582c50 100644
--- a/Library/Formula/gearman.rb
+++ b/Library/Formula/gearman.rb
@@ -2,20 +2,14 @@ require 'formula'
class Gearman < Formula
homepage 'http://gearman.org/'
- url 'http://launchpad.net/gearmand/trunk/0.28/+download/gearmand-0.28.tar.gz'
- md5 '43fc281297489a53d4ee081e33c728db'
+ url 'http://launchpad.net/gearmand/trunk/0.29/+download/gearmand-0.29.tar.gz'
+ md5 '219bb33d2629cb268feb15118d83642b'
+ depends_on 'pkg-config' => :build
depends_on 'boost'
depends_on 'libevent'
depends_on 'ossp-uuid'
- # gearman-0.28 build error "ld: library not found for -lrt"
- # see https://bugs.launchpad.net/gearmand/+bug/951198
- # fixed upstream for 0.29
- def patches
- DATA
- end
-
def install
system "./configure", "--prefix=#{prefix}"
system "make install"
@@ -24,8 +18,7 @@ class Gearman < Formula
plist_path.chmod 0644
end
- def caveats
- <<-EOS.undent
+ def caveats; <<-EOS.undent
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp #{plist_path} ~/Library/LaunchAgents/
@@ -41,8 +34,7 @@ class Gearman < Formula
EOS
end
- def startup_plist
- return <<-EOPLIST
+ def startup_plist; <<-EOPLIST
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
@@ -61,46 +53,3 @@ class Gearman < Formula
EOPLIST
end
end
-
-__END__
---- gearmand-0.28/configure.ac.orig 2012-03-09 14:56:28.000000000 -0500
-+++ gearmand-0.28/configure.ac 2012-03-09 14:56:58.000000000 -0500
-@@ -184,12 +184,12 @@
- # Check for -lm
- AC_CHECK_LIB([m], [floor],
- [
-- M_LIB="-lrt"
-+ M_LIB="-lm"
- AC_SUBST(M_LIB)
-- AC_DEFINE([HAVE_LIBRT], [ 1 ], [Have clock_gettime])
-+ AC_DEFINE([HAVE_LIBM], [ 1 ], [Have floor])
- ],
- [
-- AC_DEFINE([HAVE_LIBRT], [ 0 ], [Have clock_gettime])
-+ AC_DEFINE([HAVE_LIBM], [ 0 ], [Have floor])
- ])
-
- AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
-
---- gearmand-0.28/configure.orig 2012-03-09 15:06:11.000000000 -0500
-+++ gearmand-0.28/configure 2012-03-09 15:06:45.000000000 -0500
-@@ -25755,16 +25790,16 @@
- $as_echo "$ac_cv_lib_m_floor" >&6; }
- if test "x$ac_cv_lib_m_floor" = xyes; then :
-
-- M_LIB="-lrt"
-+ M_LIB="-lm"
-
-
--$as_echo "#define HAVE_LIBRT 1 " >>confdefs.h
-+$as_echo "#define HAVE_LIBM 1 " >>confdefs.h
-
-
- else
-
-
--$as_echo "#define HAVE_LIBRT 0 " >>confdefs.h
-+$as_echo "#define HAVE_LIBM 0 " >>confdefs.h
-
-
- fi