]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
perl-EV: New package. perl-Coro
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 4 Apr 2016 19:12:41 +0000 (21:12 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Mon, 4 Apr 2016 19:12:41 +0000 (21:12 +0200)
This is a build and runtime dependency of perl-Coro.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch [new file with mode: 0644]
perl-EV/perl-EV.nm [new file with mode: 0644]

diff --git a/perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch b/perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch
new file mode 100644 (file)
index 0000000..26d17be
--- /dev/null
@@ -0,0 +1,29 @@
+From a812d071294832e47a3edbadba250616626b95b7 Mon Sep 17 00:00:00 2001
+From: Mathieu Bridon <bochecha@fedoraproject.org>
+Date: Mon, 24 Jan 2011 16:07:23 +0800
+Subject: [PATCH] Don't ask questions at build time.
+
+Builds must not be interactive in Fedora. Let's just use the defaults
+and avoid questions.
+---
+ Makefile.PL |    4 +---
+ 1 files changed, 1 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 2a31180..28d8ddc 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -27,9 +27,7 @@ and hope for the best. The defaults should usually do.
+ EOF
+-if (prompt ("Skip further questions and use defaults (y/n)?", "y") =~ /[yY]/) {
+-   $ENV{PERL_MM_USE_DEFAULT} = 1;
+-}
++$ENV{PERL_MM_USE_DEFAULT} = 1;
+ print <<EOF;
+-- 
+1.7.3.4
+
diff --git a/perl-EV/perl-EV.nm b/perl-EV/perl-EV.nm
new file mode 100644 (file)
index 0000000..579dab8
--- /dev/null
@@ -0,0 +1,66 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-EV
+version    = 4.22
+release    = 1
+thisapp    = EV-%{version}
+
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/EV/
+license    = GPL+ or Artistic
+summary    = Wrapper for the libev high-performance event loop library.
+
+description
+       This module provides an interface for the libev high-performance event
+       loop library
+end
+
+source_dl  = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
+
+build
+       requires
+               perl(AnyEvent) >= 2.6
+               perl(Canary::Stability)
+               perl(ExtUtils::MakeMaker)
+               perl(common::sense)
+               libev-source >= 4.22
+               gdbm-devel
+               pakfire >= 0.9.26-3.1
+       end
+
+       prepare_cmds
+               # Remove all traces of the bundled libev
+               rm -fr ./libev
+
+               # Use the sources from the system libev
+               mkdir -p ./libev
+               cp -r /usr/share/libev-source/* ./libev/
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}"
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               make test
+       end
+
+       make_install_targets = \
+               pure_install DESTDIR=%{BUILDROOT}
+end
+
+packages
+       package %{name}
+               requires
+                       perl(:MODULE_COMPAT_%{perl_version})
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end