[perl-Pango] Converted Makefile.PL to use CPAN Meta Spec



commit d1b896ce3a2af13502986e9aaa21aaa6cc04ef23
Author: Brian Manning <bmanning src gnome org>
Date:   Sun Feb 3 22:30:43 2013 -0800

    Converted Makefile.PL to use CPAN Meta Spec
    
    - Created %meta_merge which follows v2 of meta-spec

 Makefile.PL |   46 ++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 38 insertions(+), 8 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index 3afef9f..b0ff157 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -39,6 +39,7 @@ our %PREREQ_PM = (
 	'Glib'                => $build_reqs{'perl-Glib'},
 );
 
+
 #
 # look for our prerequisites.  if they can't be found, warn and exit with
 # status 0 to indicate to CPAN testers that their system isn't supported.
@@ -184,6 +185,42 @@ $pango->save_config ('build/IFiles.pm');
 # exports list needed for win32, unused on others
 my @exports = Glib::MakeHelper->read_source_list_file ('pango.exports');
 
+my %meta_merge = (
+        q(meta-spec)          => {
+            version => '2',
+            url     => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
+        },
+        author              =>
+            ['gtk2-perl Team <gtk-perl-list at gnome dot org>'],
+        release_status      => 'stable',
+        # valid values: https://metacpan.org/module/CPAN::Meta::Spec#license
+        license             => 'lgpl_2_1',
+        resources => {
+            license     => 'http://www.gnu.org/licenses/lgpl-2.1.html',
+            homepage    => 'http://gtk2-perl.sourceforge.net',
+            x_MailingList =>
+                'https://mail.gnome.org/mailman/listinfo/gtk-perl-list',
+            bugtracker  => {
+                    web     =>
+                    'http://rt.cpan.org/Public/Dist/Display.html?Name=Pango',
+                    mailto  => 'bug-Gtk2 [at] rt.cpan.org',
+            },
+            repository  => {
+                    url     => 'git://git.gnome.org/perl-Pango',
+                    type    => 'git',
+                    web     => 'http://git.gnome.org/browse/perl-Pango',
+            },
+        },
+        prereqs => {
+            configure => {
+                requires => {%PREREQ_PM}, # no direct ref for 5.14 compatibility
+            },
+        },
+        no_index           => {
+            file => \ xs_files,
+        },
+);
+
 WriteMakefile(
     NAME          => 'Pango',
     VERSION_FROM  => 'lib/Pango.pm',
@@ -193,14 +230,7 @@ WriteMakefile(
     MAN3PODS      => \%pod_files,
     FUNCLIST      => \ exports,
     DL_FUNCS      => { Pango => [] },
-
-    META_MERGE    => {
-        configure_requires => \%PREREQ_PM,
-        no_index => {
-            file => \ xs_files,
-        },
-    },
-
+    META_MERGE    => \%meta_merge,
     $pango->get_makefile_vars,
 );
 



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