[cairo-commit] cairo-perl ChangeLog, 1.94, 1.95 Makefile.PL, 1.31, 1.32

Torsten Schoenfeld commit at pdx.freedesktop.org
Sat Mar 22 11:31:31 PDT 2008


Committed by: tsch

Update of /cvs/cairo/cairo-perl
In directory kemper:/tmp/cvs-serv29635

Modified Files:
	ChangeLog Makefile.PL 
Log Message:
	* Makefile.PL: Trap exceptions thrown by EU::PkgConfig->find.
	When one occurs, exit with status 0 to indicate to CPAN testers
	that their system isn't supported.


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-perl/ChangeLog,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- ChangeLog	24 Feb 2008 14:06:19 -0000	1.94
+++ ChangeLog	22 Mar 2008 18:34:57 -0000	1.95
@@ -1,3 +1,9 @@
+2008-03-22  Torsten Schoenfeld  <kaffeetisch at gmx.de>
+
+	* Makefile.PL: Trap exceptions thrown by EU::PkgConfig->find.
+	When one occurs, exit with status 0 to indicate to CPAN testers
+	that their system isn't supported.
+
 2008-02-24  Torsten Schoenfeld  <kaffeetisch at gmx.de>
 
 	* Cairo.pm

Index: Makefile.PL
===================================================================
RCS file: /cvs/cairo/cairo-perl/Makefile.PL,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- Makefile.PL	7 Jan 2008 17:34:54 -0000	1.31
+++ Makefile.PL	22 Mar 2008 18:34:58 -0000	1.32
@@ -56,7 +56,12 @@
 mkdir $autogen_dir unless (-d $autogen_dir);
 $MakeHelper::autogen_dir = $autogen_dir;
 
-my %cairo_cfg = ExtUtils::PkgConfig->find ("cairo >= $extreqs{cairo}");
+my %cairo_cfg;
+eval { %cairo_cfg = ExtUtils::PkgConfig->find ("cairo >= $extreqs{cairo}"); };
+if ($@ ne '') {
+	warn $@;
+	exit 0;
+}
 
 my %backend_guards = (
 	'cairo_pdf_surface_t' => 'CAIRO_HAS_PDF_SURFACE',



More information about the cairo-commit mailing list