diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2009-03-11 17:29:15 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2009-03-11 17:29:15 +0000 |
commit | ffd55b916bb8d35debefbad7b85ab793f42af29b (patch) | |
tree | 04b87698fdc8f908b182d797e6f55fa7b4df5bf8 /devel/p5-Coro | |
parent | 8376a8941667d8091c5dfa136f8e5619c2d29081 (diff) | |
download | ports-ffd55b916bb8d35debefbad7b85ab793f42af29b.tar.gz ports-ffd55b916bb8d35debefbad7b85ab793f42af29b.zip |
Update to 5.13
PR: 132549
Submitted by: Wen Heping <wenheping@gmail.com>
Notes
Notes:
svn path=/head/; revision=229902
Diffstat (limited to 'devel/p5-Coro')
-rw-r--r-- | devel/p5-Coro/Makefile | 7 | ||||
-rw-r--r-- | devel/p5-Coro/distinfo | 6 | ||||
-rw-r--r-- | devel/p5-Coro/files/patch-Coro-Makefile.PL | 42 | ||||
-rw-r--r-- | devel/p5-Coro/files/patch-Coro-State.xs | 12 | ||||
-rw-r--r-- | devel/p5-Coro/pkg-plist | 5 |
5 files changed, 47 insertions, 25 deletions
diff --git a/devel/p5-Coro/Makefile b/devel/p5-Coro/Makefile index 07a612ff9bef..3762a4d50333 100644 --- a/devel/p5-Coro/Makefile +++ b/devel/p5-Coro/Makefile @@ -6,7 +6,7 @@ # PORTNAME= Coro -PORTVERSION= 4.74.8 +PORTVERSION= 5.13 PORTEPOCH= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN @@ -18,6 +18,8 @@ COMMENT= Coroutine process abstraction for perl RUN_DEPENDS= p5-Event>=0.89:${PORTSDIR}/devel/p5-Event \ p5-AnyEvent>=2.5.1:${PORTSDIR}/devel/p5-AnyEvent \ + p5-EV>=3.53:${PORTSDIR}/devel/p5-EV \ + p5-Storable>=2.15:${PORTSDIR}/devel/p5-Storable \ ${SITE_PERL}/${PERL_ARCH}/IO/AIO.pm:${PORTSDIR}/devel/p5-IO-AIO BUILD_DEPENDS= ${RUN_DEPENDS} @@ -28,7 +30,8 @@ MAN3= Coro.3 Coro::AIO.3 Coro::AnyEvent.3 Coro::Channel.3 \ Coro::LWP.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::Storable.3 \ - Coro::Timer.3 Coro::Util.3 Coro::Event.3 + Coro::Timer.3 Coro::Util.3 Coro::Event.3 \ + Coro::Intro.3 Coro::EV.3 post-install: ${MKDIR} ${EXAMPLESDIR} diff --git a/devel/p5-Coro/distinfo b/devel/p5-Coro/distinfo index 3a0246417dba..5c71c4676131 100644 --- a/devel/p5-Coro/distinfo +++ b/devel/p5-Coro/distinfo @@ -1,3 +1,3 @@ -MD5 (Coro-4.748.tar.gz) = 89918c35296751f289ac0d129110d925 -SHA256 (Coro-4.748.tar.gz) = fbe92572697b1534b159ee98ee99f350dcc25be4778808cdd21570338ea4e707 -SIZE (Coro-4.748.tar.gz) = 102199 +MD5 (Coro-5.13.tar.gz) = fbe6f03b4565e640ace294c448d7bf9c +SHA256 (Coro-5.13.tar.gz) = 52398c216e7abd30d26c602a9b599b98709a54e5934bdb5a442f172411ba4e12 +SIZE (Coro-5.13.tar.gz) = 135989 diff --git a/devel/p5-Coro/files/patch-Coro-Makefile.PL b/devel/p5-Coro/files/patch-Coro-Makefile.PL index 58ab1ec02f4d..d633d881f04c 100644 --- a/devel/p5-Coro/files/patch-Coro-Makefile.PL +++ b/devel/p5-Coro/files/patch-Coro-Makefile.PL @@ -1,16 +1,18 @@ ---- Coro/Makefile.PL.orig Sun Jun 17 01:31:38 2007 -+++ Coro/Makefile.PL Sun Jun 17 01:35:46 2007 -@@ -20,9 +20,7 @@ +--- Coro/Makefile.PL.orig 2009-03-11 22:39:55.000000000 +0800 ++++ Coro/Makefile.PL 2009-03-11 22:48:31.000000000 +0800 +@@ -23,9 +23,9 @@ EOF -if (prompt ("Skip further questions and use defaults (y/n)?", "y") =~ /[yY]/) { ++#if (prompt ("Skip further questions and use defaults (y/n)?", "y") =~ /[yY]/) { $ENV{PERL_MM_USE_DEFAULT} = 1; -} ++#} $DEFINE .= " -DHAVE_MMAP" if $Config{d_mmap} eq "define" && $Config{d_munmap} eq "define"; -@@ -104,10 +102,7 @@ +@@ -164,10 +164,11 @@ retry: @@ -18,44 +20,56 @@ - "<s>et/longjump, <u>context, <a>ssembly, <i>rix, <l>inux or <w>indows?", - $iface; -$iface = lc $1 if $r =~ /(\S)/; ++#my $r = prompt "Use which implementation,\n" . ++# "<s>et/longjump, <u>context, <a>ssembly, <i>rix, <l>inux or <w>indows?", ++# $iface; ++#$iface = lc $1 if $r =~ /(\S)/; +$iface = 'u'; if ($iface eq "u") { $DEFINE .= " -DCORO_UCONTEXT"; -@@ -165,7 +160,7 @@ +@@ -232,7 +233,8 @@ - EOF + my $stacksize = $^O eq "linux" && $] < 5.008008 ? 128 * 1024 : 16384; --my $stacksize = prompt ("C stack size factor?", "16384"); +-$stacksize = prompt ("C stack size factor?", $stacksize); ++#$stacksize = prompt ("C stack size factor?", $stacksize); +my $stacksize = 65536; $DEFINE .= " -DCORO_STACKSIZE=$stacksize"; print "using a stacksize of $stacksize * sizeof(long)\n"; -@@ -192,7 +187,7 @@ +@@ -259,7 +261,8 @@ EOF -my $stackguard = prompt ("Number of guard pages (0 disables)?", "4"); ++#my $stackguard = prompt ("Number of guard pages (0 disables)?", "4"); +my $stackguard = 4; $DEFINE .= " -DCORO_STACKGUARD=$stackguard"; print <<EOF; -@@ -210,8 +205,7 @@ +@@ -277,8 +280,9 @@ EOF -my $valgrind = prompt ("Enable valgrind support (y/n)?", - -r "/usr/include/valgrind/valgrind.h" ? "y" : "n"); -+my $valgrind = 'n'; ++#my $valgrind = prompt ("Enable valgrind support (y/n)?", ++# -r "/usr/include/valgrind/valgrind.h" ? "y" : "n"); ++my $valgrind='n'; $DEFINE .= " -DCORO_USE_VALGRIND=1" if $valgrind =~ /[yY]/; -@@ -228,7 +222,7 @@ +@@ -295,9 +299,9 @@ EOF -my $use_internals = prompt ("Prefer perl functions over coro functions (y/n)?", "n"); -+my $use_internals = 'n'; - $DEFINE .= " -DCORO_PREFER_PERL_FUNCTIONS=1" if $use_internals =~ /[yY]/; - +-$DEFINE .= " -DCORO_PREFER_PERL_FUNCTIONS=1" if $use_internals =~ /[yY]/; +- ++#my $use_internals = prompt ("Prefer perl functions over coro functions (y/n)?", "n"); ++#$DEFINE .= " -DCORO_PREFER_PERL_FUNCTIONS=1" if $use_internals =~ /[yY]/; ++my $use_internals='n'; print <<EOF; + + *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** diff --git a/devel/p5-Coro/files/patch-Coro-State.xs b/devel/p5-Coro/files/patch-Coro-State.xs index 130972c623f3..2124ed702178 100644 --- a/devel/p5-Coro/files/patch-Coro-State.xs +++ b/devel/p5-Coro/files/patch-Coro-State.xs @@ -1,13 +1,13 @@ ---- 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 @@ - +--- Coro/State.xs.orig 2008-12-16 03:39:29.000000000 +0800 ++++ Coro/State.xs 2009-03-11 23:28:09.000000000 +0800 +@@ -155,6 +155,10 @@ #include "CoroAPI.h" + #define GCoroAPI (&coroapi) /* very sneaky */ +#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) + # if CORO_PTHREAD + static void *coro_thx; diff --git a/devel/p5-Coro/pkg-plist b/devel/p5-Coro/pkg-plist index 54827b6d3dd5..04f08b106441 100644 --- a/devel/p5-Coro/pkg-plist +++ b/devel/p5-Coro/pkg-plist @@ -6,7 +6,9 @@ %%SITE_PERL%%/%%PERL_ARCH%%/Coro/CoroAPI.h %%SITE_PERL%%/%%PERL_ARCH%%/Coro/Debug.pm %%SITE_PERL%%/%%PERL_ARCH%%/Coro/Event.pm +%%SITE_PERL%%/%%PERL_ARCH%%/Coro/EV.pm %%SITE_PERL%%/%%PERL_ARCH%%/Coro/Handle.pm +%%SITE_PERL%%/%%PERL_ARCH%%/Coro/Intro.pod %%SITE_PERL%%/%%PERL_ARCH%%/Coro/LWP.pm %%SITE_PERL%%/%%PERL_ARCH%%/Coro/MakeMaker.pm %%SITE_PERL%%/%%PERL_ARCH%%/Coro/RWLock.pm @@ -23,6 +25,8 @@ %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/.packlist %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event/Event.bs %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event/Event.so +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/EV/EV.so +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/EV/EV.bs %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State/State.bs %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State/State.so %%PORTDOCS%%%%DOCSDIR%%/cede-vs-schedule @@ -40,6 +44,7 @@ %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/EV @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Coro |