1#!/usr/bin/perl -w 2 3# Copyright 2011, 2012, 2014, 2015, 2019 Kevin Ryde 4 5# This file is part of Image-Base-SVG. 6# 7# Image-Base-SVG is free software; you can redistribute it and/or modify it 8# under the terms of the GNU General Public License as published by the Free 9# Software Foundation; either version 3, or (at your option) any later 10# version. 11# 12# Image-Base-SVG is distributed in the hope that it will be useful, but 13# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15# for more details. 16# 17# You should have received a copy of the GNU General Public License along 18# with Image-Base-SVG. If not, see <http://www.gnu.org/licenses/>. 19 20use 5.006; 21use strict; 22use warnings; 23use ExtUtils::MakeMaker; 24 25my %PREREQ_PM = ( 26 'Image::Base' => 0, 27 # 2.38 to avoid redefinition warnings, though previous 28 # versions may work well enough if only one "use SVG" 29 # anywhere 30 'SVG' => '2.38', 31 'SVG::Parser' => 0, 32 ); 33my %TEST_REQUIRES = ( 34 'Test::More' => 0, 35 ); 36unless (eval { ExtUtils::MakeMaker->VERSION(6.64) }) { 37 # past ExtUtils::MakeMaker without separate TEST_REQUIRES 38 %PREREQ_PM = (%PREREQ_PM, %TEST_REQUIRES); 39} 40 41WriteMakefile 42 (NAME => 'Image::Base::SVG', 43 ABSTRACT => 'Image::Base on SVG files using the SVG module.', 44 VERSION_FROM => 'lib/Image/Base/SVG.pm', 45 AUTHOR => 'Kevin Ryde <user42_kevin@yahoo.com.au>', 46 LICENSE => 'gpl_3', 47 SIGN => 1, 48 PREREQ_PM => \%PREREQ_PM, 49 TEST_REQUIRES => \%TEST_REQUIRES, 50 51 # SVG.pm is 5.6.0 for weaken 52 MIN_PERL_VERSION => '5.006', 53 54 META_MERGE => 55 { resources => 56 { homepage => 'http://user42.tuxfamily.org/image-base-svg/index.html', 57 license => 'http://www.gnu.org/licenses/gpl.html', 58 }, 59 no_index => { directory=>['devel','xt'] }, 60 61 prereqs => 62 { test => 63 { suggests => 64 { 'Test::Weaken' => '2.000', 65 'XML::Parser::Expat' => '2.41', 66 }, 67 }, 68 }, 69 }, 70 ); 71