1 2use ExtUtils::MakeMaker; 3# See lib/ExtUtils/MakeMaker.pm for details of how to influence 4# the contents of the Makefile that is written. 5 6$PACKAGE = 'Class::DBI'; 7($PACKAGE_FILE) = $PACKAGE =~ /::([^:]+)/; 8$LAST_API_CHANGE = 0.93; 9 10require 5.006; 11 12eval "require $PACKAGE"; 13 14unless ($@) { # Make sure we did find the module. 15 print <<"CHANGE_WARN" if ${$PACKAGE.'::VERSION'} < $LAST_API_CHANGE; 16 17NOTE: There have been API changes between this version and any older than 18version $LAST_API_CHANGE! Please check carefully if you are upgrading 19from a version older than $LAST_API_CHANGE. 20 21Significant changes: 22 23 0.95 - Breaking the encapsulation of an object (e.g. assuming that 24 the value for the 'title' column will be stored internally in 25 $object->{'title'} will stop working in a forthcoming release. 26 Relying on this behaviour is a Bad Thing, and you should fix it 27 now! (This also applies to before_create triggers, where 28 previously it was the supported approach.) 29 30 0.93 - Undocumented ordered_search() method no longer exists 31 - Undocumented make_filter() method no longer exists 32 - Undocumented option for add_constructor to do %s subitutions removed 33 - single_value_select() no longer takes raw SQL fragments 34 35 0.91 - on_setting() trigger point replaced by new individual column 36 triggers (see documentation on constraints) 37 - runtime database errors now throw exceptions 38 - all errors standardised so on_failed_create no longer needed 39 - objects now overload in string or boolean context 40 41 0.90 - hasa is now deprecated in favour of has_a. Therefore 42 has_many no longer creates reciprocal hasa relationship. 43 44 0.85 - Class::DBI no longer supports pseudo-hash based objects 45 - hasa_list is now deprecated in favour of has_many 46 - has_many auto-creates a reciprocal hasa relationship 47 48 0.32 - delete() now removes any foreign elements, to avoid orphans 49 50CHANGE_WARN 51} 52 53sub MY::postamble { # DBD_PG_USER=tony make cover 54 return <<'' 55cover: 56 rm -rf cover_db 57 PERL5OPT=-MDevel::Cover \$(MAKE) test || true 58 cover cover_db -report html 59 60} 61 62WriteMakefile( 63 NAME => $PACKAGE, 64 VERSION_FROM => 'lib/Class/DBI.pm', 65 PREREQ_PM => { 66 'Class::Accessor' => '0.18', 67 'Class::Data::Inheritable' => '0.02', 68 'Class::Trigger' => '0.07', 69 'File::Temp' => '0.12', 70 'Ima::DBI' => '0.33', 71 'List::Util' => '1.00', 72 'Storable' => '2.04', 73 'Test::More' => '0.47', 74 'UNIVERSAL::moniker' => '0.06', 75 }, 76 dist => { 77 COMPRESS => 'gzip -9', 78 SUFFIX => '.gz', 79 DIST_DEFAULT => 'all tardist', 80 }, 81); 82