[perl-gtk2-recent] Makefile.PL: added META_MERGE block for 'configure_requires'



commit 47492771f730f408fa2e0b67dd5cc80028a7b2a4
Author: Brian Manning <brian xaoc org>
Date:   Fri Oct 16 21:54:11 2020 -0700

    Makefile.PL: added META_MERGE block for 'configure_requires'

 Makefile.PL | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index 3d625e6..7cc6e50 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -17,6 +17,14 @@ our %build_reqs = (
        'Bonobo'                  => '2.0.0',
 );
 
+our %pre_reqs = (
+   'Glib'                => $build_reqs{'perl-Glib'},
+   'Gtk2'                => $build_reqs{'perl-Gtk2'},
+   'Gnome2::VFS'         => $build_reqs{'perl-Gnome2-VFS'},
+   '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 '$build_reqs{'perl-ExtUtils-Depends'}';"
@@ -32,13 +40,7 @@ unless (eval "use ExtUtils::Depends '$build_reqs{'perl-ExtUtils-Depends'}';"
    warn "$@\n";
    WriteMakefile(
          PREREQ_FATAL => 1,
-         PREREQ_PM    => {
-            Glib::                => $build_reqs{'perl-Glib'},
-            Gtk2::                => $build_reqs{'perl-Gtk2'},
-           Gnome2::VFS::         => $build_reqs{'perl-Gnome2-VFS'},
-            ExtUtils::Depends::   => $build_reqs{'perl-ExtUtils-Depends'},
-            ExtUtils::PkgConfig:: => $build_reqs{'perl-ExtUtils-PkgConfig'},
-         },
+         PREREQ_PM    => { \%pre_reqs },
    );
    exit 1; # not reached
 }
@@ -82,11 +84,14 @@ $recent->add_typemaps (map {File::Spec->catfile(cwd(),$_)}
 #$recent->save_config ('build/IFiles.pm');
 
 WriteMakefile(
-    NAME            => 'Gtk2::Recent',
-    VERSION_FROM    => 'Recent.pm', # finds $VERSION
-    ABSTRACT_FROM   => 'Recent.pm', # retrieve abstract from module
-    XSPROTOARG      => '-noprototypes',
-    MAN3PODS        => \%pod_files,
+    NAME          => 'Gtk2::Recent',
+    VERSION_FROM  => 'Recent.pm', # finds $VERSION
+    ABSTRACT_FROM => 'Recent.pm', # retrieve abstract from module
+    XSPROTOARG    => '-noprototypes',
+    META_MERGE    => {
+       configure_requires => \%pre_reqs,
+    },
+    MAN3PODS      => \%pod_files,
     $recent->get_makefile_vars,
 );
 


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