File: wx-config-version.patch

package info (click to toggle)
libalien-wxwidgets-perl 0.65%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,224 kB
  • ctags: 393
  • sloc: perl: 5,363; sh: 51; makefile: 16
file content (19 lines) | stat: -rw-r--r-- 719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: adjust Build.PL to wxwidgets3.0
 allow ^3 as an answer of `wx-config --version' for system wxwidgets
Origin: vendor
Bug: https://rt.cpan.org/Ticket/Display.html?id=94367
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=94367
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2014-04-01

--- a/Build.PL
+++ b/Build.PL
@@ -153,7 +153,7 @@
     my $wx_config = My::Build::Base->awx_path_search( 'wx-config' );
     if( $wx_config ) {
         my $ans = `wx-config --version`;
-        if( $ans =~ /^2\./ ) {
+        if( $ans =~ /^[23]\./ ) {
             my $prefix = `wx-config --prefix`;
             chomp foreach $ans, $prefix;
             if( _check_installed_widgets_ok($ans, $prefix) ) {