[gimp-perl] Updated to require the 2.8 version of GIMP. (From changes by Ed J)



commit ea726b6ce030285449307a7048fd039f4b7fbe0b
Author: Kevin Cozens <kevin ve3syb ca>
Date:   Thu Jan 2 11:20:40 2014 -0500

    Updated to require the 2.8 version of GIMP. (From changes by Ed J)

 Makefile.PL |    2 +-
 README      |    2 +-
 config.pl   |    5 ++++-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index fa32d54..34c9861 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -14,7 +14,7 @@ if ($ARGV[0] ne "--writemakefile") {
    }
    
    # run the config.pl to setup enviornment
-   do './config.pl';
+   do './config.pl' or die $@;
    
    # Set it up to do lots of tests
    $EXTENSIVE_TESTS = 1;
diff --git a/README b/README
index 8fb707e..c0b7dcc 100644
--- a/README
+++ b/README
@@ -5,7 +5,7 @@ NAME
 
 WARNING
 
-       This version of the module only works for Gimp-2.2 and Gimp-2.3.
+       This version of the module is for use with GIMP 2.8.0 or later.
 
        Current limitations:
 
diff --git a/config.pl b/config.pl
index b216be9..03634dd 100644
--- a/config.pl
+++ b/config.pl
@@ -25,8 +25,11 @@ chomp $pluginlibs;
 # Get gimp's version and append to make binname
 $gimpbinname = ExtUtils::PkgConfig->modversion("gimp-2.0");
 $gimpbinname =~ s/^(\d\.\d).*/$1/; # strip off minor versions
+$gimpversion = $gimpbinname; # capture the x.y version number
 $gimpbinname = "gimp-" . $gimpbinname;
 
+die "Need GIMP version at least 2.8.0\n" unless $gimpversion >= 2.8;
+
 %cfg = (
    GIMP         => $gimppath . $gimpbinname,
    GIMPTOOL     => $gimppath . "gimptool-2.0",
@@ -147,4 +150,4 @@ sub MY::makefile {
    return $self->MM::makefile(@_);
 }
 
-
+1;


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