From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 9/9] perl-EV: New package. Date: Thu, 14 Apr 2016 08:30:45 +0200 Message-ID: <1460615445-3996-9-git-send-email-stefan.schantl@ipfire.org> In-Reply-To: <1460615445-3996-1-git-send-email-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4212230526430285324==" List-Id: --===============4212230526430285324== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is a build and runtime dependency of perl-Coro. Signed-off-by: Stefan Schantl --- ...EV-4.03-Don-t-ask-questions-at-build-time.patch | 29 ++++++++++ perl-EV/perl-EV.nm | 66 ++++++++++++++++++++= ++ 2 files changed, 95 insertions(+) create mode 100644 perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build= -time.patch create mode 100644 perl-EV/perl-EV.nm diff --git a/perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.p= atch b/perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch new file mode 100644 index 0000000..26d17be --- /dev/null +++ b/perl-EV/patches/perl-EV-4.03-Don-t-ask-questions-at-build-time.patch @@ -0,0 +1,29 @@ +From a812d071294832e47a3edbadba250616626b95b7 Mon Sep 17 00:00:00 2001 +From: Mathieu Bridon +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. +=20 + EOF +=20 +-if (prompt ("Skip further questions and use defaults (y/n)?", "y") =3D~ /[y= Y]/) { +- $ENV{PERL_MM_USE_DEFAULT} =3D 1; +-} ++$ENV{PERL_MM_USE_DEFAULT} =3D 1; +=20 + print < = # +############################################################################= ### + +name =3D perl-EV +version =3D 4.22 +release =3D 1 +thisapp =3D EV-%{version} + +groups =3D Development/Libraries +url =3D http://search.cpan.org/dist/EV/ +license =3D GPL+ or Artistic +summary =3D 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 =3D http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/ + +build + requires + perl(AnyEvent) >=3D 2.6 + perl(Canary::Stability) + perl(ExtUtils::MakeMaker) + perl(common::sense) + libev-source >=3D 4.22 + gdbm-devel + pakfire >=3D 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=3Dvendor OPTIMIZE=3D"%{CFLAGS}" + make %{PARALLELISMFLAGS} + end + + test + make test + end + + make_install_targets =3D \ + pure_install DESTDIR=3D%{BUILDROOT} +end + +packages + package %{name} + requires + perl(:MODULE_COMPAT_%{perl_version}) + end + end + + package %{name}-debuginfo + template DEBUGINFO + end +end --=20 2.4.11 --===============4212230526430285324==--