[81816] trunk/dports/sysutils/beanstalkd

nick at macports.org nick at macports.org
Fri Aug 5 03:22:40 PDT 2011


Revision: 81816
          http://trac.macports.org/changeset/81816
Author:   nick at macports.org
Date:     2011-08-05 03:22:39 -0700 (Fri, 05 Aug 2011)
Log Message:
-----------
Use libevent1 as there are compat problems with libevent 2.X , and prevent clang being used as the compiler. #30553

Modified Paths:
--------------
    trunk/dports/sysutils/beanstalkd/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/beanstalkd/files/
    trunk/dports/sysutils/beanstalkd/files/patch-configure.diff

Modified: trunk/dports/sysutils/beanstalkd/Portfile
===================================================================
--- trunk/dports/sysutils/beanstalkd/Portfile	2011-08-05 09:22:34 UTC (rev 81815)
+++ trunk/dports/sysutils/beanstalkd/Portfile	2011-08-05 10:22:39 UTC (rev 81816)
@@ -2,30 +2,36 @@
 
 PortSystem 1.0
 
-name			beanstalkd
-version			1.4.6
-revision		1
-description		a fast, distributed, in-memory workqueue service
-long_description	\
-	beanstalkd is a fast, distributed, in-memory workqueue service. \
-	Its interface is generic, but is intended for use in reducing the \
-	latency of page views in high-volume web applications by running most \
-	time-consuming tasks asynchronously.
-maintainers		nick
-categories		sysutils
-platforms		darwin
-homepage		http://xph.us/software/beanstalkd/
-master_sites		http://xph.us/dist/beanstalkd/
-checksums		md5 3dbbb64a6528efaaaa841ea83b30768e \
-			sha1 1ee0d731e22aa45fb22e816f6e364913595f6e65 \
-			rmd160 f1641f15b32731f19a39721d8b37da940a145672
+name                    beanstalkd
+version                 1.4.6
+revision                2
+description             a fast, distributed, in-memory workqueue service
+long_description        \
+        beanstalkd is a fast, distributed, in-memory workqueue service. \
+        Its interface is generic, but is intended for use in reducing the \
+        latency of page views in high-volume web applications by running most \
+        time-consuming tasks asynchronously.
+maintainers             nick
+categories              sysutils
+platforms               darwin
+homepage                http://xph.us/software/beanstalkd/
+master_sites            http://xph.us/dist/beanstalkd/
+checksums               md5 3dbbb64a6528efaaaa841ea83b30768e \
+                        sha1 1ee0d731e22aa45fb22e816f6e364913595f6e65 \
+                        rmd160 f1641f15b32731f19a39721d8b37da940a145672
 
-depends_lib		port:libevent \
-			port:gmake
+patchfiles              patch-configure.diff
 
-configure.args      --prefix=${prefix} \
-                    --with-event=${prefix}
+depends_lib             port:libevent1 \
+                        port:gmake
 
+configure.args          --with-event=${prefix}
+
+# Version 1.4.6 has problems with clang as the compiler
+if {${configure.compiler} == "clang"} {
+        configure.compiler gcc-4.2
+}
+
 startupitem.create      yes
 startupitem.executable  ${prefix}/bin/beanstalkd -u nobody
 

Added: trunk/dports/sysutils/beanstalkd/files/patch-configure.diff
===================================================================
--- trunk/dports/sysutils/beanstalkd/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/sysutils/beanstalkd/files/patch-configure.diff	2011-08-05 10:22:39 UTC (rev 81816)
@@ -0,0 +1,29 @@
+--- configure.orig	2010-05-22 17:24:01.000000000 -0400
++++ configure	2011-08-02 14:09:41.000000000 -0400
+@@ -4426,13 +4426,13 @@
+ 
+   if test "x$with_event" = "xyes"; then
+     for i in `echo "$STANDARD_PREFIXES"`; do
+-      if test -f "$i/include/event.h"; then
++      if test -f "$i/include/libevent1/event.h"; then
+         LIBEVENT_DIR="$i"
+         break;
+       fi
+     done
+   else
+-    if test -f "$with_event/include/event.h"; then
++    if test -f "$with_event/include/libevent1/event.h"; then
+       LIBEVENT_DIR="$with_event"
+       break;
+     else
+@@ -4446,8 +4446,8 @@
+ 
+   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEVENT_DIR" >&5
+ $as_echo "$LIBEVENT_DIR" >&6; }
+-  LDFLAGS="$LDFLAGS -L$LIBEVENT_DIR/$LIBDIR"
+-  CFLAGS="$CFLAGS -I$LIBEVENT_DIR/include"
++  LDFLAGS="$LDFLAGS -L$LIBEVENT_DIR/$LIBDIR/libevent1"
++  CFLAGS="$CFLAGS -I$LIBEVENT_DIR/include/libevent1"
+   LIBS="$LIBS -levent"
+ 
+   for ac_func in posix_fallocate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110805/2d469af6/attachment.html>


More information about the macports-changes mailing list