From d92f8ffc2f4a0304fa853e88dfb6a63a065ccf3e Mon Sep 17 00:00:00 2001 From: Anton Berezin Date: Wed, 11 Jan 2006 13:17:31 +0000 Subject: Update to 1.7 (which is >1.11, strangely enough, so PORTEPOCH++). --- devel/p5-Coro/Makefile | 40 +++++----- devel/p5-Coro/distinfo | 6 +- devel/p5-Coro/files/patch-Coro-Makefile.PL | 120 +++++++++++++++++++++++++++++ devel/p5-Coro/files/patch-Coro-State.xs | 13 ++++ devel/p5-Coro/files/patch-Coro:Makefile.PL | 69 ----------------- devel/p5-Coro/files/patch-Coro:State.xs | 13 ---- devel/p5-Coro/files/patch-coro.c | 10 +++ devel/p5-Coro/pkg-plist | 1 + 8 files changed, 168 insertions(+), 104 deletions(-) create mode 100644 devel/p5-Coro/files/patch-Coro-Makefile.PL create mode 100644 devel/p5-Coro/files/patch-Coro-State.xs delete mode 100644 devel/p5-Coro/files/patch-Coro:Makefile.PL delete mode 100644 devel/p5-Coro/files/patch-Coro:State.xs create mode 100644 devel/p5-Coro/files/patch-coro.c (limited to 'devel/p5-Coro') diff --git a/devel/p5-Coro/Makefile b/devel/p5-Coro/Makefile index 97eb0836b40d..3c712af27d72 100644 --- a/devel/p5-Coro/Makefile +++ b/devel/p5-Coro/Makefile @@ -6,7 +6,8 @@ # PORTNAME= Coro -PORTVERSION= 1.11 +PORTVERSION= 1.7 +PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Coro @@ -15,7 +16,7 @@ PKGNAMEPREFIX= p5- MAINTAINER= perl@FreeBSD.org COMMENT= Coro - coroutine process abstraction for perl -BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Event.pm:${PORTSDIR}/devel/p5-Event \ +BUILD_DEPENDS= p5-Event>=0.89:${PORTSDIR}/devel/p5-Event \ ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils RUN_DEPENDS= ${BUILD_DEPENDS} @@ -37,24 +38,25 @@ post-install: .include .if ${PERL_LEVEL} < 500600 -IGNORE= "This port requires perl 5.6 or newer" +IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again .endif -MAN3= Coro.3 \ - Coro::Channel.3 \ - Coro::Cont.3 \ - Coro::Event.3 \ - Coro::Handle.3 \ - Coro::MakeMaker.3 \ - Coro::RWLock.3 \ - Coro::Select.3 \ - Coro::Semaphore.3 \ - Coro::SemaphoreSet.3 \ - Coro::Signal.3 \ - Coro::Socket.3 \ - Coro::Specific.3 \ - Coro::State.3 \ - Coro::Timer.3 \ - Coro::Util.3 +MAN3= Coro.3 \ + Coro::AIO.3 \ + Coro::Channel.3 \ + Coro::Cont.3 \ + Coro::Event.3 \ + Coro::Handle.3 \ + Coro::MakeMaker.3 \ + Coro::RWLock.3 \ + Coro::Select.3 \ + Coro::Semaphore.3 \ + Coro::SemaphoreSet.3 \ + Coro::Signal.3 \ + Coro::Socket.3 \ + Coro::Specific.3 \ + Coro::State.3 \ + Coro::Timer.3 \ + Coro::Util.3 .include diff --git a/devel/p5-Coro/distinfo b/devel/p5-Coro/distinfo index a63375ace7cf..27afdbe77972 100644 --- a/devel/p5-Coro/distinfo +++ b/devel/p5-Coro/distinfo @@ -1,3 +1,3 @@ -MD5 (Coro-1.11.tar.gz) = 6890d4641d62ff26eed9e9a849f4e45f -SHA256 (Coro-1.11.tar.gz) = 72dbb6e778d44aaa3244c37e5cd5250d2b6ad4d959d4dee1d7ae427badb82a8b -SIZE (Coro-1.11.tar.gz) = 54062 +MD5 (Coro-1.7.tar.gz) = 7f38a6641e18321a320ee1503a63d289 +SHA256 (Coro-1.7.tar.gz) = 9bfad7938046ea415b10cf3da996930fc6b87ac25bd7df555bd8509d361e9ee4 +SIZE (Coro-1.7.tar.gz) = 55794 diff --git a/devel/p5-Coro/files/patch-Coro-Makefile.PL b/devel/p5-Coro/files/patch-Coro-Makefile.PL new file mode 100644 index 000000000000..288bd360b5dc --- /dev/null +++ b/devel/p5-Coro/files/patch-Coro-Makefile.PL @@ -0,0 +1,120 @@ +--- Coro/Makefile.PL.orig Wed Jan 11 13:20:06 2006 ++++ Coro/Makefile.PL Wed Jan 11 13:22:18 2006 +@@ -31,77 +31,8 @@ if ($^O =~ /win32/i or $^O =~ /cygwin/ o + $iface = "s"; + } + +-print <etjmp/longjump, context, rix, inux or indows?", +- $iface; +- $iface = lc $1 if $r =~ /(\S)/; + + if ($iface eq "u") { + $DEFINE .= " -DCORO_UCONTEXT"; +@@ -122,37 +53,9 @@ retry: + print "\nUsing windows-specific implementation\n\n"; + } else { + print "\nUnknown implementation \"$iface\"\n"; +- goto retry; + } +-} else { +- print "\nUsing microsoft compatible coroutines\n\n"; +-} +- +-print <etjmp/longjump, context, rix or inux?", - $iface; - $iface = lc $1 if $r =~ /(\S)/; diff --git a/devel/p5-Coro/files/patch-Coro:State.xs b/devel/p5-Coro/files/patch-Coro:State.xs deleted file mode 100644 index 130972c623f3..000000000000 --- a/devel/p5-Coro/files/patch-Coro:State.xs +++ /dev/null @@ -1,13 +0,0 @@ ---- Coro/State.xs.orig Tue Aug 10 03:54:35 2004 -+++ Coro/State.xs Tue Aug 10 16:22:54 2004 -@@ -57,6 +57,10 @@ - - #include "CoroAPI.h" - -+#ifndef PERL_MAGIC_ext -+# define PERL_MAGIC_ext '~' -+#endif -+ - #ifdef USE_ITHREADS - static perl_mutex coro_mutex; - # define LOCK do { MUTEX_LOCK (&coro_mutex); } while (0) diff --git a/devel/p5-Coro/files/patch-coro.c b/devel/p5-Coro/files/patch-coro.c new file mode 100644 index 000000000000..03965b06a47b --- /dev/null +++ b/devel/p5-Coro/files/patch-coro.c @@ -0,0 +1,10 @@ +--- Coro/libcoro/coro.c.orig Wed Jan 11 13:16:29 2006 ++++ Coro/libcoro/coro.c Wed Jan 11 13:16:57 2006 +@@ -30,6 +30,7 @@ + * go to Ralf S. Engelschall . + */ + ++#include + #include "coro.h" + + #if !defined(STACK_ADJUST_PTR) diff --git a/devel/p5-Coro/pkg-plist b/devel/p5-Coro/pkg-plist index 006a17f10d89..eef1d9e4c9de 100644 --- a/devel/p5-Coro/pkg-plist +++ b/devel/p5-Coro/pkg-plist @@ -5,6 +5,7 @@ %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State/State.bs %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/.packlist %%SITE_PERL%%/%%PERL_ARCH%%/Coro.pm +%%SITE_PERL%%/%%PERL_ARCH%%/Coro/AIO.pm %%SITE_PERL%%/%%PERL_ARCH%%/Coro/Cont.pm %%SITE_PERL%%/%%PERL_ARCH%%/Coro/State.pm %%SITE_PERL%%/%%PERL_ARCH%%/Coro/Channel.pm -- cgit v1.2.3