[perl-Glib-Object-Introspection] Correctly specify our runtime prerequisites
- From: Torsten SchÃnfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib-Object-Introspection] Correctly specify our runtime prerequisites
- Date: Fri, 24 Aug 2012 20:18:40 +0000 (UTC)
commit 9781ec07df28933d1eeb32f6d83e41495de6935b
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date: Fri Aug 24 22:08:33 2012 +0200
Correctly specify our runtime prerequisites
Makefile.PL | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index df172ac..71a721b 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -23,10 +23,14 @@ use File::Spec;
use Config;
use Cwd;
-my %PREREQ_PM = (
+my %RUNTIME_REQ_PM = (
+ 'Glib' => 1.240,
+);
+
+my %CONFIG_REQ_PM = (
'ExtUtils::Depends' => 0.300,
'ExtUtils::PkgConfig' => 1.000,
- 'Glib' => 1.240,
+ 'Glib' => $RUNTIME_REQ_PM{Glib},
);
my %BUILD_REQ = (
@@ -71,7 +75,10 @@ my %meta_merge = (
},
prereqs => {
configure => {
- requires => \%PREREQ_PM,
+ requires => \%CONFIG_REQ_PM,
+ },
+ runtime => {
+ requires => \%RUNTIME_REQ_PM,
},
},
no_index => {
@@ -81,9 +88,9 @@ my %meta_merge = (
);
my $dep_success = eval <<__EOE__;
- use ExtUtils::Depends $PREREQ_PM{'ExtUtils::Depends'};
- use ExtUtils::PkgConfig $PREREQ_PM{'ExtUtils::PkgConfig'};
- use Glib $PREREQ_PM{'Glib'};
+ use ExtUtils::Depends $CONFIG_REQ_PM{'ExtUtils::Depends'};
+ use ExtUtils::PkgConfig $CONFIG_REQ_PM{'ExtUtils::PkgConfig'};
+ use Glib $CONFIG_REQ_PM{'Glib'};
use Glib::MakeHelper;
1;
__EOE__
@@ -135,7 +142,7 @@ WriteMakefile(
NAME => 'Glib::Object::Introspection',
VERSION_FROM => 'lib/Glib/Object/Introspection.pm',
ABSTRACT_FROM => 'lib/Glib/Object/Introspection.pm',
- PREREQ_PM => \%PREREQ_PM,
+ PREREQ_PM => \%CONFIG_REQ_PM,
XSPROTOARG => '-noprototypes',
MAN3PODS => \%pod_files,
META_MERGE => \%meta_merge,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]