[perl-gtk2-spell] Makefile.PL: added META_MERGE block with 'configure_requires'



commit 2fb467c3628229e80233e8b312061adb0e2025a2
Author: Brian Manning <bmanning src gnome org>
Date:   Tue Oct 20 11:21:35 2020 -0700

    Makefile.PL: added META_MERGE block with 'configure_requires'
    
    - All of this module's dependencies are now listed in the
      'configure_requires' block

 Makefile.PL | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index dcf53dd..ac58030 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -16,6 +16,12 @@ our %build_reqs = (
        'GtkSpell'                => '2.0.0',
 );
 
+our %pre_reqs = (
+   'Glib'                => $build_reqs{'perl-Glib'},
+   'Gtk2'                => $build_reqs{'perl-Gtk2'},
+   'ExtUtils::Depends'   => $build_reqs{'perl-ExtUtils-Depends'},
+   'ExtUtils::PkgConfig' => $build_reqs{'perl-ExtUtils-PkgConfig'},
+);
 # Writing a fake Makefile ensures that CPAN will pick up the correct
 # dependencies and install them.
 unless (eval "use ExtUtils::Depends;"
@@ -30,12 +36,7 @@ unless (eval "use ExtUtils::Depends;"
    warn "$@\n";
    WriteMakefile(
          PREREQ_FATAL => 1,
-         PREREQ_PM    => {
-            'Glib'                => $build_reqs{'perl-Glib'},
-            'Gtk2'                => $build_reqs{'perl-Gtk2'},
-            'ExtUtils::Depends'   => $build_reqs{'perl-ExtUtils-Depends'},
-            'ExtUtils::PkgConfig' => $build_reqs{'perl-ExtUtils-PkgConfig'},
-         },
+         PREREQ_PM    => \%pre_reqs,
    );
    exit 1; # not reached
 }
@@ -64,8 +65,11 @@ $gtk2spell->save_config ('build/IFiles.pm');
 WriteMakefile(
     NAME          => 'Gtk2::Spell',
     VERSION_FROM  => 'lib/Gtk2/Spell.pm',
-    PREREQ_PM     => {},
+    PREREQ_PM     => \%pre_reqs,
     ABSTRACT_FROM => 'lib/Gtk2/Spell.pm',
+    META_MERGE    => {
+        configure_requires => \%pre_reqs,
+    },
     XSPROTOARG    => '-noprototypes',
     $gtk2spell->get_makefile_vars,
 );


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]