[152585] trunk/dports/devel/libevent1

ryandesign at macports.org ryandesign at macports.org
Mon Sep 12 12:39:20 PDT 2016


Revision: 152585
          https://trac.macports.org/changeset/152585
Author:   ryandesign at macports.org
Date:     2016-09-12 12:39:19 -0700 (Mon, 12 Sep 2016)
Log Message:
-----------
libevent1: update to 1.4.15

Also detect Tiger's broken kqueue properly. Avoids erroneously detecting
Sierra's kqueue as broken. Resolves #52223

Also use github portgroup.

Modified Paths:
--------------
    trunk/dports/devel/libevent1/Portfile

Added Paths:
-----------
    trunk/dports/devel/libevent1/files/patch-sierra-kqueue.diff

Modified: trunk/dports/devel/libevent1/Portfile
===================================================================
--- trunk/dports/devel/libevent1/Portfile	2016-09-12 19:37:19 UTC (rev 152584)
+++ trunk/dports/devel/libevent1/Portfile	2016-09-12 19:39:19 UTC (rev 152585)
@@ -2,10 +2,10 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           github 1.0
 
 name                libevent1
-version             1.4.14b
-revision            1
+github.setup        libevent libevent 1.4.15-stable release-
 categories          devel
 platforms           darwin
 license             BSD
@@ -23,21 +23,34 @@
                     dynamically without having to change the event loop.
 
 homepage            http://libevent.org
-master_sites        http://monkey.org/~provos/
-distname            libevent-${version}-stable
 dist_subdir         libevent
 
-checksums           sha1    4a834364c28ad652ddeb00b5f83872506eede7d4
+checksums           rmd160  5813137c24a6581fb530858e6c45ce48c6a9edbe \
+                    sha256  92fa504d8f275b7aaceab87f65f0e039c08b1e511acda04cf3822a6e534ab879
 
+depends_build       port:autoconf \
+                    port:automake \
+                    port:libtool
+
+post-extract {
+    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
+}
+
 patchfiles          patch-test__test.sh
 
-configure.args      --mandir=${prefix}/share/man \
-                    --program-suffix=-1.4 \
+patchfiles-append   patch-sierra-kqueue.diff
+
+use_autoreconf      yes
+autoreconf.cmd      ./autogen.sh
+
+configure.args      --program-suffix=-1.4 \
                     --includedir=${prefix}/include/${name} \
                     --libdir=${prefix}/lib/${name}
 
 test.run            yes
 test.target         verify
 
+livecheck.url       ${homepage}
+livecheck.version   [lindex [split ${version} -] 0]
 livecheck.type      regex
 livecheck.regex     libevent-(1(?:\\.\\d+)*)-stable

Added: trunk/dports/devel/libevent1/files/patch-sierra-kqueue.diff
===================================================================
--- trunk/dports/devel/libevent1/files/patch-sierra-kqueue.diff	                        (rev 0)
+++ trunk/dports/devel/libevent1/files/patch-sierra-kqueue.diff	2016-09-12 19:39:19 UTC (rev 152585)
@@ -0,0 +1,14 @@
+Detect Tiger kqueue bug properly on Sierra and later
+https://github.com/libevent/libevent/issues/376
+https://github.com/libevent/libevent/commit/df6f99e5b51a3c0786f54cb9822604ec63385400
+--- kqueue.c.orig	2015-01-05 08:34:32.000000000 -0600
++++ kqueue.c	2016-09-12 14:24:08.000000000 -0500
+@@ -153,7 +153,7 @@
+ 	if (kevent(kq,
+ 		kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
+ 	    kqueueop->events[0].ident != -1 ||
+-	    kqueueop->events[0].flags != EV_ERROR) {
++	    !(kqueueop->events[0].flags & EV_ERROR)) {
+ 		event_warn("%s: detected broken kqueue; not using.", __func__);
+ 		free(kqueueop->changes);
+ 		free(kqueueop->events);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160912/cfa257f8/attachment.html>


More information about the macports-changes mailing list