]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - perl-Coro/perl-Coro.nm
perl-Coro: Update to 6.42.
[people/amarx/ipfire-3.x.git] / perl-Coro / perl-Coro.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = perl-Coro
7 version = 6.42
8 release = 1
9 thisapp = Coro-%{version}
10
11 groups = Development/Libraries
12 url = http://search.cpan.org/dist/Coro/
13 license = GPL+ or Artistic
14 summary = The only real threads in perl.
15
16 description
17 This module collection manages continuations in general, most often in the
18 form of cooperative threads (also called coros, or simply "coro" in the
19 documentation). They are similar to kernel threads but don't (in general) run
20 in parallel at the same time even on SMP machines
21 end
22
23 source_dl = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
24
25 build
26 requires
27 perl(ExtUtils::MakeMaker)
28 perl(ExtUtils::ParseXS)
29 end
30
31 prepare_cmds
32 # Fix bad path for perl interpreter.
33 for F in Coro/jit-*.pl; do
34 sed -i -e '/^#!/d' "$F"
35 done
36 end
37
38 build
39 perl Makefile.PL INSTALLDIRS=perl OPTIMIZE="%{CFLAGS}"
40 make %{PARALLELISMFLAGS}
41 end
42
43 make_install_targets = \
44 pure_install DESTDIR=%{BUILDROOT}
45 end
46
47 packages
48 package %{name}
49 filter_requires
50 AnyEvent
51 EV
52 Event
53 Guard
54 Storable
55 Coro
56 end
57
58 requires
59 perl(:MODULE_COMPAT_%{perl_version})
60 end
61 end
62
63 package %{name}-debuginfo
64 template DEBUGINFO
65 end
66 end