perl-Gnome2-Vte r52 - trunk



Author: tsch
Date: Sat Nov 15 13:21:24 2008
New Revision: 52
URL: http://svn.gnome.org/viewvc/perl-Gnome2-Vte?rev=52&view=rev

Log:
Catch exceptions thrown by EU::PkgConfig and handle them so that CPAN testers
know what to do.  Tell EU::MakeMaker about our Makefile.PL-time dependencies.


Modified:
   trunk/ChangeLog
   trunk/Makefile.PL

Modified: trunk/Makefile.PL
==============================================================================
--- trunk/Makefile.PL	(original)
+++ trunk/Makefile.PL	Sat Nov 15 13:21:24 2008
@@ -38,7 +38,13 @@
   exit 1; # not reached
 }
 
-my %pkgcfg = ExtUtils::PkgConfig->find("vte >= $build_reqs{'Vte'}");
+my %pkgcfg;
+unless (eval { %pkgcfg = ExtUtils::PkgConfig->find("vte >= $build_reqs{'Vte'}");
+	       1; })
+{
+  warn $@;
+  exit 0;
+}
 
 mkdir 'build', 0777;
 
@@ -73,6 +79,7 @@
   XSPROTOARG    => '-noprototypes',
   MAN3PODS      => \%pod_files,
   PREREQ_PM     => \%perl_reqs,
+  META_MERGE    => { configure_requires => \%perl_reqs },
   $vte->get_makefile_vars,
 );
 



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