[perl-Gnome2] Created %meta_merge which follows v2 of CPAN::Meta::Spec



commit d0111ed31a1f81e2d06cd666d39832a46b35f7c0
Author: Brian Manning <bmanning src gnome org>
Date:   Sun Sep 29 14:34:23 2013 -0700

    Created %meta_merge which follows v2 of CPAN::Meta::Spec
    
    - %meta_merge is used to pass META_MERGE values to EU::MM and
      CPAN::Meta; these populate META.[yml|json] and MYMETA.[yml|json]

 Makefile.PL |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 51 insertions(+), 8 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index 8ef6e19..e698775 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -30,6 +30,48 @@ our %PREREQ_PM = (
        'ExtUtils::PkgConfig' => $build_reqs{'perl-ExtUtils-PkgConfig'},
 );
 
+my %meta_merge = (
+        q(meta-spec)          => {
+            version => '2',
+            url     => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
+        },
+        author              =>
+            ['Gnome2 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=Gnome2',
+                    mailto  => 'bug-Gnome2 [at] rt.cpan.org',
+            },
+            repository  => {
+                    url     => 'git://git.gnome.org/perl-Gnome2',
+                    type    => 'git',
+                    web     => 'http://git.gnome.org/browse/perl-Gnome2',
+            },
+        },
+        prereqs => {
+          configure => {
+            requires => {%PREREQ_PM}, # no direct ref for 5.14 compatibility
+          },
+          test => {
+            recommends => {
+              'Test::Number::Delta' => 1.0,
+            },
+          },
+        },
+        no_index            => {
+            file => [qw(inc/MakeHelper.pm)],
+        },
+);
+
+
 # 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'}';"
@@ -110,12 +152,13 @@ $gnome2->install (qw(gnome2perl.h
 $gnome2->save_config ('build/IFiles.pm');
 
 WriteMakefile(
-    NAME            => 'Gnome2',
-    VERSION_FROM    => 'Gnome2.pm', # finds $VERSION
-    ABSTRACT_FROM   => 'Gnome2.pm', # retrieve abstract from module
-    XSPROTOARG      => '-noprototypes',
-    MAN3PODS        => \%pod_files,
-    PREREQ_PM    => \%PREREQ_PM,
+    NAME          => 'Gnome2',
+    VERSION_FROM  => 'Gnome2.pm', # finds $VERSION
+    ABSTRACT_FROM => 'Gnome2.pm', # retrieve abstract from module
+    XSPROTOARG    => '-noprototypes',
+    MAN3PODS      => \%pod_files,
+    PREREQ_PM     => \%PREREQ_PM,
+    META_MERGE    => \%meta_merge,
     $gnome2->get_makefile_vars,
 );
 
@@ -128,9 +171,9 @@ sub MY::postamble {
               )
             . Glib::MakeHelper->postamble_rpms (
                        'GNOME' => $build_reqs{'Gnome'},
-                       'PERL_EXTUTILS_DEPENDS' => 
+                       'PERL_EXTUTILS_DEPENDS' =>
                                $build_reqs{'perl-ExtUtils-Depends'},
-                       'PERL_EXTUTILS_PKGCONFIG' => 
+                       'PERL_EXTUTILS_PKGCONFIG' =>
                                $build_reqs{'perl-ExtUtils-PkgConfig'},
                        'PERL_GLIB' => $build_reqs{'perl-Glib'},
                        'PERL_GTK' => $build_reqs{'perl-Gtk2'},


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