]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
perl-Coro: New package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Apr 2012 19:28:32 +0000 (21:28 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Apr 2012 19:28:32 +0000 (21:28 +0200)
perl-Coro/perl-Coro.nm [new file with mode: 0644]

diff --git a/perl-Coro/perl-Coro.nm b/perl-Coro/perl-Coro.nm
new file mode 100644 (file)
index 0000000..e263a67
--- /dev/null
@@ -0,0 +1,65 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-Coro
+version    = 6.08
+release    = 1
+thisapp    = Coro-%{version}
+
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/Coro/
+license    = GPL+ or Artistic
+summary    = The only real threads in perl.
+
+description
+       This module collection manages continuations in general, most often in the
+       form of cooperative threads (also called coros, or simply "coro" in the
+       documentation). They are similar to kernel threads but don't (in general) run
+       in parallel at the same time even on SMP machines
+end
+
+source_dl  = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
+
+build
+       requires
+               perl(ExtUtils::MakeMaker)
+               perl(ExtUtils::ParseXS)
+       end
+
+       prepare_cmds
+               # Fix bad path for perl interpreter.
+               for F in Coro/jit-*.pl; do
+                       sed -i -e '/^#!/d' "$F"
+               done
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=perl OPTIMIZE="%{CFLAGS}"
+               make %{PARALLELISMFLAGS}
+       end
+
+       make_install_targets = pure_install DESTDIR=%{BUILDROOT}
+end
+
+packages
+       package %{name}
+               filter_requires
+                       AnyEvent
+                       EV
+                       Event
+                       Guard
+                       Storable
+                       Coro
+               end
+
+               requires
+                       perl
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end