1# 2# Copyright (c) 1995-2000, Raphael Manfredi 3# Copyright (c) 2017, Reini Urban 4# 5# You may redistribute only under the same terms as Perl 5, as specified 6# in the README file that comes with the distribution. 7# 8 9use strict; 10use warnings; 11use ExtUtils::MakeMaker 6.31; 12use Config; 13 14WriteMakefile( 15 NAME => 'Storable', 16 AUTHOR => 'Perl 5 Porters', 17 LICENSE => 'perl', 18 DISTNAME => "Storable", 19 PREREQ_PM => 20 { 21 XSLoader => 0, 22 }, 23 ( $ExtUtils::MakeMaker::VERSION >= 6.64 ? 24 ( 25 CONFIGURE_REQUIRES => { 26 'ExtUtils::MakeMaker' => '6.31', 27 }, 28 BUILD_REQUIRES => { 29 'ExtUtils::MakeMaker' => '6.31', 30 }, 31 TEST_REQUIRES => { 32 'Test::More' => '0.82', 33 }, 34 ) 35 : () ), 36 INSTALLDIRS => ($] >= 5.007 && $] < 5.012) ? 'perl' : 'site', 37 VERSION_FROM => 'Storable.pm', 38 ABSTRACT_FROM => 'Storable.pm', 39 ($ExtUtils::MakeMaker::VERSION > 6.45 ? 40 (META_MERGE => { resources => 41 { bugtracker => 'https://github.com/Perl/perl5/issues' }, 42 provides => { 43 'Storable' => { 44 file => 'Storable.pm', 45 version => MM->parse_version('Storable.pm'), 46 }, 47 }, 48 49 }, 50 ) : ()), 51 dist => { SUFFIX => 'gz', COMPRESS => 'gzip -f' }, 52 clean => { FILES => 'Storable-*' }, 53); 54 55my $ivtype = $Config{ivtype}; 56 57# I don't know if the VMS folks ever supported long long on 5.6.x 58if ($ivtype and $ivtype eq 'long long' and $^O !~ /^MSWin/) { 59 print <<'EOM'; 60 61You appear to have a perl configured to use 64 bit integers in its scalar 62variables. If you have existing data written with an earlier version of 63Storable which this version of Storable refuses to load with a 64 65 Byte order is not compatible 66 67error, then please read the section "64 bit data in perl 5.6.0 and 5.6.1" 68in the Storable documentation for instructions on how to read your data. 69 70(You can find the documentation at the end of Storable.pm in POD format) 71 72EOM 73} 74 75package MY; 76 77sub depend { 78 " 79 80release : dist 81 git tag \$(VERSION) 82 cpan-upload \$(DISTVNAME).tar\$(SUFFIX) 83 git push 84 git push --tags 85" 86} 87