[perl-Glib] Separate conceptually different prerequisites
- From: Torsten SchÃnfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib] Separate conceptually different prerequisites
- Date: Fri, 24 Aug 2012 20:18:16 +0000 (UTC)
commit cd6cd59f91761338e2dde306f3b0e12ec742ca3f
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date: Fri Aug 24 22:14:10 2012 +0200
Separate conceptually different prerequisites
Makefile.PL | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index f6d7d33..20a21d5 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -25,19 +25,17 @@ use Cwd;
# minimum required version of dependencies we need to build
our %build_reqs = (
- 'perl-ExtUtils-Depends' => '0.300',
- 'perl-ExtUtils-PkgConfig' => '1.00',
- 'Glib' => '2.0.0',
+ 'glib' => '2.0.0',
);
our %PREREQ_PM = (
- 'ExtUtils::Depends' => $build_reqs{'perl-ExtUtils-Depends'},
- 'ExtUtils::PkgConfig' => $build_reqs{'perl-ExtUtils-PkgConfig'},
+ 'ExtUtils::Depends' => '0.300',
+ 'ExtUtils::PkgConfig' => '1.000',
);
# Writing a fake Makefile ensures that CPAN will pick up the correct
# dependencies and install them.
-unless (eval "use ExtUtils::Depends '$build_reqs{'perl-ExtUtils-Depends'}';"
- . "use ExtUtils::PkgConfig '$build_reqs{'perl-ExtUtils-PkgConfig'}';"
+unless (eval "use ExtUtils::Depends '$PREREQ_PM{'ExtUtils::Depends'}';"
+ . "use ExtUtils::PkgConfig '$PREREQ_PM{'ExtUtils::PkgConfig'}';"
. "1") {
warn "$ \n";
WriteMakefile(
@@ -57,7 +55,7 @@ mkdir 'build', 0777;
# If the package can't be found, warn and exit with status 0 to indicate to
# CPAN testers that their system is not supported.
my %glibcfg;
-unless (eval { %glibcfg = ExtUtils::PkgConfig->find ("gobject-2.0 >= $build_reqs{Glib}");
+unless (eval { %glibcfg = ExtUtils::PkgConfig->find ("gobject-2.0 >= $build_reqs{glib}");
1; })
{
warn $@;
@@ -263,11 +261,11 @@ build/podindex :: \$(INST_LIB)/Glib/GenPod.pm
COPYRIGHT_FROM => 'copyright.pod',
)
. Glib::MakeHelper->postamble_rpms (
- 'GLIB' => $build_reqs{'Glib'},
+ 'GLIB' => $build_reqs{'glib'},
'PERL_EXTUTILS_DEPENDS' =>
- $build_reqs{'perl-ExtUtils-Depends'},
+ $PREREQ_PM{'ExtUtils::Depends'},
'PERL_EXTUTILS_PKGCONFIG' =>
- $build_reqs{'perl-ExtUtils-PkgConfig'},
+ $PREREQ_PM{'ExtUtils::PkgConfig'},
);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]