From 6dd50d1fe462f2237bf7f8f34926514b03d2eea1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 21 Jan 2008 12:04:18 +0000 Subject: [PATCH] * Update to 2.01 * Respect -O flags in CFLAGS Reported by: pav --- devel/libev/Makefile | 2 +- devel/libev/distinfo | 6 ++-- devel/libev/files/patch-Makefile.in | 18 +++-------- devel/libev/files/patch-configure | 50 +++++++++++++++++++++++++++++ devel/libev/pkg-plist | 3 +- 5 files changed, 60 insertions(+), 19 deletions(-) create mode 100644 devel/libev/files/patch-configure diff --git a/devel/libev/Makefile b/devel/libev/Makefile index 5f81121b5ba0..76ce1f8996cc 100644 --- a/devel/libev/Makefile +++ b/devel/libev/Makefile @@ -6,7 +6,7 @@ # PORTNAME= libev -PORTVERSION= 1.86 +PORTVERSION= 2.01 CATEGORIES= devel MASTER_SITES= http://dist.schmorp.de/libev/Attic/ diff --git a/devel/libev/distinfo b/devel/libev/distinfo index e0d5b06c61e2..75791712a318 100644 --- a/devel/libev/distinfo +++ b/devel/libev/distinfo @@ -1,3 +1,3 @@ -MD5 (libev-1.86.tar.gz) = b90a196f7cd8e9b09c2c2caa39615188 -SHA256 (libev-1.86.tar.gz) = 8db02bba92cc563399e9628f687c978b6b33530c8cae7f82e32645f3ca646d53 -SIZE (libev-1.86.tar.gz) = 389386 +MD5 (libev-2.01.tar.gz) = 90717f50e0d23a855138524c09f782b0 +SHA256 (libev-2.01.tar.gz) = 09345bafc459bd49dd06c17002ec562c3c73f787591e7f7fd7d1ca9906e7935e +SIZE (libev-2.01.tar.gz) = 395329 diff --git a/devel/libev/files/patch-Makefile.in b/devel/libev/files/patch-Makefile.in index 473f03de0f0a..1a21dbf05c23 100644 --- a/devel/libev/files/patch-Makefile.in +++ b/devel/libev/files/patch-Makefile.in @@ -1,19 +1,11 @@ ---- Makefile.in.orig 2007-12-18 04:49:11.000000000 +0300 -+++ Makefile.in 2007-12-18 17:18:57.194279648 +0300 -@@ -142,14 +142,14 @@ - VERSION_INFO = 1:0 - - EXTRA_DIST = LICENSE libev.m4 autogen.sh \ -- ev.h ev_vars.h ev_wrap.h event_compat.h ev++.h event.h \ -+ ev.h ev_vars.h ev_wrap.h event_compat.h ev++.h \ - ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c ev_port.c ev_win32.c \ - ev.3 ev.pod - +--- Makefile.in.orig 2007-12-25 10:11:59.000000000 +0300 ++++ Makefile.in 2008-01-21 14:39:26.649768099 +0300 +@@ -149,7 +149,7 @@ man_MANS = ev.3 --include_HEADERS = ev.h event_compat.h ev++.h event.h -+include_HEADERS = ev.h event_compat.h ev++.h +-include_HEADERS = ev.h ev++.h event.h ++include_HEADERS = ev.h ev++.h lib_LTLIBRARIES = libev.la diff --git a/devel/libev/files/patch-configure b/devel/libev/files/patch-configure new file mode 100644 index 000000000000..947059bd02a9 --- /dev/null +++ b/devel/libev/files/patch-configure @@ -0,0 +1,50 @@ +--- configure.orig 2008-01-21 14:41:04.171283374 +0300 ++++ configure 2008-01-21 14:42:41.856789774 +0300 +@@ -3458,18 +3458,6 @@ + echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } + if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +-elif test $ac_cv_prog_cc_g = yes; then +- if test "$GCC" = yes; then +- CFLAGS="-g -O2" +- else +- CFLAGS="-g" +- fi +-else +- if test "$GCC" = yes; then +- CFLAGS="-O2" +- else +- CFLAGS= +- fi + fi + { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 + echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } +@@ -5473,18 +5461,6 @@ + echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } + if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +-elif test $ac_cv_prog_cxx_g = yes; then +- if test "$GXX" = yes; then +- CXXFLAGS="-g -O2" +- else +- CXXFLAGS="-g" +- fi +-else +- if test "$GXX" = yes; then +- CXXFLAGS="-O2" +- else +- CXXFLAGS= +- fi + fi + ac_ext=cpp + ac_cpp='$CXXCPP $CPPFLAGS' +@@ -19140,9 +19116,6 @@ + + + +-if test "x$GCC" = xyes ; then +- CFLAGS="$CFLAGS -O3" +-fi + + + diff --git a/devel/libev/pkg-plist b/devel/libev/pkg-plist index 195e5234ce6c..571d1f49c271 100644 --- a/devel/libev/pkg-plist +++ b/devel/libev/pkg-plist @@ -1,7 +1,6 @@ lib/libev.a lib/libev.la lib/libev.so -lib/libev.so.1 +lib/libev.so.2 include/ev.h include/ev++.h -include/event_compat.h