aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2012-03-13 16:15:36 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2012-03-13 16:15:36 +0000
commitb59621d3ae883bef429a8fae6073bfa293a55222 (patch)
treeb415c7b2903cf47ada68c5557c3c6ac33a25fc41
parente93c09b8f3675471a176b72ae1e6f085f7a607ad (diff)
downloadports-b59621d3ae883bef429a8fae6073bfa293a55222.tar.gz
ports-b59621d3ae883bef429a8fae6073bfa293a55222.zip
Notes
-rw-r--r--archivers/p5-Archive-Any/Makefile8
-rw-r--r--archivers/p5-Archive-Extract-Libarchive/Makefile8
-rw-r--r--archivers/p5-Archive-Extract/Makefile9
-rw-r--r--archivers/p5-Archive-Peek/Makefile3
-rw-r--r--archivers/p5-Archive-Tar/Makefile22
-rw-r--r--archivers/p5-Archive-Tar/pkg-plist2
-rw-r--r--archivers/p5-Archive-Zip/Makefile9
-rw-r--r--archivers/p5-IO-Zlib/Makefile9
-rw-r--r--archivers/p5-POE-Filter-Zlib/Makefile8
-rw-r--r--astro/p5-Astro-SpaceTrack/Makefile12
-rw-r--r--astro/p5-Astro-satpass/Makefile8
-rw-r--r--audio/p5-Audio-MPD/Makefile10
-rw-r--r--audio/p5-tagged/Makefile9
-rw-r--r--biology/p5-Bio-Das/Makefile8
-rw-r--r--chinese/p5-Encode-HanConvert/Makefile3
-rw-r--r--comms/p5-SMS-Send-TW-Socket2Air/Makefile8
-rw-r--r--comms/p5-SMS-Send-TW-chtsns/Makefile2
-rw-r--r--comms/p5-SMS-Send/Makefile8
-rw-r--r--converters/p5-Convert-ASCII-Armour/Makefile9
-rw-r--r--converters/p5-Encode/Makefile3
-rw-r--r--converters/p5-Unicode-String/Makefile8
-rw-r--r--databases/p5-BSON/Makefile8
-rw-r--r--databases/p5-Cache-Memcached-Fast/Makefile9
-rw-r--r--databases/p5-Class-DBI-Lite/Makefile8
-rw-r--r--databases/p5-DBD-Pg/Makefile9
-rw-r--r--databases/p5-DBIx-Class-EncodedColumn/Makefile15
-rw-r--r--databases/p5-DBIx-Class-QueryProfiler/Makefile10
-rw-r--r--databases/p5-DBIx-Class-Schema-Loader/Makefile8
-rw-r--r--databases/p5-DBIx-Class-Schema-PopulateMore/Makefile7
-rw-r--r--databases/p5-DBIx-Class/Makefile13
-rw-r--r--databases/p5-DBIx-QueryLog/Makefile3
-rw-r--r--databases/p5-DBIx-Sunny/Makefile10
-rw-r--r--databases/p5-DBM-Deep/Makefile8
-rw-r--r--databases/p5-Jifty-DBI/Makefile9
-rw-r--r--databases/p5-MongoDB/Makefile8
-rw-r--r--databases/p5-ORLite/Makefile14
-rw-r--r--databases/p5-Prophet/Makefile9
-rw-r--r--databases/p5-Redis/Makefile12
-rw-r--r--databases/p5-SQL-Translator/Makefile3
-rw-r--r--databases/p5-SQLite-Work/Makefile8
-rw-r--r--devel/p5-Algorithm-Evolutionary/Makefile9
-rw-r--r--devel/p5-Any-Moose-Convert/Makefile8
-rw-r--r--devel/p5-AnyEvent-Filesys-Notify/Makefile8
-rw-r--r--devel/p5-App-CLI/Makefile11
-rw-r--r--devel/p5-App-GitGot/Makefile8
-rw-r--r--devel/p5-App-GitHub/Makefile8
-rw-r--r--devel/p5-AutoLoader/Makefile3
-rw-r--r--devel/p5-B-Hooks-EndOfScope/Makefile8
-rw-r--r--devel/p5-B-Hooks-OP-Check/Makefile9
-rw-r--r--devel/p5-B-Hooks-Parser/Makefile9
-rw-r--r--devel/p5-B-Utils/Makefile8
-rw-r--r--devel/p5-BSD-devstat/Makefile3
-rw-r--r--devel/p5-BZ-Client/Makefile2
-rw-r--r--devel/p5-Bread-Board-Declare/Makefile8
-rw-r--r--devel/p5-Bread-Board/Makefile8
-rw-r--r--devel/p5-CPAN-Checksums/Makefile11
-rw-r--r--devel/p5-CPAN-Meta/Makefile9
-rw-r--r--devel/p5-CPAN-Mini/Makefile8
-rw-r--r--devel/p5-CPAN-YACSmoke/Makefile13
-rw-r--r--devel/p5-CPANPLUS-Dist-Build/Makefile28
-rw-r--r--devel/p5-CPANPLUS/Makefile37
-rw-r--r--devel/p5-CPANPLUS/pkg-plist3
-rw-r--r--devel/p5-Cache-AgainstFile/Makefile3
-rw-r--r--devel/p5-Carp-Always-Color/Makefile12
-rw-r--r--devel/p5-Class-Accessor-Complex/Makefile8
-rw-r--r--devel/p5-Class-Accessor-Grouped/Makefile8
-rw-r--r--devel/p5-Class-Load-XS/Makefile8
-rw-r--r--devel/p5-Class-Tom/Makefile9
-rw-r--r--devel/p5-Config-AutoConf/Makefile9
-rw-r--r--devel/p5-Config-JSON/Makefile8
-rw-r--r--devel/p5-Config-Std/Makefile8
-rw-r--r--devel/p5-Const-Fast/Makefile8
-rw-r--r--devel/p5-Data-Clone/Makefile15
-rw-r--r--devel/p5-Data-Dump-Streamer/Makefile8
-rw-r--r--devel/p5-Data-Dumper-Simple/Makefile9
-rw-r--r--devel/p5-Data-Printer/Makefile4
-rw-r--r--devel/p5-Data-Random/Makefile8
-rw-r--r--devel/p5-Data-Section-Simple/Makefile8
-rw-r--r--devel/p5-Data-Serializer/Makefile8
-rw-r--r--devel/p5-Data-Stream-Bulk/Makefile8
-rw-r--r--devel/p5-Data-Throttler-Memcached/Makefile9
-rw-r--r--devel/p5-Data-Validator/Makefile8
-rw-r--r--devel/p5-Data-Visitor/Makefile8
-rw-r--r--devel/p5-DateTime-Astro/Makefile12
-rw-r--r--devel/p5-DateTime-TimeZone/Makefile12
-rw-r--r--devel/p5-DateTime/Makefile8
-rw-r--r--devel/p5-Devel-CallChecker/Makefile8
-rw-r--r--devel/p5-Devel-CheckOS/Makefile9
-rw-r--r--devel/p5-Devel-Declare/Makefile8
-rw-r--r--devel/p5-Digest-TransformPath/Makefile12
-rw-r--r--devel/p5-Dist-CheckConflicts/Makefile8
-rw-r--r--devel/p5-DynaLoader-Functions/Makefile9
-rw-r--r--devel/p5-Eval-Closure/Makefile8
-rw-r--r--devel/p5-ExtUtils-CBuilder/Makefile5
-rw-r--r--devel/p5-ExtUtils-MakeMaker/Makefile7
-rw-r--r--devel/p5-ExtUtils-ParseXS/Makefile8
-rw-r--r--devel/p5-File-Find-Rule-Perl/Makefile3
-rw-r--r--devel/p5-File-HStore/Makefile9
-rw-r--r--devel/p5-File-HomeDir-PathClass/Makefile10
-rw-r--r--devel/p5-File-MMagic-XS/Makefile12
-rw-r--r--devel/p5-File-MimeInfo/Makefile3
-rw-r--r--devel/p5-File-Pid-Quick/Makefile3
-rw-r--r--devel/p5-FileHandle-Unget/Makefile9
-rw-r--r--devel/p5-Getopt-Compact-WithCmd/Makefile5
-rw-r--r--devel/p5-Getopt-Euclid/Makefile9
-rw-r--r--devel/p5-Git-PurePerl/Makefile9
-rw-r--r--devel/p5-Hash-FieldHash/Makefile19
-rw-r--r--devel/p5-IO-Prompt/Makefile3
-rw-r--r--devel/p5-IO-Toolkit/Makefile9
-rw-r--r--devel/p5-IPC-Cmd/Makefile15
-rw-r--r--devel/p5-JSON-RPC/Makefile5
-rw-r--r--devel/p5-Lexical-Var/Makefile15
-rw-r--r--devel/p5-List-AllUtils/Makefile8
-rw-r--r--devel/p5-List-Rotation-Cycle/Makefile9
-rw-r--r--devel/p5-Log-Dispatch-Dir/Makefile2
-rw-r--r--devel/p5-Log-Log4perl/Makefile3
-rw-r--r--devel/p5-MetaCPAN-API/Makefile5
-rw-r--r--devel/p5-Mixin-Linewise/Makefile9
-rw-r--r--devel/p5-Module-Build/Makefile20
-rw-r--r--devel/p5-Module-CPANTS-Analyse/Makefile13
-rw-r--r--devel/p5-Module-CoreList/Makefile3
-rw-r--r--devel/p5-Module-Depends/Makefile8
-rw-r--r--devel/p5-Module-Implementation/Makefile8
-rw-r--r--devel/p5-Module-Install-XSUtil/Makefile14
-rw-r--r--devel/p5-Module-Install/Makefile20
-rw-r--r--devel/p5-Module-Load-Conditional/Makefile14
-rw-r--r--devel/p5-Module-Pluggable-Ordered/Makefile8
-rw-r--r--devel/p5-Module-Pluggable/Makefile8
-rw-r--r--devel/p5-Module-ScanDeps/Makefile15
-rw-r--r--devel/p5-Moose/Makefile8
-rw-r--r--devel/p5-MooseX-Attribute-Chained/Makefile8
-rw-r--r--devel/p5-MooseX-Getopt/Makefile8
-rw-r--r--devel/p5-MooseX-Log-Log4perl/Makefile3
-rw-r--r--devel/p5-MooseX-MarkAsMethods/Makefile8
-rw-r--r--devel/p5-MooseX-MethodAttributes/Makefile8
-rw-r--r--devel/p5-MooseX-POE/Makefile8
-rw-r--r--devel/p5-MooseX-StrictConstructor/Makefile8
-rw-r--r--devel/p5-MooseX-Types-Perl/Makefile5
-rw-r--r--devel/p5-Mouse/Makefile15
-rw-r--r--devel/p5-MouseX-App-Cmd/Makefile8
-rw-r--r--devel/p5-MouseX-Foreign/Makefile8
-rw-r--r--devel/p5-Multiplex-CMD/Makefile8
-rw-r--r--devel/p5-Object-Pluggable/Makefile8
-rw-r--r--devel/p5-PAR-Packer/Makefile8
-rw-r--r--devel/p5-PAR/Makefile11
-rw-r--r--devel/p5-POE-API-Peek/Makefile3
-rw-r--r--devel/p5-POE-Component-DirWatch/Makefile3
-rw-r--r--devel/p5-POE/Makefile11
-rw-r--r--devel/p5-Package-Stash-XS/Makefile8
-rw-r--r--devel/p5-Package-Stash/Makefile8
-rw-r--r--devel/p5-Params-Check/Makefile8
-rw-r--r--devel/p5-Params-Classify/Makefile8
-rw-r--r--devel/p5-Params-Util/Makefile8
-rw-r--r--devel/p5-Params-Validate/Makefile13
-rw-r--r--devel/p5-Parse-CPAN-Packages/Makefile11
-rw-r--r--devel/p5-Parse-RecDescent/Makefile10
-rw-r--r--devel/p5-Path-Dispatcher/Makefile8
-rw-r--r--devel/p5-Perl-Version/Makefile11
-rw-r--r--devel/p5-PerlIO-Layers/Makefile13
-rw-r--r--devel/p5-PerlIO-Util/Makefile12
-rw-r--r--devel/p5-PerlIO-via-MD5/Makefile10
-rw-r--r--devel/p5-Pod-Coverage-TrustPod/Makefile16
-rw-r--r--devel/p5-Regexp-Grammars/Makefile2
-rw-r--r--devel/p5-SVN-Mirror/Makefile3
-rw-r--r--devel/p5-SVN-S4/Makefile3
-rw-r--r--devel/p5-SVN-Simple/Makefile3
-rw-r--r--devel/p5-Smart-Comments/Makefile12
-rw-r--r--devel/p5-Sys-Info-Base/Makefile3
-rw-r--r--devel/p5-Term-ProgressBar/Makefile8
-rw-r--r--devel/p5-Term-UI/Makefile13
-rw-r--r--devel/p5-Test-Exception-LessClever/Makefile9
-rw-r--r--devel/p5-Test-InDistDir/Makefile3
-rw-r--r--devel/p5-Test-Inline/Makefile10
-rw-r--r--devel/p5-Test-Pod/Makefile8
-rw-r--r--devel/p5-Test-Script/Makefile10
-rw-r--r--devel/p5-Test-Spec/Makefile8
-rw-r--r--devel/p5-Test-TCP/Makefile5
-rw-r--r--devel/p5-Test-Trap/Makefile9
-rw-r--r--devel/p5-Tree-Simple-VisitorFactory/Makefile8
-rw-r--r--devel/p5-XS-Object-Magic/Makefile9
-rw-r--r--devel/p5-lib-abs/Makefile9
-rw-r--r--devel/p5-namespace-clean/Makefile8
-rw-r--r--devel/p5-parent/Makefile3
-rw-r--r--devel/p5-uni-perl/Makefile2
-rw-r--r--dns/p5-Net-DNS-SEC/Makefile10
-rw-r--r--dns/p5-Net-Domain-ExpireDate/Makefile8
-rw-r--r--dns/p5-POE-Component-Resolver/Makefile11
-rw-r--r--editors/p5-Padre/Makefile22
-rw-r--r--ftp/p5-File-Fetch/Makefile12
-rw-r--r--ftp/p5-Net-FTPServer/Makefile10
-rw-r--r--ftp/p5-SOAP-Transport-FTP/Makefile8
-rw-r--r--graphics/p5-CAD-Drawing/Makefile10
-rw-r--r--graphics/p5-Geometry-Primitive/Makefile8
-rw-r--r--graphics/p5-Graph-ReadWrite/Makefile9
-rw-r--r--graphics/p5-GraphViz/Makefile5
-rw-r--r--graphics/p5-GraphViz2/Makefile9
-rw-r--r--graphics/p5-Image-Info/Makefile9
-rw-r--r--graphics/p5-Image-Pngslimmer/Makefile9
-rw-r--r--graphics/p5-Image-Size/Makefile9
-rw-r--r--graphics/p5-PGPLOT/Makefile6
-rw-r--r--graphics/p5-SWF-File/Makefile9
-rw-r--r--japanese/p5-Mail-SpamAssassin/Makefile25
-rw-r--r--lang/p5-Marpa-PP/Makefile22
-rw-r--r--lang/p5-Marpa-XS/Makefile2
-rw-r--r--lang/p5-Marpa/Makefile10
-rw-r--r--lang/p5-Parse-Perl/Makefile8
-rw-r--r--lang/p5-TryCatch/Makefile8
-rw-r--r--mail/p5-Email-MIME/Makefile3
-rw-r--r--mail/p5-FuzzyOcr/Makefile8
-rw-r--r--mail/p5-Mail-DKIM/Makefile9
-rw-r--r--mail/p5-Mail-Graph/Makefile10
-rw-r--r--mail/p5-Mail-SpamAssassin/Makefile4
-rw-r--r--mail/p5-Net-POP3-SSLWrapper/Makefile9
-rw-r--r--mail/p5-SES/Makefile8
-rw-r--r--math/p5-Math-GSL/Makefile5
-rw-r--r--math/p5-Math-Prime-XS/Makefile8
-rw-r--r--math/p5-Math-RPN/Makefile8
-rw-r--r--math/p5-bignum/Makefile11
-rw-r--r--misc/p5-Bot-Training-MegaHAL/Makefile2
-rw-r--r--misc/p5-Bot-Training-StarCraft/Makefile2
-rw-r--r--misc/p5-Bot-Training/Makefile2
-rw-r--r--misc/p5-Geo-Coder-Bing/Makefile8
-rw-r--r--misc/p5-Geo-Coder-Geocoder-US/Makefile8
-rw-r--r--misc/p5-Geo-Coder-Many/Makefile2
-rw-r--r--misc/p5-Geo-Coder-Mapquest/Makefile8
-rw-r--r--misc/p5-Geo-Coder-Multimap/Makefile8
-rw-r--r--misc/p5-Geo-Coder-Navteq/Makefile8
-rw-r--r--misc/p5-Geo-Coder-OSM/Makefile8
-rw-r--r--misc/p5-Geo-Coder-Ovi/Makefile8
-rw-r--r--misc/p5-Geo-Coder-PlaceFinder/Makefile8
-rw-r--r--misc/p5-Geo-Coder-TomTom/Makefile8
-rw-r--r--multimedia/p5-Audio-M4P/Makefile3
-rw-r--r--multimedia/p5-Umph-Prompt/Makefile2
-rw-r--r--multimedia/p5-Video-Info/Makefile9
-rw-r--r--net-im/p5-Net-Async-XMPP/Makefile8
-rw-r--r--net-im/p5-Net-XMPP/Makefile12
-rw-r--r--net-im/p5-Protocol-XMPP/Makefile9
-rw-r--r--net-im/p5-SOAP-Transport-JABBER/Makefile8
-rw-r--r--net-mgmt/p5-FusionInventory-Agent/Makefile9
-rw-r--r--net-p2p/p5-Net-BitTorrent/Makefile12
-rw-r--r--net-p2p/p5-Net-DirectConnect/Makefile9
-rw-r--r--net/p5-AnyEvent-RabbitMQ/Makefile5
-rw-r--r--net/p5-AnyEvent-Twitter/Makefile8
-rw-r--r--net/p5-AnyMQ-AMQP/Makefile5
-rw-r--r--net/p5-Crypt-DH-GMP/Makefile12
-rw-r--r--net/p5-Geo-IPfree/Makefile9
-rw-r--r--net/p5-Google-SAML-Request/Makefile8
-rw-r--r--net/p5-Google-SAML-Response/Makefile8
-rw-r--r--net/p5-Net-Amazon-AWSSign/Makefile8
-rw-r--r--net/p5-Net-Amazon-S3/Makefile8
-rw-r--r--net/p5-Net-Amazon/Makefile14
-rw-r--r--net/p5-Net-Appliance-Session/Makefile8
-rw-r--r--net/p5-Net-CLI-Interact/Makefile8
-rw-r--r--net/p5-Net-GrowlClient/Makefile9
-rw-r--r--net/p5-Net-HTTP/Makefile11
-rw-r--r--net/p5-Net-OAuth/Makefile9
-rw-r--r--net/p5-Net-OpenID-Consumer/Makefile14
-rw-r--r--net/p5-Net-SAP/Makefile9
-rw-r--r--net/p5-Net-Todoist/Makefile8
-rw-r--r--net/p5-Net-Twitter/Makefile8
-rw-r--r--net/p5-RPC-XML/Makefile8
-rw-r--r--net/p5-S3/Makefile8
-rw-r--r--net/p5-SOAP-Lite-060/Makefile8
-rw-r--r--net/p5-SOAP-Lite/Makefile8
-rw-r--r--net/p5-Socket-GetAddrInfo/Makefile6
-rw-r--r--net/p5-Socket-Multicast6/Makefile8
-rw-r--r--net/p5-Socket/Makefile4
-rw-r--r--net/p5-URI-Query/Makefile8
-rw-r--r--ports-mgmt/p5-App-Pm2Port/Makefile2
-rw-r--r--print/p5-PostScript-PPD/Makefile9
-rw-r--r--print/p5-Text-PDF/Makefile9
-rw-r--r--security/p5-Authen-Bitcard/Makefile8
-rw-r--r--security/p5-Authen-Simple/Makefile8
-rw-r--r--security/p5-Crypt-OpenPGP/Makefile8
-rw-r--r--security/p5-Crypt-OpenSSL-CA/Makefile8
-rw-r--r--security/p5-Crypt-OpenSSL-RSA/Makefile3
-rw-r--r--security/p5-Crypt-PBKDF2/Makefile12
-rw-r--r--security/p5-Crypt-SaltedHash/Makefile14
-rw-r--r--security/p5-Crypt-Simple/Makefile12
-rw-r--r--security/p5-Data-Entropy/Makefile8
-rw-r--r--security/p5-Digest-MD5/Makefile8
-rw-r--r--security/p5-Digest-SHA-PurePerl/Makefile17
-rw-r--r--security/p5-Digest-SHA-PurePerl/pkg-plist1
-rw-r--r--security/p5-Digest-SHA/Makefile13
-rw-r--r--security/p5-Digest-SHA/pkg-plist1
-rw-r--r--security/p5-Digest-SHA1/Makefile9
-rw-r--r--security/p5-IO-Socket-SSL/Makefile3
-rw-r--r--security/p5-Module-Signature/Makefile9
-rw-r--r--security/p5-Net-OpenID-Common/Makefile5
-rw-r--r--security/p5-Net-SinFP/Makefile2
-rw-r--r--security/p5-POE-Component-SSLify/Makefile14
-rw-r--r--shells/p5-Bash-Completion/Makefile4
-rw-r--r--sysutils/p5-Brackup/Makefile12
-rw-r--r--sysutils/p5-MogileFS-Utils/Makefile11
-rw-r--r--sysutils/p5-Monitor-Simple/Makefile9
-rw-r--r--sysutils/p5-arclog/Makefile10
-rw-r--r--sysutils/p5-reslog/Makefile10
-rw-r--r--textproc/p5-CSS-Minifier-XS/Makefile8
-rw-r--r--textproc/p5-Excel-Template/Makefile9
-rw-r--r--textproc/p5-Geo-Parse-OSM/Makefile9
-rw-r--r--textproc/p5-HTML-Format/Makefile3
-rw-r--r--textproc/p5-HTML-HTML5-Entities/Makefile8
-rw-r--r--textproc/p5-Hailo/Makefile2
-rw-r--r--textproc/p5-JavaScript-Minifier-XS/Makefile8
-rw-r--r--textproc/p5-KinoSearch/Makefile9
-rw-r--r--textproc/p5-Lingua-EN-NamedEntity/Makefile10
-rw-r--r--textproc/p5-Marpa-HTML/Makefile16
-rw-r--r--textproc/p5-PDF-API2/Makefile9
-rw-r--r--textproc/p5-PPI/Makefile9
-rw-r--r--textproc/p5-PPIx-Regexp/Makefile8
-rw-r--r--textproc/p5-Perl-MinimumVersion/Makefile8
-rw-r--r--textproc/p5-Pod-POM/Makefile9
-rw-r--r--textproc/p5-Pod-ProjectDocs/Makefile9
-rw-r--r--textproc/p5-Pod-Simple/Makefile9
-rw-r--r--textproc/p5-Pod-Strip/Makefile9
-rw-r--r--textproc/p5-Pod-Tree/Makefile10
-rw-r--r--textproc/p5-String-ToIdentifier-EN/Makefile13
-rw-r--r--textproc/p5-Template-Plugin-Filter-Minify-CSS-XS/Makefile8
-rw-r--r--textproc/p5-Template-Plugin-Filter-Minify-CSS/Makefile8
-rw-r--r--textproc/p5-Template-Plugin-Filter-Minify-JavaScript-XS/Makefile8
-rw-r--r--textproc/p5-Template-Plugin-Filter-Minify-JavaScript/Makefile8
-rw-r--r--textproc/p5-Text-ASCIITable/Makefile3
-rw-r--r--textproc/p5-Text-Padding/Makefile10
-rw-r--r--textproc/p5-Text-Quote/Makefile8
-rw-r--r--textproc/p5-Text-VimColor/Makefile4
-rw-r--r--textproc/p5-Tk-Pod/Makefile4
-rw-r--r--textproc/p5-URI-Find/Makefile8
-rw-r--r--textproc/p5-XML-Feed/Makefile8
-rw-r--r--textproc/p5-XML-Generator/Makefile3
-rw-r--r--textproc/p5-XML-LibXML-PrettyPrint/Makefile2
-rw-r--r--textproc/p5-XML-SAX-Machines/Makefile3
-rw-r--r--textproc/p5-XML-Stream/Makefile12
-rw-r--r--textproc/p5-podlators/Makefile8
-rw-r--r--www/p5-Apache-ASP/Makefile8
-rw-r--r--www/p5-Blog-Spam/Makefile8
-rw-r--r--www/p5-Business-PayPal/Makefile10
-rw-r--r--www/p5-CGI-Application-Dispatch/Makefile9
-rw-r--r--www/p5-CGI-Compress-Gzip/Makefile9
-rw-r--r--www/p5-CGI-SpeedyCGI/Makefile2
-rw-r--r--www/p5-CSS-DOM/Makefile8
-rw-r--r--www/p5-Catalyst-Action-REST/Makefile8
-rw-r--r--www/p5-Catalyst-Authentication-Credential-OpenID/Makefile9
-rw-r--r--www/p5-Catalyst-Devel/Makefile8
-rw-r--r--www/p5-Catalyst-Model-DBIC-Schema/Makefile8
-rw-r--r--www/p5-Catalyst-Model-Memcached/Makefile2
-rw-r--r--www/p5-Catalyst-Plugin-Authentication/Makefile8
-rw-r--r--www/p5-Catalyst-Plugin-Session-FastMmap/Makefile3
-rw-r--r--www/p5-Catalyst-Plugin-Static/Makefile3
-rw-r--r--www/p5-Catalyst-Plugin-Unicode-Encoding/Makefile8
-rw-r--r--www/p5-Catalyst-Runtime/Makefile9
-rw-r--r--www/p5-Catalyst-View-Email/Makefile9
-rw-r--r--www/p5-Catalyst-View-Mason/Makefile9
-rw-r--r--www/p5-FCGI-Client/Makefile13
-rw-r--r--www/p5-FCGI-Engine/Makefile8
-rw-r--r--www/p5-FEAR-API/Makefile8
-rw-r--r--www/p5-Feersum/Makefile13
-rw-r--r--www/p5-HTTP-Body/Makefile8
-rw-r--r--www/p5-HTTP-Cache-Transparent/Makefile8
-rw-r--r--www/p5-HTTP-Message/Makefile14
-rw-r--r--www/p5-HTTP-Response-Encoding/Makefile8
-rw-r--r--www/p5-Jifty/Makefile8
-rw-r--r--www/p5-LWP-Authen-Wsse/Makefile8
-rw-r--r--www/p5-Markup-Perl/Makefile8
-rw-r--r--www/p5-MojoMojo/Makefile9
-rw-r--r--www/p5-Mojolicious-Plugin-Database/Makefile8
-rw-r--r--www/p5-Mojolicious-Plugin-Mongodb/Makefile8
-rw-r--r--www/p5-Mojolicious/Makefile2
-rw-r--r--www/p5-Net-FreshBooks-API/Makefile4
-rw-r--r--www/p5-Perlanet/Makefile8
-rw-r--r--www/p5-Plack-Middleware-Expires/Makefile8
-rw-r--r--www/p5-Plack-Middleware-XForwardedFor/Makefile9
-rw-r--r--www/p5-Plack-Test-ExternalServer/Makefile8
-rw-r--r--www/p5-Pod-Site/Makefile13
-rw-r--r--www/p5-Router-Simple/Makefile10
-rw-r--r--www/p5-Tatsumaki/Makefile8
-rw-r--r--www/p5-URI-Fetch/Makefile10
-rw-r--r--www/p5-URI-Title/Makefile13
-rw-r--r--www/p5-WWW-AtMovies-TV/Makefile10
-rw-r--r--www/p5-WWW-Baseball-NPB/Makefile8
-rw-r--r--www/p5-WWW-Contact/Makefile8
-rw-r--r--www/p5-WWW-Facebook-API/Makefile8
-rw-r--r--www/p5-WWW-Mechanize-GZip/Makefile9
-rw-r--r--www/p5-WWW-Mechanize-Pluggable/Makefile8
-rw-r--r--www/p5-WWW-Mechanize-Shell/Makefile9
-rw-r--r--www/p5-WWW-Plurk/Makefile10
-rw-r--r--www/p5-WWW-iTunesConnect/Makefile10
-rw-r--r--x11-toolkits/p5-Alien-wxWidgets/Makefile4
-rw-r--r--x11-toolkits/p5-Tk-Action/Makefile2
-rw-r--r--x11-toolkits/p5-Tk-Role-Dialog/Makefile10
-rw-r--r--x11-toolkits/p5-Tk-Role-HasWidgets/Makefile10
-rw-r--r--x11-toolkits/p5-Wx-Perl-ProcessStream/Makefile8
391 files changed, 2907 insertions, 384 deletions
diff --git a/archivers/p5-Archive-Any/Makefile b/archivers/p5-Archive-Any/Makefile
index 41a94ddb5878..86bf6b563c13 100644
--- a/archivers/p5-Archive-Any/Makefile
+++ b/archivers/p5-Archive-Any/Makefile
@@ -29,4 +29,10 @@ PERL_MODBUILD= yes
MAN3= Archive::Any.3 Archive::Any::Plugin.3 \
Archive::Any::Plugin::Tar.3 Archive::Any::Plugin::Zip.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-Archive-Tar>=0.22:${PORTSDIR}/archivers/p5-Archive-Tar
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/archivers/p5-Archive-Extract-Libarchive/Makefile b/archivers/p5-Archive-Extract-Libarchive/Makefile
index 82de05168837..3634043c4e9d 100644
--- a/archivers/p5-Archive-Extract-Libarchive/Makefile
+++ b/archivers/p5-Archive-Extract-Libarchive/Makefile
@@ -25,4 +25,10 @@ PERL_MODBUILD= yes
MAN3= Archive::Extract::Libarchive.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/archivers/p5-Archive-Extract/Makefile b/archivers/p5-Archive-Extract/Makefile
index ab95dd95b512..a5604718241e 100644
--- a/archivers/p5-Archive-Extract/Makefile
+++ b/archivers/p5-Archive-Extract/Makefile
@@ -21,6 +21,15 @@ MAN3= Archive::Extract.3
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Module-Load-Conditional>=0.04:${PORTSDIR}/devel/p5-Module-Load-Conditional \
+ p5-Params-Check>=0.07:${PORTSDIR}/devel/p5-Params-Check
+RUN_DEPENDS+= p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Module-Load-Conditional>=0.04:${PORTSDIR}/devel/p5-Module-Load-Conditional \
+ p5-Params-Check>=0.07:${PORTSDIR}/devel/p5-Params-Check
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-IPC-Cmd>=0.64:${PORTSDIR}/devel/p5-IPC-Cmd
RUN_DEPENDS+= p5-IPC-Cmd>=0.64:${PORTSDIR}/devel/p5-IPC-Cmd
diff --git a/archivers/p5-Archive-Peek/Makefile b/archivers/p5-Archive-Peek/Makefile
index 9f6d95a32394..37155c8a171e 100644
--- a/archivers/p5-Archive-Peek/Makefile
+++ b/archivers/p5-Archive-Peek/Makefile
@@ -26,4 +26,7 @@ PERL_CONFIGURE= yes
MAN3= Archive::Peek.3
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/archivers/p5-Archive-Tar/Makefile b/archivers/p5-Archive-Tar/Makefile
index c0d7ee9632af..373086e8439b 100644
--- a/archivers/p5-Archive-Tar/Makefile
+++ b/archivers/p5-Archive-Tar/Makefile
@@ -23,12 +23,32 @@ MAN3= Archive::Tar.3 Archive::Tar::File.3
OPTIONS= TEXT_DIFF "Text::Diff support for ptardiff" off
+.include <bsd.port.pre.mk>
+
.if defined(WITH_TEXT_DIFF)
RUN_DEPENDS+= ${SITE_PERL}/Text/Diff.pm:${PORTSDIR}/textproc/p5-Text-Diff
.endif
+.if ${PERL_LEVEL} < 500904
+RUN_DEPENDS+= p5-Package-Constants>=0:${PORTSDIR}/devel/p5-Package-Constants
+.endif
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Zlib>=1.01:${PORTSDIR}/archivers/p5-IO-Zlib \
+ p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.if ${PERL_LEVEL} >= 501000
+PLIST_SUB+= EXE_FILES="@comment "
+.else
+PLIST_SUB+= EXE_FILES=""
+MAN1= ptardiff.1 ptar.1
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's/5.009/5.666/' ${WRKSRC}/Makefile.PL
+.if ${PERL_LEVEL} >= 501000
@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/archivers/p5-Archive-Tar/pkg-plist b/archivers/p5-Archive-Tar/pkg-plist
index 595b64154f2e..bc81f665980b 100644
--- a/archivers/p5-Archive-Tar/pkg-plist
+++ b/archivers/p5-Archive-Tar/pkg-plist
@@ -1,3 +1,5 @@
+%%EXE_FILES%%bin/ptar
+%%EXE_FILES%%bin/ptardiff
%%SITE_PERL%%/Archive/Tar.pm
%%SITE_PERL%%/Archive/Tar/Constant.pm
%%SITE_PERL%%/Archive/Tar/File.pm
diff --git a/archivers/p5-Archive-Zip/Makefile b/archivers/p5-Archive-Zip/Makefile
index f583ab0b0d9b..a6cfae1851c4 100644
--- a/archivers/p5-Archive-Zip/Makefile
+++ b/archivers/p5-Archive-Zip/Makefile
@@ -19,4 +19,11 @@ PERL_CONFIGURE= yes
MAN3= Archive::Zip.3 Archive::Zip::Tree.3 Archive::Zip::FAQ.3 Archive::Zip::MemberRead.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/archivers/p5-IO-Zlib/Makefile b/archivers/p5-IO-Zlib/Makefile
index d88511a79c46..325e758da29e 100644
--- a/archivers/p5-IO-Zlib/Makefile
+++ b/archivers/p5-IO-Zlib/Makefile
@@ -19,4 +19,11 @@ COMMENT= IO:: style interface to Compress::Zlib
PERL_CONFIGURE= yes
MAN3= IO::Zlib.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+BUILD_DEPENDS= p5-IO-Compress>=2:${PORTSDIR}/archivers/p5-IO-Compress
+RUN_DEPENDS= p5-IO-Compress>=2:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/archivers/p5-POE-Filter-Zlib/Makefile b/archivers/p5-POE-Filter-Zlib/Makefile
index 7d1ab9375fab..13549533a9ea 100644
--- a/archivers/p5-POE-Filter-Zlib/Makefile
+++ b/archivers/p5-POE-Filter-Zlib/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= POE::Filter::Zlib.3 \
POE::Filter::Zlib::Stream.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/astro/p5-Astro-SpaceTrack/Makefile b/astro/p5-Astro-SpaceTrack/Makefile
index db63b7a0dce3..3b706e4a697a 100644
--- a/astro/p5-Astro-SpaceTrack/Makefile
+++ b/astro/p5-Astro-SpaceTrack/Makefile
@@ -32,4 +32,14 @@ CONFIGURE_ARGS= -y
MAN1= SpaceTrack.1
MAN3= Astro::SpaceTrack.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/astro/p5-Astro-satpass/Makefile b/astro/p5-Astro-satpass/Makefile
index 618dd4be4cee..d6f24b03830a 100644
--- a/astro/p5-Astro-satpass/Makefile
+++ b/astro/p5-Astro-satpass/Makefile
@@ -63,4 +63,10 @@ RUN_DEPENDS+= p5-Geo-WebService-Elevation-USGS>=0:${PORTSDIR}/science/p5-Geo-Web
RUN_DEPENDS+= p5-SOAP-Lite>=0:${PORTSDIR}/net/p5-SOAP-Lite
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/audio/p5-Audio-MPD/Makefile b/audio/p5-Audio-MPD/Makefile
index afd6db401209..20b1762902b5 100644
--- a/audio/p5-Audio-MPD/Makefile
+++ b/audio/p5-Audio-MPD/Makefile
@@ -29,7 +29,7 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Test-Corpus-Audio-MPD>=1.113282:${PORTSDIR}/audio/p5-Test-Corpus-Audio-MPD
-PERL_MODBUILD= yes
+PERL_MODBUILD= 5.10.0+
MAN1= mpd-dynamic.1 \
mpd-rate.1
@@ -38,4 +38,10 @@ MAN3= Audio::MPD.3 \
Audio::MPD::Playlist.3 \
Audio::MPD::Types.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/audio/p5-tagged/Makefile b/audio/p5-tagged/Makefile
index f05b74fd830f..4dcf5e776411 100644
--- a/audio/p5-tagged/Makefile
+++ b/audio/p5-tagged/Makefile
@@ -23,4 +23,11 @@ MAN3= MP3::Tag::ID3v2.3 MP3::Tag.3 MP3::Tag::File.3 \
CONFLICTS= p5-MP3-Tag-0.*
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/biology/p5-Bio-Das/Makefile b/biology/p5-Bio-Das/Makefile
index 615257c6c48e..f3615d350a05 100644
--- a/biology/p5-Bio-Das/Makefile
+++ b/biology/p5-Bio-Das/Makefile
@@ -34,4 +34,10 @@ MAN3= Bio::Das.3 Bio::Das::AGPServer::Config.3 Bio::Das::AGPServer::Daemon.3 \
Bio::Das::Request::Types.3 Bio::Das::Segment.3 Bio::Das::Stylesheet.3 \
Bio::Das::Type.3 Bio::Das::TypeHandler.3 Bio::Das::Util.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/chinese/p5-Encode-HanConvert/Makefile b/chinese/p5-Encode-HanConvert/Makefile
index 2ca27e704109..6712420be5fc 100644
--- a/chinese/p5-Encode-HanConvert/Makefile
+++ b/chinese/p5-Encode-HanConvert/Makefile
@@ -19,4 +19,7 @@ PERL_CONFIGURE= yes
MAN1= b2g.pl.1 g2b.pl.1
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/comms/p5-SMS-Send-TW-Socket2Air/Makefile b/comms/p5-SMS-Send-TW-Socket2Air/Makefile
index ad9868cd0171..b2df499c3010 100644
--- a/comms/p5-SMS-Send-TW-Socket2Air/Makefile
+++ b/comms/p5-SMS-Send-TW-Socket2Air/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= SMS::Send::TW::Socket2Air.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+IGNORE= perl 5.10 or above is required
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/comms/p5-SMS-Send-TW-chtsns/Makefile b/comms/p5-SMS-Send-TW-chtsns/Makefile
index cb81a7b22f93..1e9ea500bcd2 100644
--- a/comms/p5-SMS-Send-TW-chtsns/Makefile
+++ b/comms/p5-SMS-Send-TW-chtsns/Makefile
@@ -21,7 +21,7 @@ RUN_DEPENDS= p5-SMS-Send>=0:${PORTSDIR}/comms/p5-SMS-Send \
p5-Text-Iconv>=0:${PORTSDIR}/converters/p5-Text-Iconv
BUILD_DEPENDS= ${RUN_DEPENDS}
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10+
MAN3= SMS::Send::TW::chtsns.3
diff --git a/comms/p5-SMS-Send/Makefile b/comms/p5-SMS-Send/Makefile
index 415d51f99cd7..7146b28a40df 100644
--- a/comms/p5-SMS-Send/Makefile
+++ b/comms/p5-SMS-Send/Makefile
@@ -26,4 +26,10 @@ MAN3= SMS::Send.3 \
SMS::Send::Driver.3 \
SMS::Send::Test.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Module-Pluggable>=2.5:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/converters/p5-Convert-ASCII-Armour/Makefile b/converters/p5-Convert-ASCII-Armour/Makefile
index b1d2b0ad3c7b..871f8b54f831 100644
--- a/converters/p5-Convert-ASCII-Armour/Makefile
+++ b/converters/p5-Convert-ASCII-Armour/Makefile
@@ -19,4 +19,11 @@ PERL_CONFIGURE= yes
MAN3= Convert::ASCII::Armour.3 Convert::ASCII::Armor.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/converters/p5-Encode/Makefile b/converters/p5-Encode/Makefile
index 2249f3e0b9df..832cc0b6bc38 100644
--- a/converters/p5-Encode/Makefile
+++ b/converters/p5-Encode/Makefile
@@ -43,4 +43,7 @@ post-configure:
@${FIND} ${WRKSRC}/ -name Makefile -exec \
${REINPLACE_CMD} -e 's,^CC =,CC ?=,' {} \;
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/converters/p5-Unicode-String/Makefile b/converters/p5-Unicode-String/Makefile
index 45fd2da45e94..acf325845c65 100644
--- a/converters/p5-Unicode-String/Makefile
+++ b/converters/p5-Unicode-String/Makefile
@@ -16,6 +16,12 @@ COMMENT= These are experimental Perl5 modules to handle various Unicode issues
PERL_CONFIGURE= yes
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500804
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
+.endif
+
MAN3= Unicode::CharName.3 Unicode::String.3
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/databases/p5-BSON/Makefile b/databases/p5-BSON/Makefile
index 0f940ea4bca0..b60ec0b4c405 100644
--- a/databases/p5-BSON/Makefile
+++ b/databases/p5-BSON/Makefile
@@ -37,4 +37,10 @@ MAN3= BSON.3 \
BSON::Time.3 \
BSON::Timestamp.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-Cache-Memcached-Fast/Makefile b/databases/p5-Cache-Memcached-Fast/Makefile
index 0412dcebf363..9de0310dd9ec 100644
--- a/databases/p5-Cache-Memcached-Fast/Makefile
+++ b/databases/p5-Cache-Memcached-Fast/Makefile
@@ -19,4 +19,11 @@ PERL_CONFIGURE= yes
MAN3= Cache::Memcached::Fast.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-Class-DBI-Lite/Makefile b/databases/p5-Class-DBI-Lite/Makefile
index 5332917b8307..fe151c6d9145 100644
--- a/databases/p5-Class-DBI-Lite/Makefile
+++ b/databases/p5-Class-DBI-Lite/Makefile
@@ -40,4 +40,10 @@ MAN3= Class::DBI::Lite.3 \
Class::DBI::Lite::TableInfo.3 \
Class::DBI::Lite::Tutorial.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.77:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-DBD-Pg/Makefile b/databases/p5-DBD-Pg/Makefile
index 63e2257ad1e4..2a973a33df6e 100644
--- a/databases/p5-DBD-Pg/Makefile
+++ b/databases/p5-DBD-Pg/Makefile
@@ -36,4 +36,11 @@ post-install:
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-DBIx-Class-EncodedColumn/Makefile b/databases/p5-DBIx-Class-EncodedColumn/Makefile
index 2b2f5db177ab..fbc653206a53 100644
--- a/databases/p5-DBIx-Class-EncodedColumn/Makefile
+++ b/databases/p5-DBIx-Class-EncodedColumn/Makefile
@@ -33,10 +33,20 @@ MAN3= DBIx::Class::EncodedColumn.3 \
DBIx::Class::EncodedColumn::Crypt::OpenPGP.3 \
DBIx::Class::EncodedColumn::Digest.3
+post-extract:
+ @${PERL} -i -ne 'print unless m,^build_requires, || m,^feature, .. m,;,' ${WRKSRC}/Makefile.PL
+
OPTIONS= SHA "Digest::SHA Support" On \
BLOWFISH "Blowfish Support?" On \
OPENPGP "Crypt::OpenPGP (gpg) Support" On
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SHA)
+. if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+. endif
+.endif
.if defined(WITH_BLOWFISH)
RUN_DEPENDS+= p5-Crypt-Eksblowfish>=0:${PORTSDIR}/security/p5-Crypt-Eksblowfish
.endif
@@ -45,7 +55,4 @@ RUN_DEPENDS+= p5-Crypt-OpenPGP>=0:${PORTSDIR}/security/p5-Crypt-OpenPGP \
p5-Crypt-CAST5_PP>=0:${PORTSDIR}/security/p5-Crypt-CAST5_PP
.endif
-post-extract:
- @${PERL} -i -ne 'print unless m,^build_requires, || m,^feature, .. m,;,' ${WRKSRC}/Makefile.PL
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/databases/p5-DBIx-Class-QueryProfiler/Makefile b/databases/p5-DBIx-Class-QueryProfiler/Makefile
index a373d9fe1744..f7965212df84 100644
--- a/databases/p5-DBIx-Class-QueryProfiler/Makefile
+++ b/databases/p5-DBIx-Class-QueryProfiler/Makefile
@@ -26,4 +26,12 @@ PERL_CONFIGURE= yes
MAN3= DBIx::Class::QueryProfiler.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-DBIx-Class-Schema-Loader/Makefile b/databases/p5-DBIx-Class-Schema-Loader/Makefile
index e784b00db498..2a28425b2af8 100644
--- a/databases/p5-DBIx-Class-Schema-Loader/Makefile
+++ b/databases/p5-DBIx-Class-Schema-Loader/Makefile
@@ -117,4 +117,10 @@ USE_PGSQL= yes
USE_SQLITE= yes
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-DBIx-Class-Schema-PopulateMore/Makefile b/databases/p5-DBIx-Class-Schema-PopulateMore/Makefile
index 05696c8fa0ea..9b2581d47d26 100644
--- a/databases/p5-DBIx-Class-Schema-PopulateMore/Makefile
+++ b/databases/p5-DBIx-Class-Schema-PopulateMore/Makefile
@@ -55,6 +55,13 @@ MAN3= DBIx::Class::Schema::PopulateMore.3 \
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Module-Pluggable>=3.9:${PORTSDIR}/devel/p5-Module-Pluggable \
+ p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-Module-Pluggable>=3.9:${PORTSDIR}/devel/p5-Module-Pluggable \
+ p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+= p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
.endif
diff --git a/databases/p5-DBIx-Class/Makefile b/databases/p5-DBIx-Class/Makefile
index b66d739e0c3d..ed490b0809d7 100644
--- a/databases/p5-DBIx-Class/Makefile
+++ b/databases/p5-DBIx-Class/Makefile
@@ -187,4 +187,15 @@ MAN3= DBIx::Class.3 \
RUN_DEPENDS+= p5-SQL-Translator>=0.09.004:${PORTSDIR}/databases/p5-SQL-Translator
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-File-Temp>=0.22:${PORTSDIR}/devel/p5-File-Temp
+RUN_DEPENDS+= p5-File-Path>=2.07:${PORTSDIR}/devel/p5-File-Path
+.endif
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-DBIx-QueryLog/Makefile b/databases/p5-DBIx-QueryLog/Makefile
index a1e554721b39..b732c11d7c47 100644
--- a/databases/p5-DBIx-QueryLog/Makefile
+++ b/databases/p5-DBIx-QueryLog/Makefile
@@ -14,7 +14,8 @@ PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension for logging queries for DBI
-RUN_DEPENDS= p5-DBI>0:${PORTSDIR}/databases/p5-DBI
+RUN_DEPENDS= \
+ p5-DBI>0:${PORTSDIR}/databases/p5-DBI
BUILD_DEPENDS= ${RUN_DEPENDS}
TEST_DEPENDS= p5-Test-Requires>=0:${PORTSDIR}/devel/p5-Test-Requires
diff --git a/databases/p5-DBIx-Sunny/Makefile b/databases/p5-DBIx-Sunny/Makefile
index 1405d2baffce..11c0cff85648 100644
--- a/databases/p5-DBIx-Sunny/Makefile
+++ b/databases/p5-DBIx-Sunny/Makefile
@@ -39,4 +39,12 @@ PERL_CONFIGURE= yes
MAN3= DBIx::Sunny.3 \
DBIx::Sunny::Schema.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-DBM-Deep/Makefile b/databases/p5-DBM-Deep/Makefile
index 9880a133c741..439686d3b398 100644
--- a/databases/p5-DBM-Deep/Makefile
+++ b/databases/p5-DBM-Deep/Makefile
@@ -32,4 +32,10 @@ MAN3= DBM::Deep.3 DBM::Deep::Cookbook.3 DBM::Deep::Internals.3 \
DBM::Deep::Iterator::File::Index.3 DBM::Deep::Null.3 \
DBM::Deep::Engine::File.3 DBM::Deep::Sector::File.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-Jifty-DBI/Makefile b/databases/p5-Jifty-DBI/Makefile
index d0d39aa355ae..571bd45cd81b 100644
--- a/databases/p5-Jifty-DBI/Makefile
+++ b/databases/p5-Jifty-DBI/Makefile
@@ -82,4 +82,11 @@ MAN3= Jifty::DBI.3 \
Jifty::DBI::Schema.3 \
Jifty::DBI::SchemaGenerator.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-MongoDB/Makefile b/databases/p5-MongoDB/Makefile
index 59eeae4d099d..f082778c5e71 100644
--- a/databases/p5-MongoDB/Makefile
+++ b/databases/p5-MongoDB/Makefile
@@ -53,4 +53,10 @@ MAN3= MongoDB.3 \
MongoDB::Timestamp.3 \
MongoDB::Tutorial.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500809
+TEST_DEPENDS+= p5-File-Temp>=0.17:${PORTSDIR}/devel/p5-File-Temp
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-ORLite/Makefile b/databases/p5-ORLite/Makefile
index 6da6101012ad..44ec40f1c197 100644
--- a/databases/p5-ORLite/Makefile
+++ b/databases/p5-ORLite/Makefile
@@ -27,4 +27,16 @@ PERL_CONFIGURE= yes
MAN3= ORLite.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-File-Temp>=0.20:${PORTSDIR}/devel/p5-File-Temp
+RUN_DEPENDS+= p5-File-Temp>=0.20:${PORTSDIR}/devel/p5-File-Temp
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-File-Path>=2.08:${PORTSDIR}/devel/p5-File-Path
+RUN_DEPENDS+= p5-File-Path>=2.08:${PORTSDIR}/devel/p5-File-Path
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-Prophet/Makefile b/databases/p5-Prophet/Makefile
index bc864e5b69c3..6c04b8d79715 100644
--- a/databases/p5-Prophet/Makefile
+++ b/databases/p5-Prophet/Makefile
@@ -95,4 +95,11 @@ MAN3= Prophet::Web::Result.3 \
Prophet::Replica::sqlite.3 \
Prophet::Meta::Types.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-Redis/Makefile b/databases/p5-Redis/Makefile
index b267459489bc..88f4f7490ffc 100644
--- a/databases/p5-Redis/Makefile
+++ b/databases/p5-Redis/Makefile
@@ -29,4 +29,14 @@ PERL_CONFIGURE= yes
MAN3= Redis.3 Redis::Hash.3 Redis::List.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-IPC-Cmd>=0:${PORTSDIR}/devel/p5-IPC-Cmd
+.endif
+
+.if ${PERL_LEVEL} < 501000
+TEST_DEPENDS+= p5-Test-Simple>=0.96:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/p5-SQL-Translator/Makefile b/databases/p5-SQL-Translator/Makefile
index c9afe9452e96..81091d086abc 100644
--- a/databases/p5-SQL-Translator/Makefile
+++ b/databases/p5-SQL-Translator/Makefile
@@ -113,6 +113,9 @@ MAN3= SQL::Translator.3 \
post-patch:
@${FIND} ${WRKSRC} -name "*.orig" -delete
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.pre.mk>
.if defined(WITH_DIAGRAM)
diff --git a/databases/p5-SQLite-Work/Makefile b/databases/p5-SQLite-Work/Makefile
index 647439e327c4..199a78e50baf 100644
--- a/databases/p5-SQLite-Work/Makefile
+++ b/databases/p5-SQLite-Work/Makefile
@@ -35,4 +35,10 @@ MAN1= sqlw_mail.1 \
post-patch:
${CHMOD} u+w ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500807
+RUN_DEPENDS+= p5-CGI.pm>=3.10:${PORTSDIR}/www/p5-CGI.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Algorithm-Evolutionary/Makefile b/devel/p5-Algorithm-Evolutionary/Makefile
index 0b812cfc0c73..872c0bd7b11f 100644
--- a/devel/p5-Algorithm-Evolutionary/Makefile
+++ b/devel/p5-Algorithm-Evolutionary/Makefile
@@ -116,4 +116,11 @@ MAN3= Algorithm::Evolutionary.3 \
Algorithm::Evolutionary::Wheel.3 \
Algorithm::Evolutionary::XML.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Any-Moose-Convert/Makefile b/devel/p5-Any-Moose-Convert/Makefile
index f8f4814794fb..a62a4fbc1ac6 100644
--- a/devel/p5-Any-Moose-Convert/Makefile
+++ b/devel/p5-Any-Moose-Convert/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= yes
MAN3= Any::Moose::Convert.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-AnyEvent-Filesys-Notify/Makefile b/devel/p5-AnyEvent-Filesys-Notify/Makefile
index c402995288d1..9b31ae98371a 100644
--- a/devel/p5-AnyEvent-Filesys-Notify/Makefile
+++ b/devel/p5-AnyEvent-Filesys-Notify/Makefile
@@ -33,4 +33,10 @@ MAN3= AnyEvent::Filesys::Notify.3 \
AnyEvent::Filesys::Notify::Role::Linux.3 \
AnyEvent::Filesys::Notify::Role::Mac.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-autodie>0:${PORTSDIR}/devel/p5-autodie
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-App-CLI/Makefile b/devel/p5-App-CLI/Makefile
index e303d072b202..e845338670d2 100644
--- a/devel/p5-App-CLI/Makefile
+++ b/devel/p5-App-CLI/Makefile
@@ -18,4 +18,13 @@ PERL_CONFIGURE= yes
MAN3= App::CLI.3 App::CLI::Command.3 App::CLI::Command::Help.3 App::CLI::Helper.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS= p5-Getopt-Long>=2.35:${PORTSDIR}/devel/p5-Getopt-Long \
+ p5-Locale-Maketext-Simple>0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Pod-Simple>0:${PORTSDIR}/textproc/p5-Pod-Simple
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-App-GitGot/Makefile b/devel/p5-App-GitGot/Makefile
index 08a1ef1ecea6..4dcddc7c2aab 100644
--- a/devel/p5-App-GitGot/Makefile
+++ b/devel/p5-App-GitGot/Makefile
@@ -64,4 +64,10 @@ MAN3= App::GitGot.3 \
App::GitGot::Repo.3 \
App::GitGot::Repo::Git.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-autodie>=0:${PORTSDIR}/devel/p5-autodie
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-App-GitHub/Makefile b/devel/p5-App-GitHub/Makefile
index 977ce093e035..4be5d67655af 100644
--- a/devel/p5-App-GitHub/Makefile
+++ b/devel/p5-App-GitHub/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN1= github.pl.1
MAN3= App::GitHub.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-IPC-Cmd>=0:${PORTSDIR}/devel/p5-IPC-Cmd
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-AutoLoader/Makefile b/devel/p5-AutoLoader/Makefile
index 8c088543baf0..b92b872ae739 100644
--- a/devel/p5-AutoLoader/Makefile
+++ b/devel/p5-AutoLoader/Makefile
@@ -18,4 +18,7 @@ PERL_CONFIGURE= yes
MAN3= AutoLoader.3 AutoSplit.3
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-B-Hooks-EndOfScope/Makefile b/devel/p5-B-Hooks-EndOfScope/Makefile
index 24d2d003282a..ed9718e3680b 100644
--- a/devel/p5-B-Hooks-EndOfScope/Makefile
+++ b/devel/p5-B-Hooks-EndOfScope/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= yes
MAN3= B::Hooks::EndOfScope.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.89:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-B-Hooks-OP-Check/Makefile b/devel/p5-B-Hooks-OP-Check/Makefile
index b6fd676fe3dd..92bff1405944 100644
--- a/devel/p5-B-Hooks-OP-Check/Makefile
+++ b/devel/p5-B-Hooks-OP-Check/Makefile
@@ -20,4 +20,11 @@ PERL_CONFIGURE= yes
MAN3= B::Hooks::OP::Check.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-B-Hooks-Parser/Makefile b/devel/p5-B-Hooks-Parser/Makefile
index 011b2a14aa1b..bb3ff13b4791 100644
--- a/devel/p5-B-Hooks-Parser/Makefile
+++ b/devel/p5-B-Hooks-Parser/Makefile
@@ -25,4 +25,11 @@ PERL_CONFIGURE= yes
MAN3= B::Hooks::Parser.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-B-Utils/Makefile b/devel/p5-B-Utils/Makefile
index 6582d3fa3026..1aaf873ad479 100644
--- a/devel/p5-B-Utils/Makefile
+++ b/devel/p5-B-Utils/Makefile
@@ -26,4 +26,10 @@ MAN3= B::Utils.3 B::Utils::OP.3
PERL_CONFIGURE= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-BSD-devstat/Makefile b/devel/p5-BSD-devstat/Makefile
index 213b58731e12..272e83d18328 100644
--- a/devel/p5-BSD-devstat/Makefile
+++ b/devel/p5-BSD-devstat/Makefile
@@ -19,4 +19,7 @@ PERL_CONFIGURE= yes
MAN3= BSD::devstat.3
+regression-test:
+ cd ${WRKSRC} && make test
+
.include <bsd.port.mk>
diff --git a/devel/p5-BZ-Client/Makefile b/devel/p5-BZ-Client/Makefile
index f2b98538cac7..a1334aaf0c6b 100644
--- a/devel/p5-BZ-Client/Makefile
+++ b/devel/p5-BZ-Client/Makefile
@@ -22,7 +22,7 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
p5-DateTime-Format-ISO8601>=0:${PORTSDIR}/devel/p5-DateTime-Format-ISO8601
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.1+
MAN3= BZ::Client.3 BZ::Client::API.3 BZ::Client::Bug.3 \
BZ::Client::Bugzilla.3 BZ::Client::Exception.3 \
diff --git a/devel/p5-Bread-Board-Declare/Makefile b/devel/p5-Bread-Board-Declare/Makefile
index fc759c770e43..301ee67f9425 100644
--- a/devel/p5-Bread-Board-Declare/Makefile
+++ b/devel/p5-Bread-Board-Declare/Makefile
@@ -40,4 +40,10 @@ MAN3= Bread::Board::Declare.3 \
Bread::Board::Declare::Role::Object.3 \
Bread::Board::Declare::Role::Service.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Bread-Board/Makefile b/devel/p5-Bread-Board/Makefile
index b63f406acc84..44fb629709be 100644
--- a/devel/p5-Bread-Board/Makefile
+++ b/devel/p5-Bread-Board/Makefile
@@ -87,4 +87,10 @@ post-patch:
.else
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-CPAN-Checksums/Makefile b/devel/p5-CPAN-Checksums/Makefile
index 9417ae699a17..ea1955524ac8 100644
--- a/devel/p5-CPAN-Checksums/Makefile
+++ b/devel/p5-CPAN-Checksums/Makefile
@@ -23,6 +23,15 @@ TEST_DEPENDS= p5-Compress-Bzip2>=0:${PORTSDIR}/archivers/p5-Compress-Bzip2
PERL_CONFIGURE= YES
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Compress/Bzip2.pm:${PORTSDIR}/archivers/p5-IO-Compress \
+ ${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Compress/Bzip2.pm:${PORTSDIR}/archivers/p5-IO-Compress \
+ ${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
MAN3= CPAN::Checksums.3
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-CPAN-Meta/Makefile b/devel/p5-CPAN-Meta/Makefile
index cf9b5b21af59..289ffad4b059 100644
--- a/devel/p5-CPAN-Meta/Makefile
+++ b/devel/p5-CPAN-Meta/Makefile
@@ -27,6 +27,15 @@ MAN3= CPAN::Meta.3 \
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-version>=0.82:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0.82:${PORTSDIR}/devel/p5-version
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-CPAN-Meta-YAML>=0.002:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
p5-JSON-PP>=2.27103:${PORTSDIR}/converters/p5-JSON-PP \
diff --git a/devel/p5-CPAN-Mini/Makefile b/devel/p5-CPAN-Mini/Makefile
index e24fd7264e1a..55c015b051f3 100644
--- a/devel/p5-CPAN-Mini/Makefile
+++ b/devel/p5-CPAN-Mini/Makefile
@@ -26,4 +26,10 @@ PERL_CONFIGURE= yes
MAN1= minicpan.1
MAN3= CPAN::Mini.3 CPAN::Mini::App.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-CPAN-YACSmoke/Makefile b/devel/p5-CPAN-YACSmoke/Makefile
index 7fb5452c7a9e..e67a8f2a3717 100644
--- a/devel/p5-CPAN-YACSmoke/Makefile
+++ b/devel/p5-CPAN-YACSmoke/Makefile
@@ -30,4 +30,15 @@ MAN3= CPAN::YACSmoke.3 \
CPAN::YACSmoke::Plugin::SmokeDB.3 \
CPAN::YACSmoke::Plugin::Recent.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500806
+RUN_DEPENDS+= p5-PathTools>=0.88:${PORTSDIR}/devel/p5-PathTools
+.endif
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-CPANPLUS>=0:${PORTSDIR}/devel/p5-CPANPLUS \
+ p5-Module-Pluggable>=2.5:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-CPANPLUS-Dist-Build/Makefile b/devel/p5-CPANPLUS-Dist-Build/Makefile
index 6771262a04ba..c07f8a2b8be5 100644
--- a/devel/p5-CPANPLUS-Dist-Build/Makefile
+++ b/devel/p5-CPANPLUS-Dist-Build/Makefile
@@ -21,4 +21,30 @@ PERL_CONFIGURE= yes
MAN3= CPANPLUS::Dist::Build.3 CPANPLUS::Dist::Build::Constants.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-CPANPLUS>=0.84:${PORTSDIR}/devel/p5-CPANPLUS \
+ p5-ExtUtils-Install>=1.42:${PORTSDIR}/devel/p5-ExtUtils-Install \
+ p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Params-Check>=0.26:${PORTSDIR}/devel/p5-Params-Check
+RUN_DEPENDS+= p5-CPANPLUS>=0.84:${PORTSDIR}/devel/p5-CPANPLUS \
+ p5-ExtUtils-Install>=1.42:${PORTSDIR}/devel/p5-ExtUtils-Install \
+ p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Params-Check>=0.26:${PORTSDIR}/devel/p5-Params-Check
+.endif
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-IPC-Cmd>=0.42:${PORTSDIR}/devel/p5-IPC-Cmd \
+ p5-Module-Build>=0.3200:${PORTSDIR}/devel/p5-Module-Build \
+ p5-Module-Load>=0.16:${PORTSDIR}/devel/p5-Module-Load \
+ p5-Module-Load-Conditional>=0.30:${PORTSDIR}/devel/p5-Module-Load-Conditional \
+ p5-Module-Pluggable>=3.8:${PORTSDIR}/devel/p5-Module-Pluggable
+RUN_DEPENDS+= p5-IPC-Cmd>=0.42:${PORTSDIR}/devel/p5-IPC-Cmd \
+ p5-Module-Build>=0.3200:${PORTSDIR}/devel/p5-Module-Build \
+ p5-Module-Load>=0.16:${PORTSDIR}/devel/p5-Module-Load \
+ p5-Module-Load-Conditional>=0.30:${PORTSDIR}/devel/p5-Module-Load-Conditional \
+ p5-Module-Pluggable>=3.8:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-CPANPLUS/Makefile b/devel/p5-CPANPLUS/Makefile
index 665283fc8868..ec12615f109f 100644
--- a/devel/p5-CPANPLUS/Makefile
+++ b/devel/p5-CPANPLUS/Makefile
@@ -60,6 +60,38 @@ MAN3= CPANPLUS.3 \
CPANPLUS::Shell::Default::Plugins::Source.3 \
CPANPLUS::inc.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500904
+RUN_DEPENDS+= p5-Module-Load>=0.10:${PORTSDIR}/devel/p5-Module-Load \
+ p5-Module-Loaded>=0.01:${PORTSDIR}/devel/p5-Module-Loaded \
+ p5-Package-Constants>=0.01:${PORTSDIR}/devel/p5-Package-Constants
+.endif
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Archive-Extract>=0.16:${PORTSDIR}/archivers/p5-Archive-Extract \
+ p5-IPC-Cmd>=0.36:${PORTSDIR}/devel/p5-IPC-Cmd \
+ p5-Locale-Maketext-Simple>=0.01:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Log-Message>=0.01:${PORTSDIR}/devel/p5-Log-Message \
+ p5-Object-Accessor>=0.32:${PORTSDIR}/devel/p5-Object-Accessor \
+ p5-Params-Check>=0.22:${PORTSDIR}/devel/p5-Params-Check
+.endif
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-File-Fetch>=0.13_04:${PORTSDIR}/ftp/p5-File-Fetch \
+ p5-Module-Load-Conditional>=0.18:${PORTSDIR}/devel/p5-Module-Load-Conditional \
+ p5-Term-UI>=0.18:${PORTSDIR}/devel/p5-Term-UI
+PLIST_SUB+= EXE_FILES=""
+MAN1= cpanp.1 cpan2dist.1
+.else
+PLIST_SUB+= EXE_FILES="@comment "
+.endif
+
+post-patch:
+.if ${PERL_LEVEL} >= 501000
+ @${REINPLACE_CMD} -e 's/5.009/5.666/; /install_script/d' ${WRKSRC}/Makefile.PL
+.endif
+
.if defined(WITH_TEST_REPORTER)
RUN_DEPENDS+= ${SITE_PERL}/Test/Reporter.pm:${PORTSDIR}/devel/p5-Test-Reporter
.endif
@@ -68,7 +100,4 @@ RUN_DEPENDS+= ${SITE_PERL}/Test/Reporter.pm:${PORTSDIR}/devel/p5-Test-Reporter
RUN_DEPENDS+= ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML
.endif
-post-patch:
- @${REINPLACE_CMD} -e 's/5.009/5.666/; /install_script/d' ${WRKSRC}/Makefile.PL
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-CPANPLUS/pkg-plist b/devel/p5-CPANPLUS/pkg-plist
index be65edb29853..ecb43a035bd9 100644
--- a/devel/p5-CPANPLUS/pkg-plist
+++ b/devel/p5-CPANPLUS/pkg-plist
@@ -1,3 +1,6 @@
+%%EXE_FILES%%bin/cpan2dist
+%%EXE_FILES%%bin/cpanp
+%%EXE_FILES%%bin/cpanp-run-perl
%%SITE_PERL%%/CPANPLUS.pm
%%SITE_PERL%%/CPANPLUS/Backend.pm
%%SITE_PERL%%/CPANPLUS/Backend/RV.pm
diff --git a/devel/p5-Cache-AgainstFile/Makefile b/devel/p5-Cache-AgainstFile/Makefile
index 0bb965d1ce7a..7243780f0618 100644
--- a/devel/p5-Cache-AgainstFile/Makefile
+++ b/devel/p5-Cache-AgainstFile/Makefile
@@ -28,4 +28,7 @@ MAN3= Cache::AgainstFile::Memory.3 \
Cache::AgainstFile::Base.3 \
Cache::AgainstFile::CacheModule.3
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-Carp-Always-Color/Makefile b/devel/p5-Carp-Always-Color/Makefile
index c44589ed5e1f..6beefbe037ce 100644
--- a/devel/p5-Carp-Always-Color/Makefile
+++ b/devel/p5-Carp-Always-Color/Makefile
@@ -25,4 +25,14 @@ MAN3= Carp::Always::Color.3 \
Carp::Always::Color::HTML.3 \
Carp::Always::Color::Term.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500808
+BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.30:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Class-Accessor-Complex/Makefile b/devel/p5-Class-Accessor-Complex/Makefile
index 5bbc6ed9e695..99cae3e56126 100644
--- a/devel/p5-Class-Accessor-Complex/Makefile
+++ b/devel/p5-Class-Accessor-Complex/Makefile
@@ -26,4 +26,10 @@ USE_PERL5_RUN= 5.8.1+
MAN3= Class::Accessor::Complex.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Class-Accessor-Grouped/Makefile b/devel/p5-Class-Accessor-Grouped/Makefile
index 67639d96e358..cc2712db5883 100644
--- a/devel/p5-Class-Accessor-Grouped/Makefile
+++ b/devel/p5-Class-Accessor-Grouped/Makefile
@@ -30,4 +30,10 @@ PERL_CONFIGURE= yes
MAN3= Class::Accessor::Grouped.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Class-Load-XS/Makefile b/devel/p5-Class-Load-XS/Makefile
index a5e47f55264e..e6d5afbc2c7a 100644
--- a/devel/p5-Class-Load-XS/Makefile
+++ b/devel/p5-Class-Load-XS/Makefile
@@ -26,4 +26,10 @@ PERL_MODBUILD= yes
MAN3= Class::Load::XS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Class-Tom/Makefile b/devel/p5-Class-Tom/Makefile
index 7e2a157ff38c..6eb4ffc39406 100644
--- a/devel/p5-Class-Tom/Makefile
+++ b/devel/p5-Class-Tom/Makefile
@@ -23,4 +23,11 @@ PERL_CONFIGURE= yes
MAN3= Class::Tom.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+BUILD_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Config-AutoConf/Makefile b/devel/p5-Config-AutoConf/Makefile
index f3872b859c20..1f9cb1b82323 100644
--- a/devel/p5-Config-AutoConf/Makefile
+++ b/devel/p5-Config-AutoConf/Makefile
@@ -24,4 +24,11 @@ PERL_CONFIGURE= yes
MAN3= Config::AutoConf.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0.23:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+RUN_DEPENDS+= p5-ExtUtils-CBuilder>=0.23:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Config-JSON/Makefile b/devel/p5-Config-JSON/Makefile
index e880ef5b1099..a100746f1b8a 100644
--- a/devel/p5-Config-JSON/Makefile
+++ b/devel/p5-Config-JSON/Makefile
@@ -25,4 +25,10 @@ TEST_DEPENDS= p5-Test-Deep>=0:${PORTSDIR}/devel/p5-Test-Deep
PERL_CONFIGURE= Yes
MAN3= Config::JSON.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-version>=0.72.03:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Config-Std/Makefile b/devel/p5-Config-Std/Makefile
index da86e4d1dcb2..605979a3231c 100644
--- a/devel/p5-Config-Std/Makefile
+++ b/devel/p5-Config-Std/Makefile
@@ -22,4 +22,10 @@ PERL_CONFIGURE= YES
MAN3= Config::Std.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500900
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Const-Fast/Makefile b/devel/p5-Const-Fast/Makefile
index 1c0352427b33..126bd8b30934 100644
--- a/devel/p5-Const-Fast/Makefile
+++ b/devel/p5-Const-Fast/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN3= Const::Fast.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Clone/Makefile b/devel/p5-Data-Clone/Makefile
index 664754e20cb2..d1ad68ce7974 100644
--- a/devel/p5-Data-Clone/Makefile
+++ b/devel/p5-Data-Clone/Makefile
@@ -20,4 +20,17 @@ PERL_CONFIGURE= yes
MAN3= Data::Clone.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
+RUN_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+RUN_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Dump-Streamer/Makefile b/devel/p5-Data-Dump-Streamer/Makefile
index 61551b5a58cb..ebf25ff1ebbb 100644
--- a/devel/p5-Data-Dump-Streamer/Makefile
+++ b/devel/p5-Data-Dump-Streamer/Makefile
@@ -25,4 +25,10 @@ PERL_MODBUILD= yes
MAN3= Data::Dump::Streamer.3 DDS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Dumper-Simple/Makefile b/devel/p5-Data-Dumper-Simple/Makefile
index f0b5003728e1..bb0b8c2936ec 100644
--- a/devel/p5-Data-Dumper-Simple/Makefile
+++ b/devel/p5-Data-Dumper-Simple/Makefile
@@ -18,4 +18,11 @@ PERL_MODBUILD= yes
MAN3= Data::Dumper::Simple.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500805
+BUILD_DEPENDS+= ${SITE_PERL}/Filter/Simple.pm:${PORTSDIR}/textproc/p5-Filter-Simple
+RUN_DEPENDS+= ${BUILD_DEPENDS}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Printer/Makefile b/devel/p5-Data-Printer/Makefile
index 00e4e0502836..ba9cdff50d21 100644
--- a/devel/p5-Data-Printer/Makefile
+++ b/devel/p5-Data-Printer/Makefile
@@ -40,6 +40,10 @@ MAN3= Data::Printer.3 \
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-Term-ANSIColor>=3:${PORTSDIR}/devel/p5-Term-ANSIColor
RUN_DEPENDS+= p5-Term-ANSIColor>=3:${PORTSDIR}/devel/p5-Term-ANSIColor
diff --git a/devel/p5-Data-Random/Makefile b/devel/p5-Data-Random/Makefile
index 12bda90399fa..85f75452faad 100644
--- a/devel/p5-Data-Random/Makefile
+++ b/devel/p5-Data-Random/Makefile
@@ -33,4 +33,10 @@ BUILD_DEPENDS+= p5-GD>=0:${PORTSDIR}/graphics/p5-GD
RUN_DEPENDS+= p5-GD>=0:${PORTSDIR}/graphics/p5-GD
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Section-Simple/Makefile b/devel/p5-Data-Section-Simple/Makefile
index 91f648b5d30a..32a4e649cb62 100644
--- a/devel/p5-Data-Section-Simple/Makefile
+++ b/devel/p5-Data-Section-Simple/Makefile
@@ -18,4 +18,10 @@ PERL_CONFIGURE= yes
MAN3= Data::Section::Simple.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Serializer/Makefile b/devel/p5-Data-Serializer/Makefile
index 583ba2128073..8664b144829f 100644
--- a/devel/p5-Data-Serializer/Makefile
+++ b/devel/p5-Data-Serializer/Makefile
@@ -38,4 +38,10 @@ MAN3= Data::Serializer.3 Data::Serializer::Bencode.3 \
Data::Serializer::XML::Simple.3 Data::Serializer::YAML.3 \
Data::Serializer::YAML::Syck.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Stream-Bulk/Makefile b/devel/p5-Data-Stream-Bulk/Makefile
index 5768d7dce145..2e846406d208 100644
--- a/devel/p5-Data-Stream-Bulk/Makefile
+++ b/devel/p5-Data-Stream-Bulk/Makefile
@@ -41,4 +41,10 @@ MAN3= Data::Stream::Bulk.3 \
Data::Stream::Bulk::Path::Class.3 \
Data::Stream::Bulk::Util.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Throttler-Memcached/Makefile b/devel/p5-Data-Throttler-Memcached/Makefile
index f09d0f57f17f..fb9bb4b86aa6 100644
--- a/devel/p5-Data-Throttler-Memcached/Makefile
+++ b/devel/p5-Data-Throttler-Memcached/Makefile
@@ -27,4 +27,11 @@ PERL_CONFIGURE= yes
MAN3= Data::Throttler::Memcached.3 \
Data::Throttler::BucketChain::Memcached.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+BUILD_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Validator/Makefile b/devel/p5-Data-Validator/Makefile
index 91af6bcf2556..16c2de97cd32 100644
--- a/devel/p5-Data-Validator/Makefile
+++ b/devel/p5-Data-Validator/Makefile
@@ -31,4 +31,10 @@ MAN3= Data::Validator.3 \
Data::Validator::Role::Sequenced.3 \
Data::Validator::Role::StrictSequenced.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Data-Visitor/Makefile b/devel/p5-Data-Visitor/Makefile
index 9966ed9f179a..d89903e926f9 100644
--- a/devel/p5-Data-Visitor/Makefile
+++ b/devel/p5-Data-Visitor/Makefile
@@ -29,4 +29,10 @@ PERL_CONFIGURE= yes
MAN3= Data::Visitor.3 \
Data::Visitor::Callback.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-DateTime-Astro/Makefile b/devel/p5-DateTime-Astro/Makefile
index e33294ac41c0..d37afb247a12 100644
--- a/devel/p5-DateTime-Astro/Makefile
+++ b/devel/p5-DateTime-Astro/Makefile
@@ -31,7 +31,17 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
MAN3= DateTime::Astro.3 \
DateTime::Event::SolarTerm.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
post-configure:
@${REINPLACE_CMD} -e '/^INC = / s|$$| -I${LOCALBASE}/include|' ${WRKSRC}/Makefile
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-DateTime-TimeZone/Makefile b/devel/p5-DateTime-TimeZone/Makefile
index 0713fe36191e..e7ea512631e0 100644
--- a/devel/p5-DateTime-TimeZone/Makefile
+++ b/devel/p5-DateTime-TimeZone/Makefile
@@ -36,4 +36,14 @@ post-install:
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500806
+RUN_DEPENDS+= p5-PathTools>=3:${PORTSDIR}/devel/p5-PathTools
+.endif
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-parent>=0.223:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-DateTime/Makefile b/devel/p5-DateTime/Makefile
index 64c4d83f62d4..0e83810acff3 100644
--- a/devel/p5-DateTime/Makefile
+++ b/devel/p5-DateTime/Makefile
@@ -39,4 +39,10 @@ post-install:
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Devel-CallChecker/Makefile b/devel/p5-Devel-CallChecker/Makefile
index 3204c72f97ef..d9315179ca6a 100644
--- a/devel/p5-Devel-CallChecker/Makefile
+++ b/devel/p5-Devel-CallChecker/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= Devel::CallChecker.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+TEST_DEPENDS+= p5-ExtUtils-CBuilder>=0.1500:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Devel-CheckOS/Makefile b/devel/p5-Devel-CheckOS/Makefile
index c621a969ee29..5aa4c7a640a7 100644
--- a/devel/p5-Devel-CheckOS/Makefile
+++ b/devel/p5-Devel-CheckOS/Makefile
@@ -83,4 +83,11 @@ MAN3= Devel::AssertOS.3 \
Devel::CheckOS.3 \
Devel::CheckOS::Families.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} == 501000
+BUILD_DEPENDS+= p5-File-Temp>=0.19:${PORTSDIR}/devel/p5-File-Temp
+RUN_DEPENDS+= p5-File-Temp>=0.19:${PORTSDIR}/devel/p5-File-Temp
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Devel-Declare/Makefile b/devel/p5-Devel-Declare/Makefile
index f34ed65aae6b..cd53e384946e 100644
--- a/devel/p5-Devel-Declare/Makefile
+++ b/devel/p5-Devel-Declare/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN3= Devel::Declare.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Digest-TransformPath/Makefile b/devel/p5-Digest-TransformPath/Makefile
index 6f1bbc3cba6e..57116a27e038 100644
--- a/devel/p5-Digest-TransformPath/Makefile
+++ b/devel/p5-Digest-TransformPath/Makefile
@@ -19,4 +19,14 @@ PERL_CONFIGURE= yes
MAN3= Digest::TransformPath.3
-.include <bsd.port.mk>
+test: build
+ (@cd ${WRKSRC} && make test)
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500809
+RUN_DEPENDS+= p5-Digest-MD5>=2.36:${PORTSDIR}/security/p5-Digest-MD5
+BUILD_DEPENDS+= p5-Digest-MD5>=2.36:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Dist-CheckConflicts/Makefile b/devel/p5-Dist-CheckConflicts/Makefile
index cc69e73d388d..d9efad5b7192 100644
--- a/devel/p5-Dist-CheckConflicts/Makefile
+++ b/devel/p5-Dist-CheckConflicts/Makefile
@@ -23,8 +23,14 @@ RUN_DEPENDS= p5-List-MoreUtils>=0.12:${PORTSDIR}/lang/p5-List-MoreUtils \
TEST_DEPENDS= p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
PERL_CONFIGURE= YES
MAN3= Dist::CheckConflicts.3
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-DynaLoader-Functions/Makefile b/devel/p5-DynaLoader-Functions/Makefile
index 36a9c4c3a557..44ab16fa28aa 100644
--- a/devel/p5-DynaLoader-Functions/Makefile
+++ b/devel/p5-DynaLoader-Functions/Makefile
@@ -21,4 +21,11 @@ PERL_CONFIGURE= yes
MAN3= DynaLoader::Functions.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Eval-Closure/Makefile b/devel/p5-Eval-Closure/Makefile
index ed93384b8a88..cc01e1c48f34 100644
--- a/devel/p5-Eval-Closure/Makefile
+++ b/devel/p5-Eval-Closure/Makefile
@@ -31,4 +31,10 @@ PERL_CONFIGURE= yes
MAN3= Eval::Closure.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-ExtUtils-CBuilder/Makefile b/devel/p5-ExtUtils-CBuilder/Makefile
index cdd8eb54b301..e18ceb7fe935 100644
--- a/devel/p5-ExtUtils-CBuilder/Makefile
+++ b/devel/p5-ExtUtils-CBuilder/Makefile
@@ -32,6 +32,11 @@ post-install:
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-IPC-Cmd>=0:${PORTSDIR}/devel/p5-IPC-Cmd
+RUN_DEPENDS+= p5-IPC-Cmd>=0:${PORTSDIR}/devel/p5-IPC-Cmd
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-Perl-OSType>=0:${PORTSDIR}/devel/p5-Perl-OSType
RUN_DEPENDS+= p5-Perl-OSType>=0:${PORTSDIR}/devel/p5-Perl-OSType
diff --git a/devel/p5-ExtUtils-MakeMaker/Makefile b/devel/p5-ExtUtils-MakeMaker/Makefile
index df504994569e..4d484b732ac8 100644
--- a/devel/p5-ExtUtils-MakeMaker/Makefile
+++ b/devel/p5-ExtUtils-MakeMaker/Makefile
@@ -32,6 +32,13 @@ MAN3= ExtUtils::Command::MM.3 ExtUtils::Liblist.3 ExtUtils::MM.3 \
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-ExtUtils-Command>=1.16:${PORTSDIR}/devel/p5-ExtUtils-Command \
+ p5-ExtUtils-Install>=1.52:${PORTSDIR}/devel/p5-ExtUtils-Install
+RUN_DEPENDS+= p5-ExtUtils-Command>=1.16:${PORTSDIR}/devel/p5-ExtUtils-Command \
+ p5-ExtUtils-Install>=1.52:${PORTSDIR}/devel/p5-ExtUtils-Install
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-ExtUtils-Manifest>=1.58:${PORTSDIR}/devel/p5-ExtUtils-Manifest \
p5-version>=0.88:${PORTSDIR}/devel/p5-version
diff --git a/devel/p5-ExtUtils-ParseXS/Makefile b/devel/p5-ExtUtils-ParseXS/Makefile
index f0f76b8c6f4d..2c140151d950 100644
--- a/devel/p5-ExtUtils-ParseXS/Makefile
+++ b/devel/p5-ExtUtils-ParseXS/Makefile
@@ -25,7 +25,13 @@ MAN3= ExtUtils::ParseXS.3 \
ExtUtils::Typemaps::OutputMap.3 \
ExtUtils::Typemaps::Type.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-File-Find-Rule-Perl/Makefile b/devel/p5-File-Find-Rule-Perl/Makefile
index a212e2b22845..50cbe36dab51 100644
--- a/devel/p5-File-Find-Rule-Perl/Makefile
+++ b/devel/p5-File-Find-Rule-Perl/Makefile
@@ -25,4 +25,7 @@ PERL_CONFIGURE= yes
MAN3= File::Find::Rule::Perl.3
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-File-HStore/Makefile b/devel/p5-File-HStore/Makefile
index c201384566ee..96ee3c8517d5 100644
--- a/devel/p5-File-HStore/Makefile
+++ b/devel/p5-File-HStore/Makefile
@@ -19,4 +19,11 @@ PERL_CONFIGURE= yes
MAN3= File::HStore.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+BUILD_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-File-HomeDir-PathClass/Makefile b/devel/p5-File-HomeDir-PathClass/Makefile
index 0fc2770db5d9..ed4938dce45c 100644
--- a/devel/p5-File-HomeDir-PathClass/Makefile
+++ b/devel/p5-File-HomeDir-PathClass/Makefile
@@ -22,8 +22,14 @@ RUN_DEPENDS= p5-File-HomeDir>=0.93:${PORTSDIR}/devel/p5-File-HomeDir \
p5-Path-Class>=0:${PORTSDIR}/devel/p5-Path-Class \
p5-Sub-Exporter>=0:${PORTSDIR}/devel/p5-Sub-Exporter
-PERL_MODBUILD= yes
+PERL_MODBUILD= 5.10.0+
MAN3= File::HomeDir::PathClass.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-File-MMagic-XS/Makefile b/devel/p5-File-MMagic-XS/Makefile
index fdc47e9a6a9b..9a894c3ae8cd 100644
--- a/devel/p5-File-MMagic-XS/Makefile
+++ b/devel/p5-File-MMagic-XS/Makefile
@@ -19,4 +19,14 @@ PERL_CONFIGURE= yes
MAN3= File::MMagic::XS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-File-MimeInfo/Makefile b/devel/p5-File-MimeInfo/Makefile
index 5328ed8cd0f3..ae9b0c0886b3 100644
--- a/devel/p5-File-MimeInfo/Makefile
+++ b/devel/p5-File-MimeInfo/Makefile
@@ -29,4 +29,7 @@ MAN3= File::MimeInfo::Applications.3 \
File::MimeInfo::Rox.3 \
File::MimeInfo.3
+regression-test:
+ cd ${WRKSRC} && ${PERL5} ${PL_BUILD} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-File-Pid-Quick/Makefile b/devel/p5-File-Pid-Quick/Makefile
index c5374aaed6bd..0eae3a895ab5 100644
--- a/devel/p5-File-Pid-Quick/Makefile
+++ b/devel/p5-File-Pid-Quick/Makefile
@@ -19,4 +19,7 @@ PERL_CONFIGURE= yes
MAN3= File::Pid::Quick.3
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-FileHandle-Unget/Makefile b/devel/p5-FileHandle-Unget/Makefile
index d966b47f9671..cd0f355a60ed 100644
--- a/devel/p5-FileHandle-Unget/Makefile
+++ b/devel/p5-FileHandle-Unget/Makefile
@@ -18,4 +18,11 @@ PERL_CONFIGURE= yes
MAN3= FileHandle::Unget.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500805
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Getopt-Compact-WithCmd/Makefile b/devel/p5-Getopt-Compact-WithCmd/Makefile
index d14461c998fb..2a5757f98a10 100644
--- a/devel/p5-Getopt-Compact-WithCmd/Makefile
+++ b/devel/p5-Getopt-Compact-WithCmd/Makefile
@@ -26,6 +26,11 @@ MAN3= Getopt::Compact::WithCmd.3
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Getopt-Long>=2.38:${PORTSDIR}/devel/p5-Getopt-Long
+RUN_DEPENDS+= p5-Getopt-Long>=2.38:${PORTSDIR}/devel/p5-Getopt-Long
+.endif
+
.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+= p5-Test-Simple>=0.96:${PORTSDIR}/devel/p5-Test-Simple
.endif
diff --git a/devel/p5-Getopt-Euclid/Makefile b/devel/p5-Getopt-Euclid/Makefile
index c0cf3b5232ed..f7b78e451edf 100644
--- a/devel/p5-Getopt-Euclid/Makefile
+++ b/devel/p5-Getopt-Euclid/Makefile
@@ -20,4 +20,11 @@ PERL_MODBUILD= yes
MAN3= Getopt::Euclid.3 Getopt::Euclid::HierDemo.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500900
+BUILD_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Git-PurePerl/Makefile b/devel/p5-Git-PurePerl/Makefile
index 823f16f1fd59..81dbeeb15883 100644
--- a/devel/p5-Git-PurePerl/Makefile
+++ b/devel/p5-Git-PurePerl/Makefile
@@ -31,4 +31,11 @@ PERL_CONFIGURE= yes
MAN3= Git::PurePerl.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Hash-FieldHash/Makefile b/devel/p5-Hash-FieldHash/Makefile
index e6da03d3836b..bb1499ae47c3 100644
--- a/devel/p5-Hash-FieldHash/Makefile
+++ b/devel/p5-Hash-FieldHash/Makefile
@@ -20,4 +20,21 @@ PERL_CONFIGURE= yes
MAN3= Hash::FieldHash.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-MRO-Compat>=0.10:${PORTSDIR}/devel/p5-MRO-Compat
+RUN_DEPENDS+= p5-MRO-Compat>=0.10:${PORTSDIR}/devel/p5-MRO-Compat
+.endif
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort \
+ p5-parent>=0.221:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0.221:${PORTSDIR}/devel/p5-parent
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-IO-Prompt/Makefile b/devel/p5-IO-Prompt/Makefile
index 8327af3bb0c2..1dfcb3dc42bb 100644
--- a/devel/p5-IO-Prompt/Makefile
+++ b/devel/p5-IO-Prompt/Makefile
@@ -24,4 +24,7 @@ PERL_CONFIGURE= yes
MAN3= IO::Prompt.3
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-IO-Toolkit/Makefile b/devel/p5-IO-Toolkit/Makefile
index c818099b930b..76d8d4ce0106 100644
--- a/devel/p5-IO-Toolkit/Makefile
+++ b/devel/p5-IO-Toolkit/Makefile
@@ -23,4 +23,11 @@ PERL_CONFIGURE= yes
MAN3= IO::Toolkit.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+BUILD_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-IPC-Cmd/Makefile b/devel/p5-IPC-Cmd/Makefile
index 11c7f72db7f9..bb79e99a87a4 100644
--- a/devel/p5-IPC-Cmd/Makefile
+++ b/devel/p5-IPC-Cmd/Makefile
@@ -15,11 +15,20 @@ PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= Finding and running system commands made easy
-BUILD_DEPENDS= p5-IPC-Run>=0.55:${PORTSDIR}/devel/p5-IPC-Run
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+COMMON_DEPENDS= p5-IPC-Run>=0.55:${PORTSDIR}/devel/p5-IPC-Run
+BUILD_DEPENDS= ${COMMON_DEPENDS}
+RUN_DEPENDS= ${COMMON_DEPENDS}
PERL_CONFIGURE= yes
MAN3= IPC::Cmd.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Module-Load-Conditional>=0:${PORTSDIR}/devel/p5-Module-Load-Conditional \
+ p5-Params-Check>=0.20:${PORTSDIR}/devel/p5-Params-Check
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-JSON-RPC/Makefile b/devel/p5-JSON-RPC/Makefile
index 4eaab338527b..f906a9ec906a 100644
--- a/devel/p5-JSON-RPC/Makefile
+++ b/devel/p5-JSON-RPC/Makefile
@@ -41,6 +41,11 @@ MAN3= JSON::RPC.3 \
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+= p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
.endif
diff --git a/devel/p5-Lexical-Var/Makefile b/devel/p5-Lexical-Var/Makefile
index 832d971c02c0..aa8073c7e7c9 100644
--- a/devel/p5-Lexical-Var/Makefile
+++ b/devel/p5-Lexical-Var/Makefile
@@ -18,7 +18,20 @@ PERL_CONFIGURE= yes
MAN3= Lexical::Sub.3 Lexical::Var.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0.1500:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Lexical-SealRequireHints>=0.006:${PORTSDIR}/devel/p5-Lexical-SealRequireHints
+RUN_DEPENDS+= p5-Lexical-SealRequireHints>=0.006:${PORTSDIR}/devel/p5-Lexical-SealRequireHints
+.endif
+
post-patch:
+.if ${PERL_LEVEL} >= 501200
@${REINPLACE_CMD} -e '/Lexical::SealRequireHints/d' ${WRKSRC}/Build.PL ${WRKSRC}/lib/Lexical/Var.pm
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-List-AllUtils/Makefile b/devel/p5-List-AllUtils/Makefile
index 2cc4f3b53c24..7c0fedf24bd9 100644
--- a/devel/p5-List-AllUtils/Makefile
+++ b/devel/p5-List-AllUtils/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MAN3= List::AllUtils.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-List-Rotation-Cycle/Makefile b/devel/p5-List-Rotation-Cycle/Makefile
index 942fa95073a2..1f9f15ccc5f2 100644
--- a/devel/p5-List-Rotation-Cycle/Makefile
+++ b/devel/p5-List-Rotation-Cycle/Makefile
@@ -20,4 +20,11 @@ MAN3= List::Rotation::Cycle.3
PERL_CONFIGURE= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+BUILD_DEPENDS+= p5-Memoize>=0:${PORTSDIR}/devel/p5-Memoize
+RUN_DEPENDS+= p5-Memoize>=0:${PORTSDIR}/devel/p5-Memoize
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Log-Dispatch-Dir/Makefile b/devel/p5-Log-Dispatch-Dir/Makefile
index 6ade5976d380..5e4c9f63335a 100644
--- a/devel/p5-Log-Dispatch-Dir/Makefile
+++ b/devel/p5-Log-Dispatch-Dir/Makefile
@@ -25,7 +25,7 @@ RUN_DEPENDS= p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp \
p5-Probe-Perl>=0:${PORTSDIR}/sysutils/p5-Probe-Perl \
p5-Taint-Util>=0:${PORTSDIR}/devel/p5-Taint-Util
-PERL_MODBUILD= yes
+PERL_MODBUILD= 5.10.0+
MAN3= Log::Dispatch::Dir.3
diff --git a/devel/p5-Log-Log4perl/Makefile b/devel/p5-Log-Log4perl/Makefile
index 1053a2a8c021..7e054d302c98 100644
--- a/devel/p5-Log-Log4perl/Makefile
+++ b/devel/p5-Log-Log4perl/Makefile
@@ -71,4 +71,7 @@ MAN3= Log::Log4perl.3 \
Log::Log4perl::Util::Semaphore.3 \
Log::Log4perl::Util::TimeTracker.3
+regression-test: build
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-MetaCPAN-API/Makefile b/devel/p5-MetaCPAN-API/Makefile
index 767831f00e63..dcac3e283868 100644
--- a/devel/p5-MetaCPAN-API/Makefile
+++ b/devel/p5-MetaCPAN-API/Makefile
@@ -33,4 +33,9 @@ MAN3= MetaCPAN::API.3 MetaCPAN::API::Author.3 \
MetaCPAN::API::Release.3 \
MetaCPAN::API::Source.3
+.if defined(MAINTAINER_MODE)
+regression-test: build
+ cd ${WRKSRC} && ${PERL5} ${PL_BUILD} test
+.endif
+
.include <bsd.port.mk>
diff --git a/devel/p5-Mixin-Linewise/Makefile b/devel/p5-Mixin-Linewise/Makefile
index e4c5178b4a3c..90472471f922 100644
--- a/devel/p5-Mixin-Linewise/Makefile
+++ b/devel/p5-Mixin-Linewise/Makefile
@@ -19,17 +19,22 @@ COMMENT= Write your linewise code for handles; this does the rest
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
+.include <bsd.port.pre.mk>
+
BUILD_DEPENDS+= p5-Sub-Exporter>=0.900:${PORTSDIR}/devel/p5-Sub-Exporter \
p5-IO-String>=0:${PORTSDIR}/devel/p5-IO-String
RUN_DEPENDS+= p5-Sub-Exporter>=0.900:${PORTSDIR}/devel/p5-Sub-Exporter \
p5-IO-String>=0:${PORTSDIR}/devel/p5-IO-String
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
PERL_CONFIGURE= yes
MAN3= Mixin::Linewise::Readers.3 \
Mixin::Linewise::Writers.3 \
Mixin::Linewise.3
-
PLIST_FILES+= %%SITE_PERL%%/Mixin/Linewise/Readers.pm \
%%SITE_PERL%%/Mixin/Linewise/Writers.pm \
%%SITE_PERL%%/Mixin/Linewise.pm \
@@ -39,4 +44,4 @@ PLIST_DIRS+= %%SITE_PERL%%/Mixin/Linewise \
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Mixin/Linewise \
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Mixin
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-Build/Makefile b/devel/p5-Module-Build/Makefile
index 5a70d178accd..850b4a37b5a9 100644
--- a/devel/p5-Module-Build/Makefile
+++ b/devel/p5-Module-Build/Makefile
@@ -54,6 +54,24 @@ PORTDOCS= Changes INSTALL README
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Test-Harness>=3.16:${PORTSDIR}/devel/p5-Test-Harness
+MAN1= config_data.1
+PLIST_FILES= bin/config_data
+.endif
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-ExtUtils-Install>=1.54:${PORTSDIR}/devel/p5-ExtUtils-Install
+RUN_DEPENDS+= p5-ExtUtils-Install>=1.54:${PORTSDIR}/devel/p5-ExtUtils-Install
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0.27:${PORTSDIR}/devel/p5-ExtUtils-CBuilder \
+ p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+RUN_DEPENDS+= p5-ExtUtils-CBuilder>=0.27:${PORTSDIR}/devel/p5-ExtUtils-CBuilder \
+ p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-CPAN-Meta>=2.110420:${PORTSDIR}/devel/p5-CPAN-Meta \
p5-CPAN-Meta-YAML>=0.003:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
@@ -70,9 +88,11 @@ RUN_DEPENDS+= p5-CPAN-Meta>=2.110420:${PORTSDIR}/devel/p5-CPAN-Meta \
.endif
post-patch:
+.if ${PERL_LEVEL} >= 501000
@${RM} -f ${WRKSRC}/bin/config_data
@${REINPLACE_CMD} -e '/script_files/d' ${WRKSRC}/Build.PL
@${REINPLACE_CMD} -e '/^bin\/config_data/d' ${WRKSRC}/MANIFEST
+.endif
post-install:
.if !defined(NOPORTDOCS)
diff --git a/devel/p5-Module-CPANTS-Analyse/Makefile b/devel/p5-Module-CPANTS-Analyse/Makefile
index f5c888670fde..0690e60039bc 100644
--- a/devel/p5-Module-CPANTS-Analyse/Makefile
+++ b/devel/p5-Module-CPANTS-Analyse/Makefile
@@ -56,4 +56,15 @@ MAN3= Module::CPANTS::Analyse.3 \
Module::CPANTS::Kwalitee::Uses.3 \
Module::CPANTS::Kwalitee::Version.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-Pod-Simple>=0:${PORTSDIR}/textproc/p5-Pod-Simple \
+ p5-Archive-Tar>=1.30:${PORTSDIR}/archivers/p5-Archive-Tar
+.endif
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Module-Pluggable>=2.96:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-CoreList/Makefile b/devel/p5-Module-CoreList/Makefile
index 41857380baa6..821bc5672238 100644
--- a/devel/p5-Module-CoreList/Makefile
+++ b/devel/p5-Module-CoreList/Makefile
@@ -21,4 +21,7 @@ MAN3= Module::CoreList.3
post-patch:
@${REINPLACE_CMD} -e '/corelist/d' ${WRKSRC}/Makefile.PL
+regression-test: build
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-Module-Depends/Makefile b/devel/p5-Module-Depends/Makefile
index 36ff9f90c8c0..48c7204dbcd0 100644
--- a/devel/p5-Module-Depends/Makefile
+++ b/devel/p5-Module-Depends/Makefile
@@ -22,4 +22,10 @@ PERL_MODBUILD= yes
MAN3= Module::Depends::Intrusive.3 Module::Depends.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-Parse-CPAN-Meta>=0:${PORTSDIR}/devel/p5-Parse-CPAN-Meta
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-Implementation/Makefile b/devel/p5-Module-Implementation/Makefile
index 2eba8fd6ee5b..95b04a3145a7 100644
--- a/devel/p5-Module-Implementation/Makefile
+++ b/devel/p5-Module-Implementation/Makefile
@@ -28,4 +28,10 @@ PERL_CONFIGURE= yes
MAN3= Module::Implementation.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-Install-XSUtil/Makefile b/devel/p5-Module-Install-XSUtil/Makefile
index f5d6b88bc39c..d8f1971e6451 100644
--- a/devel/p5-Module-Install-XSUtil/Makefile
+++ b/devel/p5-Module-Install-XSUtil/Makefile
@@ -23,4 +23,16 @@ PERL_CONFIGURE= yes
MAN3= Module::Install::XSUtil.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort \
+ p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple \
+ p5-XSLoader>=0.10:${PORTSDIR}/devel/p5-XSLoader
+.endif
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-Install/Makefile b/devel/p5-Module-Install/Makefile
index c4912b49fa28..dd60f058d5ae 100644
--- a/devel/p5-Module-Install/Makefile
+++ b/devel/p5-Module-Install/Makefile
@@ -46,4 +46,22 @@ MAN3= inc::Module::Install.3 \
Module::Install::Share.3 \
Module::Install::With.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} == 501000
+BUILD_DEPENDS+= p5-Module-CoreList>=2.17:${PORTSDIR}/devel/p5-Module-CoreList
+RUN_DEPENDS+= p5-Module-CoreList>=2.17:${PORTSDIR}/devel/p5-Module-CoreList
+.endif
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Archive-Tar>=1.44:${PORTSDIR}/archivers/p5-Archive-Tar \
+ p5-Devel-PPPort>=3.16:${PORTSDIR}/devel/p5-Devel-PPPort \
+ p5-Module-Build>=0.29:${PORTSDIR}/devel/p5-Module-Build \
+ p5-Parse-CPAN-Meta>=1.39:${PORTSDIR}/devel/p5-Parse-CPAN-Meta
+RUN_DEPENDS+= p5-Archive-Tar>=1.44:${PORTSDIR}/archivers/p5-Archive-Tar \
+ p5-Devel-PPPort>=3.16:${PORTSDIR}/devel/p5-Devel-PPPort \
+ p5-Module-Build>=0.29:${PORTSDIR}/devel/p5-Module-Build \
+ p5-Parse-CPAN-Meta>=1.39:${PORTSDIR}/devel/p5-Parse-CPAN-Meta
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-Load-Conditional/Makefile b/devel/p5-Module-Load-Conditional/Makefile
index 0ea64878fd8d..84ad356fba90 100644
--- a/devel/p5-Module-Load-Conditional/Makefile
+++ b/devel/p5-Module-Load-Conditional/Makefile
@@ -33,4 +33,16 @@ post-install:
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Module-Load>=0.11:${PORTSDIR}/devel/p5-Module-Load
+.endif
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Params-Check>=0:${PORTSDIR}/devel/p5-Params-Check \
+ p5-version>=0.69:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-Pluggable-Ordered/Makefile b/devel/p5-Module-Pluggable-Ordered/Makefile
index c103f3907508..8a7d6bb37a4d 100644
--- a/devel/p5-Module-Pluggable-Ordered/Makefile
+++ b/devel/p5-Module-Pluggable-Ordered/Makefile
@@ -22,4 +22,10 @@ PERL_CONFIGURE= yes
MAN3= Module::Pluggable::Ordered.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Module-Pluggable>=1.9:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-Pluggable/Makefile b/devel/p5-Module-Pluggable/Makefile
index 08dfbf8134ee..7d906d700b08 100644
--- a/devel/p5-Module-Pluggable/Makefile
+++ b/devel/p5-Module-Pluggable/Makefile
@@ -20,7 +20,13 @@ MAN3= Devel::InnerPackage.3 \
Module::Pluggable.3 \
Module::Pluggable::Object.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500806
+RUN_DEPENDS+= p5-PathTools>=3.0:${PORTSDIR}/devel/p5-PathTools
+.endif
+
post-patch:
@${PERL} -pi -e '$$_="" if /INST_LIB/' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Module-ScanDeps/Makefile b/devel/p5-Module-ScanDeps/Makefile
index 1be991c74a09..3f85ff9468fc 100644
--- a/devel/p5-Module-ScanDeps/Makefile
+++ b/devel/p5-Module-ScanDeps/Makefile
@@ -25,4 +25,17 @@ post-patch:
's|/usr/bin/perl|${PERL}|' ${WRKSRC}/script/scandeps.pl \
${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500904
+RUN_DEPENDS+= p5-Module-Build>=0:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.if ${PERL_LEVEL} < 500900
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Moose/Makefile b/devel/p5-Moose/Makefile
index d79213967fdc..83448a683341 100644
--- a/devel/p5-Moose/Makefile
+++ b/devel/p5-Moose/Makefile
@@ -194,4 +194,10 @@ post-extract:
post-install:
@${CAT} ${PKGDIR}/pkg-message
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MooseX-Attribute-Chained/Makefile b/devel/p5-MooseX-Attribute-Chained/Makefile
index dc1649598a56..0b4eb05021ca 100644
--- a/devel/p5-MooseX-Attribute-Chained/Makefile
+++ b/devel/p5-MooseX-Attribute-Chained/Makefile
@@ -28,4 +28,10 @@ MAN3= Moose::Meta::Attribute::Custom::Trait::Chained.3 \
MooseX::ChainedAccessors::Accessor.3 \
MooseX::Traits::Attribute::Chained.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MooseX-Getopt/Makefile b/devel/p5-MooseX-Getopt/Makefile
index 107aa9c31a14..246261340b5f 100644
--- a/devel/p5-MooseX-Getopt/Makefile
+++ b/devel/p5-MooseX-Getopt/Makefile
@@ -42,4 +42,10 @@ MAN3= MooseX::Getopt.3 \
MooseX::Getopt::ProcessedArgv.3 \
MooseX::Getopt::Strict.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MooseX-Log-Log4perl/Makefile b/devel/p5-MooseX-Log-Log4perl/Makefile
index ae193641f42b..8528b789ac12 100644
--- a/devel/p5-MooseX-Log-Log4perl/Makefile
+++ b/devel/p5-MooseX-Log-Log4perl/Makefile
@@ -29,4 +29,7 @@ MAN3= MooseX::Log::Log4perl.3 \
post-patch:
@${PERL} -pi -e '$$_="" if m/auto_install/' ${WRKSRC}/Makefile.PL
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-MooseX-MarkAsMethods/Makefile b/devel/p5-MooseX-MarkAsMethods/Makefile
index 1234f2dc10f3..6a8ec485e745 100644
--- a/devel/p5-MooseX-MarkAsMethods/Makefile
+++ b/devel/p5-MooseX-MarkAsMethods/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= yes
MAN3= MooseX::MarkAsMethods.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.92:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MooseX-MethodAttributes/Makefile b/devel/p5-MooseX-MethodAttributes/Makefile
index cec36e7e4839..b66af12c85da 100644
--- a/devel/p5-MooseX-MethodAttributes/Makefile
+++ b/devel/p5-MooseX-MethodAttributes/Makefile
@@ -42,4 +42,10 @@ MAN3= MooseX::MethodAttributes.3 \
MooseX::MethodAttributes::Role::Meta::Role::Application.3 \
MooseX::MethodAttributes::Role::Meta::Role::Application::Summation.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MooseX-POE/Makefile b/devel/p5-MooseX-POE/Makefile
index 33275ace5ee3..7830fb32b658 100644
--- a/devel/p5-MooseX-POE/Makefile
+++ b/devel/p5-MooseX-POE/Makefile
@@ -44,4 +44,10 @@ MAN3= MooseX::POE.3 \
post-extract:
@${PERL} -i -ne 'print unless m,build_requires,' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.90:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MooseX-StrictConstructor/Makefile b/devel/p5-MooseX-StrictConstructor/Makefile
index a673f43422bf..ac3770dcbd0a 100644
--- a/devel/p5-MooseX-StrictConstructor/Makefile
+++ b/devel/p5-MooseX-StrictConstructor/Makefile
@@ -27,4 +27,10 @@ MAN3= MooseX::StrictConstructor.3 \
MooseX::StrictConstructor::Trait::Class.3 \
MooseX::StrictConstructor::Trait::Method::Constructor.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MooseX-Types-Perl/Makefile b/devel/p5-MooseX-Types-Perl/Makefile
index 65a86c3b4c05..a91d7933e246 100644
--- a/devel/p5-MooseX-Types-Perl/Makefile
+++ b/devel/p5-MooseX-Types-Perl/Makefile
@@ -24,6 +24,11 @@ MAN3= MooseX::Types::Perl.3
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-version>=0.82:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0.82:${PORTSDIR}/devel/p5-version
+.endif
+
.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+= p5-Test-Simple>=0.96:${PORTSDIR}/devel/p5-Test-Simple
.endif
diff --git a/devel/p5-Mouse/Makefile b/devel/p5-Mouse/Makefile
index 639df3459e7a..ec8409726f9a 100644
--- a/devel/p5-Mouse/Makefile
+++ b/devel/p5-Mouse/Makefile
@@ -61,4 +61,17 @@ post-install:
post-extract:
@${PERL} -i -ne 'print unless m,build_requires,' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
+RUN_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+RUN_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MouseX-App-Cmd/Makefile b/devel/p5-MouseX-App-Cmd/Makefile
index 5f5dc55d097b..ba237faae9c1 100644
--- a/devel/p5-MouseX-App-Cmd/Makefile
+++ b/devel/p5-MouseX-App-Cmd/Makefile
@@ -31,4 +31,10 @@ PERL_CONFIGURE= yes
MAN3= MouseX::App::Cmd.3 \
MouseX::App::Cmd::Command.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-MouseX-Foreign/Makefile b/devel/p5-MouseX-Foreign/Makefile
index c26c8133f870..1da54a5b8201 100644
--- a/devel/p5-MouseX-Foreign/Makefile
+++ b/devel/p5-MouseX-Foreign/Makefile
@@ -30,4 +30,10 @@ MAN3= MouseX::Foreign.3 \
MouseX::Foreign::Meta::Role::Method::Destructor.3 \
MouseX::NonMoose.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Multiplex-CMD/Makefile b/devel/p5-Multiplex-CMD/Makefile
index dc7fae863ca1..605f8eaea82c 100644
--- a/devel/p5-Multiplex-CMD/Makefile
+++ b/devel/p5-Multiplex-CMD/Makefile
@@ -19,4 +19,10 @@ PERL_CONFIGURE= yes
MAN3= Multiplex::CMD.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Object-Pluggable/Makefile b/devel/p5-Object-Pluggable/Makefile
index 600286596587..e058d227df71 100644
--- a/devel/p5-Object-Pluggable/Makefile
+++ b/devel/p5-Object-Pluggable/Makefile
@@ -27,6 +27,12 @@ MAN3= Object::Pluggable.3 \
Object::Pluggable::Constants.3 \
Object::Pluggable::Pipeline.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Pod-Parser>=1.36:${PORTSDIR}/textproc/p5-Pod-Parser
+.endif
+
post-install:
.ifndef(NOPORTEXAMPLES)
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
@@ -34,4 +40,4 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-PAR-Packer/Makefile b/devel/p5-PAR-Packer/Makefile
index 4f2052ec867f..1d9064443f00 100644
--- a/devel/p5-PAR-Packer/Makefile
+++ b/devel/p5-PAR-Packer/Makefile
@@ -42,4 +42,10 @@ MAN3= pp.3 \
PAR::Packer.3 \
PAR::StrippedPARL::Base.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-PAR/Makefile b/devel/p5-PAR/Makefile
index 74f444e1c704..fbe06cce5445 100644
--- a/devel/p5-PAR/Makefile
+++ b/devel/p5-PAR/Makefile
@@ -29,4 +29,13 @@ MAN3= PAR.3 \
PAR::SetupProgname.3 \
PAR::SetupTemp.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-POE-API-Peek/Makefile b/devel/p5-POE-API-Peek/Makefile
index 9608eb5f1282..59f1829a7914 100644
--- a/devel/p5-POE-API-Peek/Makefile
+++ b/devel/p5-POE-API-Peek/Makefile
@@ -28,4 +28,7 @@ INSTALL_TARGET= pure_install
MAN3= POE::API::Peek.3
+regression-test:
+ @(cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} && ${MAKE} test)
+
.include <bsd.port.mk>
diff --git a/devel/p5-POE-Component-DirWatch/Makefile b/devel/p5-POE-Component-DirWatch/Makefile
index efd164b97744..fd0b423b73d0 100644
--- a/devel/p5-POE-Component-DirWatch/Makefile
+++ b/devel/p5-POE-Component-DirWatch/Makefile
@@ -30,4 +30,7 @@ MAN3= POE::Component::DirWatch.3 \
POE::Component::DirWatch::Role::Signatures.3 \
POE::Component::DirWatch::Unmodified.3
+regression-test:
+ @(cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} && ${MAKE} test)
+
.include <bsd.port.mk>
diff --git a/devel/p5-POE/Makefile b/devel/p5-POE/Makefile
index 9d3d15d68b8c..1a314005dfe5 100644
--- a/devel/p5-POE/Makefile
+++ b/devel/p5-POE/Makefile
@@ -56,6 +56,12 @@ MAN3= POE.3 POE::Component.3 POE::Component::Client::TCP.3 \
POE::Wheel::ReadWrite.3 POE::Wheel::Run.3 \
POE::Wheel::SocketFactory.3
+.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-IO>=1.24:${PORTSDIR}/devel/p5-IO
+RUN_DEPENDS+= p5-IO>=1.24:${PORTSDIR}/devel/p5-IO
+.endif
+
post-install:
.ifndef(NOPORTEXAMPLES)
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
@@ -63,4 +69,7 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+test: build
+ @(cd ${WRKSRC}; make test)
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Package-Stash-XS/Makefile b/devel/p5-Package-Stash-XS/Makefile
index 49cc30180275..44b0225ab60a 100644
--- a/devel/p5-Package-Stash-XS/Makefile
+++ b/devel/p5-Package-Stash-XS/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= Package::Stash::XS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Package-Stash/Makefile b/devel/p5-Package-Stash/Makefile
index d0c05319f92d..40d7e37f755b 100644
--- a/devel/p5-Package-Stash/Makefile
+++ b/devel/p5-Package-Stash/Makefile
@@ -35,4 +35,10 @@ PERL_CONFIGURE= yes
MAN3= Package::Stash.3 \
Package::Stash::PP.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Params-Check/Makefile b/devel/p5-Params-Check/Makefile
index ff14400ebc7d..52717636acd8 100644
--- a/devel/p5-Params-Check/Makefile
+++ b/devel/p5-Params-Check/Makefile
@@ -27,4 +27,10 @@ post-install:
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Params-Classify/Makefile b/devel/p5-Params-Classify/Makefile
index 06b80e3f862d..fb422a9e5b46 100644
--- a/devel/p5-Params-Classify/Makefile
+++ b/devel/p5-Params-Classify/Makefile
@@ -18,4 +18,10 @@ PERL_MODBUILD= yes
MAN3= Params::Classify.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Params-Util/Makefile b/devel/p5-Params-Util/Makefile
index cbc4b0c89bf7..602a47f952ee 100644
--- a/devel/p5-Params-Util/Makefile
+++ b/devel/p5-Params-Util/Makefile
@@ -18,4 +18,10 @@ PERL_CONFIGURE= yes
MAN3= Params::Util.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0.2700:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Params-Validate/Makefile b/devel/p5-Params-Validate/Makefile
index df0e66db3bf5..e012b39c3891 100644
--- a/devel/p5-Params-Validate/Makefile
+++ b/devel/p5-Params-Validate/Makefile
@@ -28,4 +28,15 @@ PERL_MODBUILD= yes
MAN3= Attribute::Params::Validate.3 \
Params::Validate.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Attribute-Handlers>=0.79:${PORTSDIR}/devel/p5-Attribute-Handlers
+RUN_DEPENDS+= p5-Attribute-Handlers>=0.79:${PORTSDIR}/devel/p5-Attribute-Handlers
+.endif
+
+.if ${PERL_LEVEL} < 501000
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Parse-CPAN-Packages/Makefile b/devel/p5-Parse-CPAN-Packages/Makefile
index a0a28844d3fd..835e16fb0654 100644
--- a/devel/p5-Parse-CPAN-Packages/Makefile
+++ b/devel/p5-Parse-CPAN-Packages/Makefile
@@ -30,4 +30,13 @@ MAN3= Parse::CPAN::Packages.3 \
Parse::CPAN::Packages::Distribution.3 \
Parse::CPAN::Packages::Package.3
-.include <bsd.port.mk>
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Parse-RecDescent/Makefile b/devel/p5-Parse-RecDescent/Makefile
index 4df14799d99b..46c099667949 100644
--- a/devel/p5-Parse-RecDescent/Makefile
+++ b/devel/p5-Parse-RecDescent/Makefile
@@ -16,6 +16,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.(...)$/\1/}
MAINTAINER= tobez@FreeBSD.org
COMMENT= A recursive descent parsing framework for Perl
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
PERL_CONFIGURE= YES
MAN3= Parse::RecDescent.3
@@ -26,4 +28,10 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/tutorial/* ${DOCSDIR}/tutorial
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500900
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Path-Dispatcher/Makefile b/devel/p5-Path-Dispatcher/Makefile
index af79f9676f43..1e5e64f536e2 100644
--- a/devel/p5-Path-Dispatcher/Makefile
+++ b/devel/p5-Path-Dispatcher/Makefile
@@ -49,4 +49,10 @@ MAN3= Path::Dispatcher::Path.3 \
Path::Dispatcher::Rule::Regex.3 \
Path::Dispatcher::Dispatch.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Perl-Version/Makefile b/devel/p5-Perl-Version/Makefile
index c6a7b0e2ad89..277fa91e9f44 100644
--- a/devel/p5-Perl-Version/Makefile
+++ b/devel/p5-Perl-Version/Makefile
@@ -16,11 +16,18 @@ COMMENT= Parse and manipulate Perl version strings
RUN_DEPENDS= p5-File-Slurp>=9999.12:${PORTSDIR}/devel/p5-File-Slurp \
p5-Scalar-List-Utils>=0:${PORTSDIR}/lang/p5-Scalar-List-Utils
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN1= perl-reversion.1
MAN3= Perl::Version.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 5.008007
+RUN_DEPENDS+= p5-Pod-Parser>=1.3:${PORTSDIR}/textproc/p5-Pod-Parser
+BUILD_DEPENDS+= p5-Pod-Parser>=1.3:${PORTSDIR}/textproc/p5-Pod-Parser
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-PerlIO-Layers/Makefile b/devel/p5-PerlIO-Layers/Makefile
index 8ed1b9f48d6b..62448cdb64b0 100644
--- a/devel/p5-PerlIO-Layers/Makefile
+++ b/devel/p5-PerlIO-Layers/Makefile
@@ -21,4 +21,15 @@ PERL_MODBUILD= yes
MAN3= PerlIO::Layers.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder \
+ p5-Module-Build>=0.2800:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-PerlIO-Util/Makefile b/devel/p5-PerlIO-Util/Makefile
index 4e3bb35079e5..c0aa9663fc05 100644
--- a/devel/p5-PerlIO-Util/Makefile
+++ b/devel/p5-PerlIO-Util/Makefile
@@ -26,4 +26,14 @@ MAN3= PerlIO::Util.3 \
PerlIO::reverse.3 \
PerlIO::tee.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-PerlIO-via-MD5/Makefile b/devel/p5-PerlIO-via-MD5/Makefile
index 6e4355ad461c..db820189b135 100644
--- a/devel/p5-PerlIO-via-MD5/Makefile
+++ b/devel/p5-PerlIO-via-MD5/Makefile
@@ -16,7 +16,15 @@ MAINTAINER= lth@FreeBSD.org
COMMENT= PerlIO layer for creating an MD5 digest of a file
PERL_CONFIGURE= yes
+USE_PERL5_REASON= requires PerlIO, which was introduced in Perl 5.8.0. Install lang/perl5.8 and try again
MAN3= PerlIO::via::MD5.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+BUILD_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Pod-Coverage-TrustPod/Makefile b/devel/p5-Pod-Coverage-TrustPod/Makefile
index a06119f099f1..5091c3f6513f 100644
--- a/devel/p5-Pod-Coverage-TrustPod/Makefile
+++ b/devel/p5-Pod-Coverage-TrustPod/Makefile
@@ -18,13 +18,21 @@ COMMENT= Declare trusted symbol names in POD
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
-BUILD_DEPENDS= p5-Pod-Coverage>=0:${PORTSDIR}/devel/p5-Pod-Coverage \
+.include <bsd.port.pre.mk>
+
+BUILD_DEPENDS+= p5-Pod-Coverage>=0:${PORTSDIR}/devel/p5-Pod-Coverage \
+ p5-Pod-Eventual>=0:${PORTSDIR}/textproc/p5-Pod-Eventual
+RUN_DEPENDS+= p5-Pod-Coverage>=0:${PORTSDIR}/devel/p5-Pod-Coverage \
p5-Pod-Eventual>=0:${PORTSDIR}/textproc/p5-Pod-Eventual
-RUN_DEPENDS:= ${BUILD_DEPENDS}
-TEST_DEPENDS= p5-Test-Pod>=1.41:${PORTSDIR}/devel/p5-Test-Pod
+
+TEST_DEPENDS+= p5-Test-Pod>=1.41:${PORTSDIR}/devel/p5-Test-Pod
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
PERL_CONFIGURE= yes
MAN3= Pod::Coverage::TrustPod.3
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Regexp-Grammars/Makefile b/devel/p5-Regexp-Grammars/Makefile
index 05ea575a29b3..19093a8464d9 100644
--- a/devel/p5-Regexp-Grammars/Makefile
+++ b/devel/p5-Regexp-Grammars/Makefile
@@ -14,7 +14,7 @@ PKGNAMEPREFIX= p5-
MAINTAINER= citric@cubicone.tmetic.com
COMMENT= Add grammatical parsing features to Perl 5.10 regexes
-PERL_MODBUILD= yes
+PERL_MODBUILD= 5.10+
MAN3= Regexp::Grammars.3
diff --git a/devel/p5-SVN-Mirror/Makefile b/devel/p5-SVN-Mirror/Makefile
index 270cbe4c0280..85dc5d7a666e 100644
--- a/devel/p5-SVN-Mirror/Makefile
+++ b/devel/p5-SVN-Mirror/Makefile
@@ -31,4 +31,7 @@ PERL_CONFIGURE= yes
MAN1= svm.1
MAN3= SVN::Mirror.3
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-SVN-S4/Makefile b/devel/p5-SVN-S4/Makefile
index 9bd1dddd9db1..c675569ecaa1 100644
--- a/devel/p5-SVN-S4/Makefile
+++ b/devel/p5-SVN-S4/Makefile
@@ -41,4 +41,7 @@ MAN3= SVN::S4.3 \
SVN::S4::ViewSpec.3 \
SVN::S4::WorkProp.3
+regression-test:
+ @(cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} && ${MAKE} test)
+
.include <bsd.port.mk>
diff --git a/devel/p5-SVN-Simple/Makefile b/devel/p5-SVN-Simple/Makefile
index e2be51c34689..831c406bd72f 100644
--- a/devel/p5-SVN-Simple/Makefile
+++ b/devel/p5-SVN-Simple/Makefile
@@ -22,6 +22,9 @@ PERL_CONFIGURE= yes
MAN3= SVN::Simple::Edit.3 SVN::Simple::Editor.3
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "powerpc"
diff --git a/devel/p5-Smart-Comments/Makefile b/devel/p5-Smart-Comments/Makefile
index 142665c608fd..d5ca21bd06a1 100644
--- a/devel/p5-Smart-Comments/Makefile
+++ b/devel/p5-Smart-Comments/Makefile
@@ -20,4 +20,14 @@ PERL_MODBUILD= yes
MAN3= Smart::Comments.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500900
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Text-Balanced>=2:${PORTSDIR}/textproc/p5-Text-Balanced
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Sys-Info-Base/Makefile b/devel/p5-Sys-Info-Base/Makefile
index 3b0716a003e8..73c578894da2 100644
--- a/devel/p5-Sys-Info-Base/Makefile
+++ b/devel/p5-Sys-Info-Base/Makefile
@@ -27,4 +27,7 @@ MAN3= Sys::Info::Base.3 \
Sys::Info::Driver.3 \
Sys::Info::OS.3
+regression-test test: build
+ cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-Term-ProgressBar/Makefile b/devel/p5-Term-ProgressBar/Makefile
index e487e54ac9d7..2bf82374d70c 100644
--- a/devel/p5-Term-ProgressBar/Makefile
+++ b/devel/p5-Term-ProgressBar/Makefile
@@ -34,4 +34,10 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.80:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Term-UI/Makefile b/devel/p5-Term-UI/Makefile
index 02bcfac84f06..9abb8b08907a 100644
--- a/devel/p5-Term-UI/Makefile
+++ b/devel/p5-Term-UI/Makefile
@@ -18,4 +18,15 @@ PERL_CONFIGURE= yes
MAN3= Term::UI.3 Term::UI::History.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Log-Message-Simple>=0:${PORTSDIR}/devel/p5-Log-Message-Simple \
+ p5-Params-Check>=0:${PORTSDIR}/devel/p5-Params-Check
+RUN_DEPENDS+= p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Log-Message-Simple>=0:${PORTSDIR}/devel/p5-Log-Message-Simple \
+ p5-Params-Check>=0:${PORTSDIR}/devel/p5-Params-Check
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Test-Exception-LessClever/Makefile b/devel/p5-Test-Exception-LessClever/Makefile
index a56382bd64fe..3219c1dbffbd 100644
--- a/devel/p5-Test-Exception-LessClever/Makefile
+++ b/devel/p5-Test-Exception-LessClever/Makefile
@@ -21,4 +21,11 @@ PERL_MODBUILD= yes
MAN3= Test::Exception::LessClever.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+RUN_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Test-InDistDir/Makefile b/devel/p5-Test-InDistDir/Makefile
index d43beb71f308..66d7f7461d7e 100644
--- a/devel/p5-Test-InDistDir/Makefile
+++ b/devel/p5-Test-InDistDir/Makefile
@@ -19,4 +19,7 @@ PERL_CONFIGURE= yes
MAN3= Test::InDistDir.3
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-Test-Inline/Makefile b/devel/p5-Test-Inline/Makefile
index 12d99fa7b499..f4662d9ac223 100644
--- a/devel/p5-Test-Inline/Makefile
+++ b/devel/p5-Test-Inline/Makefile
@@ -24,7 +24,7 @@ RUN_DEPENDS= p5-Algorithm-Dependency>=1.02:${PORTSDIR}/devel/p5-Algorithm-Depend
p5-File-chmod>=0.31:${PORTSDIR}/devel/p5-File-chmod \
p5-Params-Util>=0.21:${PORTSDIR}/devel/p5-Params-Util \
p5-Pod-Tests>=0.18:${PORTSDIR}/devel/p5-Pod-Tests
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
BUILD_DEPENDS+= p5-Test-ClassAPI>=1.02:${PORTSDIR}/devel/p5-Test-ClassAPI \
p5-Test-Script>=1.02:${PORTSDIR}/devel/p5-Test-Script
@@ -41,4 +41,10 @@ MAN3= Test::Inline.3 \
Test::Inline::Script.3 \
Test::Inline::Section.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Scalar-List-Utils>=1.19:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Test-Pod/Makefile b/devel/p5-Test-Pod/Makefile
index 8f8b6b6aa447..9da8b7e0f9b7 100644
--- a/devel/p5-Test-Pod/Makefile
+++ b/devel/p5-Test-Pod/Makefile
@@ -19,4 +19,10 @@ PERL_MODBUILD= yes
MAN3= Test::Pod.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Pod-Simple>=3.05:${PORTSDIR}/textproc/p5-Pod-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Test-Script/Makefile b/devel/p5-Test-Script/Makefile
index 65be1cab815b..7737d07f2d66 100644
--- a/devel/p5-Test-Script/Makefile
+++ b/devel/p5-Test-Script/Makefile
@@ -17,10 +17,16 @@ COMMENT= Test::Script - Cross-platform basic tests for scripts
RUN_DEPENDS= p5-IPC-Run3>=0.034:${PORTSDIR}/devel/p5-IPC-Run3 \
p5-Probe-Perl>=0.01:${PORTSDIR}/sysutils/p5-Probe-Perl
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Test::Script.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500808
+BUILD_DEPENDS+= p5-Test-Simple>=0.62:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Test-Spec/Makefile b/devel/p5-Test-Spec/Makefile
index 8777a6b0dc98..b8f72f40bf18 100644
--- a/devel/p5-Test-Spec/Makefile
+++ b/devel/p5-Test-Spec/Makefile
@@ -28,4 +28,10 @@ PERL_CONFIGURE= yes
MAN3= Test::Spec.3 \
Test::Spec::Mocks.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= Test-Harness>=0:${PORTSDIR}/devel/p5-Test-Harness
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Test-TCP/Makefile b/devel/p5-Test-TCP/Makefile
index a303d2e4b11e..b3ef8863d56e 100644
--- a/devel/p5-Test-TCP/Makefile
+++ b/devel/p5-Test-TCP/Makefile
@@ -15,8 +15,9 @@ PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension for testing TCP program
-RUN_DEPENDS= p5-Test-SharedFork>=0.19:${PORTSDIR}/devel/p5-Test-SharedFork
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+RUN_DEPENDS= \
+ p5-Test-SharedFork>=0.19:${PORTSDIR}/devel/p5-Test-SharedFork
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
diff --git a/devel/p5-Test-Trap/Makefile b/devel/p5-Test-Trap/Makefile
index 611494da5c55..c2e38e61ff9b 100644
--- a/devel/p5-Test-Trap/Makefile
+++ b/devel/p5-Test-Trap/Makefile
@@ -28,4 +28,11 @@ MAN3= Test::Trap.3 \
Test::Trap::Builder::SystemSafe.3 \
Test::Trap::Builder::TempFile.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Tree-Simple-VisitorFactory/Makefile b/devel/p5-Tree-Simple-VisitorFactory/Makefile
index 8aa728c1be4e..2be50d49b406 100644
--- a/devel/p5-Tree-Simple-VisitorFactory/Makefile
+++ b/devel/p5-Tree-Simple-VisitorFactory/Makefile
@@ -41,4 +41,10 @@ MAN3= Tree::Simple::Visitor::BreadthFirstTraversal.3 \
PERL_CONFIGURE= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+BUILD_DEPENDS+= p5-Scalar-Util>=1.10:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-XS-Object-Magic/Makefile b/devel/p5-XS-Object-Magic/Makefile
index ad6a0fbdae4d..7cca44694a1d 100644
--- a/devel/p5-XS-Object-Magic/Makefile
+++ b/devel/p5-XS-Object-Magic/Makefile
@@ -24,4 +24,11 @@ PERL_CONFIGURE= yes
MAN3= XS::Object::Magic.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-lib-abs/Makefile b/devel/p5-lib-abs/Makefile
index 1aa4bd30aa3c..e0949422dfa5 100644
--- a/devel/p5-lib-abs/Makefile
+++ b/devel/p5-lib-abs/Makefile
@@ -18,4 +18,11 @@ PERL_CONFIGURE= yes
MAN3= lib::abs.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500808
+BUILD_DEPENDS+= p5-PathTools>=3.12:${PORTSDIR}/devel/p5-PathTools
+RUN_DEPENDS+= p5-PathTools>=3.12:${PORTSDIR}/devel/p5-PathTools
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-namespace-clean/Makefile b/devel/p5-namespace-clean/Makefile
index f58f7a6bfd78..563c16286011 100644
--- a/devel/p5-namespace-clean/Makefile
+++ b/devel/p5-namespace-clean/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= namespace::clean.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-parent/Makefile b/devel/p5-parent/Makefile
index 47c7ca67caea..0e6a73ce11b9 100644
--- a/devel/p5-parent/Makefile
+++ b/devel/p5-parent/Makefile
@@ -19,4 +19,7 @@ PERL_CONFIGURE= yes
MAN3= parent.3
+regression-test:
+ cd ${WRKSRC} && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/devel/p5-uni-perl/Makefile b/devel/p5-uni-perl/Makefile
index a7a2094d7364..5282b5239e96 100644
--- a/devel/p5-uni-perl/Makefile
+++ b/devel/p5-uni-perl/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= p5-Encode>=2.37:${PORTSDIR}/converters/p5-Encode \
p5-lib-abs>=0.90:${PORTSDIR}/devel/p5-lib-abs
BUILD_DEPENDS= ${RUN_DEPENDS}
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= uni::perl.3
diff --git a/dns/p5-Net-DNS-SEC/Makefile b/dns/p5-Net-DNS-SEC/Makefile
index bee921dde190..5f16c79a55a7 100644
--- a/dns/p5-Net-DNS-SEC/Makefile
+++ b/dns/p5-Net-DNS-SEC/Makefile
@@ -22,7 +22,7 @@ RUN_DEPENDS= p5-Crypt-OpenSSL-Bignum>=0.03:${PORTSDIR}/security/p5-Crypt-OpenSSL
p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
p5-MIME-Base32>=0:${PORTSDIR}/converters/p5-MIME-Base32 \
p5-Net-DNS>=0.64:${PORTSDIR}/dns/p5-Net-DNS
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
@@ -33,4 +33,10 @@ MAN3= Net::DNS::Keyset.3 Net::DNS::RR::DS.3 Net::DNS::RR::KEY.3 \
Net::DNS::RR::NSEC.3 Net::DNS::RR::DNSKEY.3 \
Net::DNS::RR::NSEC3.3 Net::DNS::RR::NSEC3PARAM.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-Digest-SHA>=5.23:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/dns/p5-Net-Domain-ExpireDate/Makefile b/dns/p5-Net-Domain-ExpireDate/Makefile
index a1c78f4ab828..b88534e8e667 100644
--- a/dns/p5-Net-Domain-ExpireDate/Makefile
+++ b/dns/p5-Net-Domain-ExpireDate/Makefile
@@ -24,4 +24,10 @@ MAN3= Net::Domain::ExpireDate.3
post-patch:
@${FIND} ${WRKSRC} -name "*.orig" -delete
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Time/Piece.pm:${PORTSDIR}/devel/p5-Time-Piece
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/dns/p5-POE-Component-Resolver/Makefile b/dns/p5-POE-Component-Resolver/Makefile
index 45a1baaaa356..2f13ae509627 100644
--- a/dns/p5-POE-Component-Resolver/Makefile
+++ b/dns/p5-POE-Component-Resolver/Makefile
@@ -29,4 +29,13 @@ PERL_CONFIGURE= yes
MAN3= POE::Component::Resolver.3 \
POE::Component::Resolver::Sidecar.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Storable>=2.18:${PORTSDIR}/devel/p5-Storable \
+ p5-Time-HiRes>=1.9711:${PORTSDIR}/devel/p5-Time-HiRes
+RUN_DEPENDS+= p5-Storable>=2.18:${PORTSDIR}/devel/p5-Storable \
+ p5-Time-HiRes>=1.9711:${PORTSDIR}/devel/p5-Time-HiRes
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/editors/p5-Padre/Makefile b/editors/p5-Padre/Makefile
index a0002be2721e..f795482bbf9d 100644
--- a/editors/p5-Padre/Makefile
+++ b/editors/p5-Padre/Makefile
@@ -79,7 +79,7 @@ WX_COMPS= wx contrib
WX_UNICODE= yes
USE_DISPLAY= yes
PERL_CONFIGURE= yes
-USE_PERL5= yes
+USE_PERL5= 5.8.5+
USE_GETTEXT= yes
MAKE_JOBS_UNSAFE= yes
@@ -94,6 +94,26 @@ IGNORE= needs a threaded Perl, build with WITH_THREADS=yes flag and try again
IGNORE= needs an existing installation of Perl built with WITH_THREADS=yes
.endif
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Pod-Simple>=3.07:${PORTSDIR}/textproc/p5-Pod-Simple
+.endif
+
+.if ${PERL_LEVEL} >= 501000 && ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Encode>=2.26:${PORTSDIR}/converters/p5-Encode \
+ p5-Thread-Queue>=2.11:${PORTSDIR}/devel/p5-Thread-Queue \
+ p5-threads>=1.71:${PORTSDIR}/devel/p5-threads \
+ p5-threads-shared>=1.26:${PORTSDIR}/devel/p5-threads-shared
+RUN_DEPENDS+= p5-Encode>=2.26:${PORTSDIR}/converters/p5-Encode \
+ p5-Thread-Queue>=2.11:${PORTSDIR}/devel/p5-Thread-Queue \
+ p5-threads>=1.71:${PORTSDIR}/devel/p5-threads \
+ p5-threads-shared>=1.26:${PORTSDIR}/devel/p5-threads-shared
+.endif
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-ExtUtils-Manifest>=1.56:${PORTSDIR}/devel/p5-ExtUtils-Manifest
+RUN_DEPENDS+= p5-ExtUtils-Manifest>=1.56:${PORTSDIR}/devel/p5-ExtUtils-Manifest
+.endif
+
MAN3= Padre.3 \
Padre::Action.3 \
Padre::Action::Debug.3 \
diff --git a/ftp/p5-File-Fetch/Makefile b/ftp/p5-File-Fetch/Makefile
index 3ae8c481055e..05612aedd9b8 100644
--- a/ftp/p5-File-Fetch/Makefile
+++ b/ftp/p5-File-Fetch/Makefile
@@ -18,4 +18,14 @@ PERL_CONFIGURE= yes
MAN3= File::Fetch.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-IPC-Cmd>=0.42:${PORTSDIR}/devel/p5-IPC-Cmd \
+ p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
+ p5-Module-Load-Conditional>=0.04:${PORTSDIR}/devel/p5-Module-Load-Conditional \
+ p5-Params-Check>=0.07:${PORTSDIR}/devel/p5-Params-Check
+BUILD_DEPENDS:= ${RUN_DEPENDS}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/ftp/p5-Net-FTPServer/Makefile b/ftp/p5-Net-FTPServer/Makefile
index 6c1480cc6982..9d564d795bd3 100644
--- a/ftp/p5-Net-FTPServer/Makefile
+++ b/ftp/p5-Net-FTPServer/Makefile
@@ -22,7 +22,7 @@ RUN_DEPENDS= p5-Archive-Zip>=0:${PORTSDIR}/archivers/p5-Archive-Zip \
p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
p5-File-Sync>=0:${PORTSDIR}/devel/p5-File-Sync \
p5-IO-stringy>=1.126:${PORTSDIR}/devel/p5-IO-stringy
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
MAKE_ENV+= NOCONF=1
PERL_CONFIGURE= yes
@@ -55,6 +55,12 @@ DOCS= FAQ README TODO doc/*
PORTDOCS= *
PORTEXAMPLES= ftpd.conf
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s/root,root/root,wheel/" \
-e "s,/usr/sbin,${PREFIX}/sbin," \
@@ -75,4 +81,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/ftp/p5-SOAP-Transport-FTP/Makefile b/ftp/p5-SOAP-Transport-FTP/Makefile
index 19b282213f9c..2e8b1de36165 100644
--- a/ftp/p5-SOAP-Transport-FTP/Makefile
+++ b/ftp/p5-SOAP-Transport-FTP/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MAN3= SOAP::Transport::FTP.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Module-Build>=0.3600:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/p5-CAD-Drawing/Makefile b/graphics/p5-CAD-Drawing/Makefile
index 57af5fb9bb3e..56fb3c9aed12 100644
--- a/graphics/p5-CAD-Drawing/Makefile
+++ b/graphics/p5-CAD-Drawing/Makefile
@@ -21,7 +21,7 @@ RUN_DEPENDS= ${SITE_PERL}/Math/Vec.pm:${PORTSDIR}/math/p5-Math-Vec \
${SITE_PERL}/${PERL_ARCH}/Image/Magick.pm:${PORTSDIR}/graphics/ImageMagick \
${SITE_PERL}/Stream/FileInputStream.pm:${PORTSDIR}/devel/p5-Stream \
${SITE_PERL}/Math/Geometry/Planar.pm:${PORTSDIR}/math/p5-Math-Geometry-Planar
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
MAN3= CAD::Drawing.3 \
CAD::Drawing::Calculate.3 \
@@ -38,4 +38,10 @@ MAN3= CAD::Drawing.3 \
PERL_MODBUILD= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/p5-Geometry-Primitive/Makefile b/graphics/p5-Geometry-Primitive/Makefile
index edb22b42583c..5bf72a85b540 100644
--- a/graphics/p5-Geometry-Primitive/Makefile
+++ b/graphics/p5-Geometry-Primitive/Makefile
@@ -37,4 +37,10 @@ MAN3= Geometry::Primitive.3 \
Geometry::Primitive::Rectangle.3 \
Geometry::Primitive::Shape.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-Math-Complex>=1.56:${PORTSDIR}/math/p5-Math-Complex
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/p5-Graph-ReadWrite/Makefile b/graphics/p5-Graph-ReadWrite/Makefile
index a93b23d5ca49..163055a57c95 100644
--- a/graphics/p5-Graph-ReadWrite/Makefile
+++ b/graphics/p5-Graph-ReadWrite/Makefile
@@ -36,4 +36,11 @@ MAN3= Graph::Reader.3 \
post-patch:
@${REINPLACE_CMD} -e 's|Graph-ReadWrite|Graph::ReadWrite|' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/p5-GraphViz/Makefile b/graphics/p5-GraphViz/Makefile
index 47ae850037d9..3ccd46cd10ae 100644
--- a/graphics/p5-GraphViz/Makefile
+++ b/graphics/p5-GraphViz/Makefile
@@ -37,4 +37,9 @@ MAN3= Devel::GraphVizProf.3 \
GraphViz::Small.3 \
GraphViz::XML.3
+.if defined(MAINTAINER_MODE)
+regression-test: build
+ cd ${WRKSRC} && ${MAKE} test
+.endif
+
.include <bsd.port.mk>
diff --git a/graphics/p5-GraphViz2/Makefile b/graphics/p5-GraphViz2/Makefile
index 6a0009024619..c6f44f45aea0 100644
--- a/graphics/p5-GraphViz2/Makefile
+++ b/graphics/p5-GraphViz2/Makefile
@@ -58,6 +58,15 @@ MAN3= GraphViz2.3 \
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-File-Temp>=0.22:${PORTSDIR}/devel/p5-File-Temp
+RUN_DEPENDS+= p5-File-Temp>=0.22:${PORTSDIR}/devel/p5-File-Temp
+.endif
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-HTTP-Tiny>=0.012:${PORTSDIR}/www/p5-HTTP-Tiny \
p5-PathTools>=3.3300:${PORTSDIR}/devel/p5-PathTools \
diff --git a/graphics/p5-Image-Info/Makefile b/graphics/p5-Image-Info/Makefile
index 15bdda07875f..41001c57c1d0 100644
--- a/graphics/p5-Image-Info/Makefile
+++ b/graphics/p5-Image-Info/Makefile
@@ -35,4 +35,11 @@ MAN3= Bundle::Image::Info::Everything.3 \
Image::Info::XBM.3 \
Image::Info::XPM.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/p5-Image-Pngslimmer/Makefile b/graphics/p5-Image-Pngslimmer/Makefile
index d9a6ec99b4e4..90843aabc5cb 100644
--- a/graphics/p5-Image-Pngslimmer/Makefile
+++ b/graphics/p5-Image-Pngslimmer/Makefile
@@ -19,4 +19,11 @@ PERL_CONFIGURE= yes
MAN3= Image::Pngslimmer.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/p5-Image-Size/Makefile b/graphics/p5-Image-Size/Makefile
index 8584cf425a3e..78910d4be50d 100644
--- a/graphics/p5-Image-Size/Makefile
+++ b/graphics/p5-Image-Size/Makefile
@@ -20,4 +20,11 @@ PERL_CONFIGURE= yes
MAN1= imgsize.1
MAN3= Image::Size.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/p5-PGPLOT/Makefile b/graphics/p5-PGPLOT/Makefile
index f44c85b38b04..57305a955f67 100644
--- a/graphics/p5-PGPLOT/Makefile
+++ b/graphics/p5-PGPLOT/Makefile
@@ -33,4 +33,10 @@ post-install:
cd ${WRKSRC}/ && ${INSTALL_DATA} LICENSE test* ${EXAMPLESDIR}/
.endif
+.if defined(MAINTAINER_MODE) && !defined(BATCH)
+check regression-test test: build
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${_MAKE_JOBS} ${MAKE_ARGS} test
+.endif
+
.include <bsd.port.mk>
diff --git a/graphics/p5-SWF-File/Makefile b/graphics/p5-SWF-File/Makefile
index 76894f24f437..faccb60514ae 100644
--- a/graphics/p5-SWF-File/Makefile
+++ b/graphics/p5-SWF-File/Makefile
@@ -32,4 +32,11 @@ post-patch:
post-configure:
@${PERL} -pi -e 's/^(POD2MAN_EXE.*)$$/\1 --lax/;' ${WRKSRC}/Makefile
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/japanese/p5-Mail-SpamAssassin/Makefile b/japanese/p5-Mail-SpamAssassin/Makefile
index e6291faf3629..bad670021dac 100644
--- a/japanese/p5-Mail-SpamAssassin/Makefile
+++ b/japanese/p5-Mail-SpamAssassin/Makefile
@@ -74,6 +74,16 @@ USE_OPENSSL= yes
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Archive-Tar>=1.23:${PORTSDIR}/archivers/p5-Archive-Tar \
+ p5-IO-Zlib>=1.04:${PORTSDIR}/archivers/p5-IO-Zlib \
+ p5-Test-Harness>=3.16:${PORTSDIR}/devel/p5-Test-Harness
+.endif
+
.if defined (WITH_SPAMC)
CONFIGURE_ARGS+= BUILD_SPAMC=yes
.else
@@ -115,12 +125,21 @@ RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-P
.if defined(WITH_RAZOR)
RUN_DEPENDS+= razor-agents>=2.84:${PORTSDIR}/mail/razor-agents
+.else
+.if ${PERL_LEVEL} < 501000
+.if !defined(WITH_DKIM)
+RUN_DEPENDS+= p5-Digest-SHA1>=2.11:${PORTSDIR}/security/p5-Digest-SHA1
+.endif
+.endif
.endif
.if defined(WITH_DKIM)
-RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL \
- p5-Mail-DKIM>=0.37:${PORTSDIR}/mail/p5-Mail-DKIM \
- p5-Crypt-OpenSSL-RSA>=0.26_1:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA
+RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
+. if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA
+. endif
+RUN_DEPENDS+= p5-Mail-DKIM>=0.37:${PORTSDIR}/mail/p5-Mail-DKIM
+RUN_DEPENDS+= p5-Crypt-OpenSSL-RSA>=0.26_1:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA
.endif
.if defined(WITH_SACOMPILE)
diff --git a/lang/p5-Marpa-PP/Makefile b/lang/p5-Marpa-PP/Makefile
index 45465a64c437..384b1826f3d6 100644
--- a/lang/p5-Marpa-PP/Makefile
+++ b/lang/p5-Marpa-PP/Makefile
@@ -18,12 +18,13 @@ COMMENT= Pure Perl version of Marpa
BUILD_DEPENDS= p5-PPI>=1.206:${PORTSDIR}/textproc/p5-PPI \
p5-Task-Weaken>=0:${PORTSDIR}/devel/p5-Task-Weaken
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+BUILD_DEPENDS= p5-PPI>=1.206:${PORTSDIR}/textproc/p5-PPI \
+ p5-Task-Weaken>=0:${PORTSDIR}/devel/p5-Task-Weaken
TEST_DEPENDS= p5-Test-Weaken>=3.004000:${PORTSDIR}/devel/p5-Test-Weaken
# PERL_CONFIGURE failed on Perl 5.12.4
-PERL_MODBUILD= yes
+PERL_MODBUILD= 5.10.0+
MAN3= Marpa::PP.3 \
Marpa::PP::Advanced::Bibliography.3 \
@@ -40,4 +41,19 @@ MAN3= Marpa::PP.3 \
Marpa::PP::Tracing.3 \
Marpa::PP::Vocabulary.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.21:${PORTSDIR}/lang/p5-Scalar-List-Utils
+RUN_DEPENDS+= p5-Scalar-List-Utils>=1.21:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Data-Dumper>=2.125:${PORTSDIR}/devel/p5-Data-Dumper \
+ p5-Storable>=2.21:${PORTSDIR}/devel/p5-Storable
+RUN_DEPENDS+= p5-Data-Dumper>=2.125:${PORTSDIR}/devel/p5-Data-Dumper \
+ p5-Storable>=2.21:${PORTSDIR}/devel/p5-Storable
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/lang/p5-Marpa-XS/Makefile b/lang/p5-Marpa-XS/Makefile
index 2f9fd77259a8..46c8ba0e786b 100644
--- a/lang/p5-Marpa-XS/Makefile
+++ b/lang/p5-Marpa-XS/Makefile
@@ -27,7 +27,7 @@ RUN_DEPENDS= p5-ExtUtils-PkgConfig>=0:${PORTSDIR}/devel/p5-ExtUtils-PkgConfig \
TEST_DEPENDS= p5-Test-Weaken>=3.004000:${PORTSDIR}/devel/p5-Test-Weaken
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= Marpa::XS.3 \
Marpa::XS::Advanced::Bibliography.3 \
diff --git a/lang/p5-Marpa/Makefile b/lang/p5-Marpa/Makefile
index 1e48ad8ee403..baba0626ce2d 100644
--- a/lang/p5-Marpa/Makefile
+++ b/lang/p5-Marpa/Makefile
@@ -21,7 +21,7 @@ BUILD_DEPENDS= p5-HTML-Parser>=3.64:${PORTSDIR}/www/p5-HTML-Parser \
RUN_DEPENDS= p5-HTML-Parser>=3.64:${PORTSDIR}/www/p5-HTML-Parser \
p5-PPI>=1.206:${PORTSDIR}/textproc/p5-PPI
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= Marpa::Advanced::Algorithm.3 \
Marpa::Advanced::Bibliography.3 \
@@ -38,4 +38,10 @@ MAN3= Marpa::Advanced::Algorithm.3 \
Marpa::Support.3 \
Marpa::Tracing.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/lang/p5-Parse-Perl/Makefile b/lang/p5-Parse-Perl/Makefile
index a78e45ca6316..fd01fcc77d7b 100644
--- a/lang/p5-Parse-Perl/Makefile
+++ b/lang/p5-Parse-Perl/Makefile
@@ -27,4 +27,10 @@ MAN3= Parse::Perl.3 \
Parse::Perl::CopHintsHash.3 \
Parse::Perl::Environment.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/lang/p5-TryCatch/Makefile b/lang/p5-TryCatch/Makefile
index dcd362364089..6ede8e89ac3f 100644
--- a/lang/p5-TryCatch/Makefile
+++ b/lang/p5-TryCatch/Makefile
@@ -46,4 +46,10 @@ BUILD_DEPENDS+= p5-B-Hooks-OP-Check>=0.18:${PORTSDIR}/devel/p5-B-Hooks-OP-Check
p5-B-Hooks-OP-PPAddr>=0.03:${PORTSDIR}/devel/p5-B-Hooks-OP-PPAddr
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/mail/p5-Email-MIME/Makefile b/mail/p5-Email-MIME/Makefile
index 4ef98b788979..ce01cbf23b9c 100644
--- a/mail/p5-Email-MIME/Makefile
+++ b/mail/p5-Email-MIME/Makefile
@@ -28,4 +28,7 @@ MAN3= Email::MIME.3 \
Email::MIME::Header.3 \
Email::MIME::Modifier.3
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/mail/p5-FuzzyOcr/Makefile b/mail/p5-FuzzyOcr/Makefile
index 7026a17b9ffa..a2a61fd4c391 100644
--- a/mail/p5-FuzzyOcr/Makefile
+++ b/mail/p5-FuzzyOcr/Makefile
@@ -50,6 +50,12 @@ PLIST_FILES= ${SA_CONFIGDIR}/FuzzyOcr.pm \
%%EXAMPLESDIR%%/FuzzyOcr.cf %%EXAMPLESDIR%%/FuzzyOcr.words
PLIST_DIRS= %%EXAMPLESDIR%%
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's,/usr/bin,${LOCALBASE}/bin,g' \
-e 's,/bin/grep,/usr/bin/grep,g' \
@@ -76,4 +82,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/p5-Mail-DKIM/Makefile b/mail/p5-Mail-DKIM/Makefile
index 92943e80f7e6..b9906ec7c3cc 100644
--- a/mail/p5-Mail-DKIM/Makefile
+++ b/mail/p5-Mail-DKIM/Makefile
@@ -43,4 +43,11 @@ MAN3= Mail::DKIM.3 \
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/dkim*.pl ${PREFIX}/bin
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+BUILD_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/mail/p5-Mail-Graph/Makefile b/mail/p5-Mail-Graph/Makefile
index 7754fc86b5ec..f2de44cc19bd 100644
--- a/mail/p5-Mail-Graph/Makefile
+++ b/mail/p5-Mail-Graph/Makefile
@@ -19,7 +19,7 @@ RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD \
${SITE_PERL}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph \
${SITE_PERL}/GD/Text.pm:${PORTSDIR}/graphics/p5-GD-TextUtil \
${SITE_PERL}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
EXAMPLESCRIPT= samples/*pl
@@ -40,4 +40,10 @@ post-install:
${INSTALL_SCRIPT} ${EXAMPLEOUTPUT} ${EXAMPLESDIR}/output && \
${INSTALL_SCRIPT} ${EXAMPLEARCHIVE} ${EXAMPLESDIR}/archive
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile
index 5de3253243c5..9f8ac6059e2b 100644
--- a/mail/p5-Mail-SpamAssassin/Makefile
+++ b/mail/p5-Mail-SpamAssassin/Makefile
@@ -62,10 +62,6 @@ USE_OPENSSL= yes
.include <bsd.port.pre.mk>
-.if ${PERL_LEVEL} < 501200
-IGNORE= requires perl version ${USE_PERL5_RUN}. See ${PORTSDIR}/UPDATING, entry 20120311
-.endif
-
.if defined (WITH_SPAMC)
CONFIGURE_ARGS+= BUILD_SPAMC=yes
.else
diff --git a/mail/p5-Net-POP3-SSLWrapper/Makefile b/mail/p5-Net-POP3-SSLWrapper/Makefile
index f8e2cc8725b2..d9a7df191faa 100644
--- a/mail/p5-Net-POP3-SSLWrapper/Makefile
+++ b/mail/p5-Net-POP3-SSLWrapper/Makefile
@@ -21,4 +21,11 @@ PERL_CONFIGURE= yes
MAN3= Net::POP3::SSLWrapper.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/mail/p5-SES/Makefile b/mail/p5-SES/Makefile
index 4dd0fb742f99..efbfc12eb505 100644
--- a/mail/p5-SES/Makefile
+++ b/mail/p5-SES/Makefile
@@ -43,4 +43,10 @@ do-install:
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/SES.pm ${PREFIX}/${SITE_PERL_REL}/
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/math/p5-Math-GSL/Makefile b/math/p5-Math-GSL/Makefile
index 5376900b0881..fdd176984ed4 100644
--- a/math/p5-Math-GSL/Makefile
+++ b/math/p5-Math-GSL/Makefile
@@ -82,4 +82,9 @@ MAN3= Math::GSL.3 \
BROKEN= Does not compile on sparc64
.endif
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-version>=0.77:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0.77:${PORTSDIR}/devel/p5-version
+.endif
+
.include <bsd.port.post.mk>
diff --git a/math/p5-Math-Prime-XS/Makefile b/math/p5-Math-Prime-XS/Makefile
index acd4f5d647e9..a43eadb993a6 100644
--- a/math/p5-Math-Prime-XS/Makefile
+++ b/math/p5-Math-Prime-XS/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN3= Math::Prime::XS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/math/p5-Math-RPN/Makefile b/math/p5-Math-RPN/Makefile
index 4a2daf1a4921..8806d7232dfa 100644
--- a/math/p5-Math-RPN/Makefile
+++ b/math/p5-Math-RPN/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MAN3= Math::RPN.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.50:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/math/p5-bignum/Makefile b/math/p5-bignum/Makefile
index 8411b83082b3..cdde16596711 100644
--- a/math/p5-bignum/Makefile
+++ b/math/p5-bignum/Makefile
@@ -21,4 +21,13 @@ MAN3= bigint.3 \
bignum.3 \
bigrat.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Math-BigInt>=1.880:${PORTSDIR}/math/p5-Math-BigInt \
+ p5-Math-BigRat>=0.21:${PORTSDIR}/math/p5-Math-BigRat
+RUN_DEPENDS+= p5-Math-BigInt>=1.880:${PORTSDIR}/math/p5-Math-BigInt \
+ p5-Math-BigRat>=0.21:${PORTSDIR}/math/p5-Math-BigRat
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Bot-Training-MegaHAL/Makefile b/misc/p5-Bot-Training-MegaHAL/Makefile
index 922bc5d38a75..b1f303780854 100644
--- a/misc/p5-Bot-Training-MegaHAL/Makefile
+++ b/misc/p5-Bot-Training-MegaHAL/Makefile
@@ -22,7 +22,7 @@ BUILD_DEPENDS= p5-File-ShareDir-Install>=0:${PORTSDIR}/devel/p5-File-ShareDir-In
RUN_DEPENDS= p5-Any-Moose>=0:${PORTSDIR}/devel/p5-Any-Moose \
p5-Bot-Training>=0:${PORTSDIR}/misc/p5-Bot-Training
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= Bot::Training::MegaHAL.3
diff --git a/misc/p5-Bot-Training-StarCraft/Makefile b/misc/p5-Bot-Training-StarCraft/Makefile
index 6ce3dd3993de..c466d0c98a63 100644
--- a/misc/p5-Bot-Training-StarCraft/Makefile
+++ b/misc/p5-Bot-Training-StarCraft/Makefile
@@ -22,7 +22,7 @@ BUILD_DEPENDS= p5-File-ShareDir-Install>=0.03:${PORTSDIR}/devel/p5-File-ShareDir
RUN_DEPENDS= p5-Any-Moose>=0:${PORTSDIR}/devel/p5-Any-Moose \
p5-Bot-Training>=0:${PORTSDIR}/misc/p5-Bot-Training
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= Bot::Training::StarCraft.3
diff --git a/misc/p5-Bot-Training/Makefile b/misc/p5-Bot-Training/Makefile
index 8a7e669ad0fa..e41e4a84fc79 100644
--- a/misc/p5-Bot-Training/Makefile
+++ b/misc/p5-Bot-Training/Makefile
@@ -31,7 +31,7 @@ BUILD_DEPENDS= p5-Any-Moose>=0:${PORTSDIR}/devel/p5-Any-Moose \
RUN_DEPENDS:= ${BUILD_DEPENDS}
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10+
MAN1= bot-training.1
diff --git a/misc/p5-Geo-Coder-Bing/Makefile b/misc/p5-Geo-Coder-Bing/Makefile
index 2e587e385c59..1b93fd7b2885 100644
--- a/misc/p5-Geo-Coder-Bing/Makefile
+++ b/misc/p5-Geo-Coder-Bing/Makefile
@@ -29,4 +29,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::Bing.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Geo-Coder-Geocoder-US/Makefile b/misc/p5-Geo-Coder-Geocoder-US/Makefile
index d346e07e8fee..b1fa0dc9c81e 100644
--- a/misc/p5-Geo-Coder-Geocoder-US/Makefile
+++ b/misc/p5-Geo-Coder-Geocoder-US/Makefile
@@ -26,4 +26,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::Geocoder::US.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Geo-Coder-Many/Makefile b/misc/p5-Geo-Coder-Many/Makefile
index 616cbf0c2e26..3289e08e45f8 100644
--- a/misc/p5-Geo-Coder-Many/Makefile
+++ b/misc/p5-Geo-Coder-Many/Makefile
@@ -32,7 +32,7 @@ TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception \
p5-Test-MockObject>=0:${PORTSDIR}/devel/p5-Test-MockObject \
p5-Test-Pod-Coverage>=0:${PORTSDIR}/devel/p5-Test-Pod-Coverage
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= Geo::Coder::Many.3 \
Geo::Coder::Many::Bing.3 \
diff --git a/misc/p5-Geo-Coder-Mapquest/Makefile b/misc/p5-Geo-Coder-Mapquest/Makefile
index 9f6ff0f4453b..59506ea3859c 100644
--- a/misc/p5-Geo-Coder-Mapquest/Makefile
+++ b/misc/p5-Geo-Coder-Mapquest/Makefile
@@ -29,4 +29,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::Mapquest.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Geo-Coder-Multimap/Makefile b/misc/p5-Geo-Coder-Multimap/Makefile
index aebdf47855a0..7411001d274a 100644
--- a/misc/p5-Geo-Coder-Multimap/Makefile
+++ b/misc/p5-Geo-Coder-Multimap/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::Multimap.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Geo-Coder-Navteq/Makefile b/misc/p5-Geo-Coder-Navteq/Makefile
index ce7a39cc08d8..5c5425bdbe5f 100644
--- a/misc/p5-Geo-Coder-Navteq/Makefile
+++ b/misc/p5-Geo-Coder-Navteq/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::Navteq.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Geo-Coder-OSM/Makefile b/misc/p5-Geo-Coder-OSM/Makefile
index 07993aeb43ae..3eab85b1d36d 100644
--- a/misc/p5-Geo-Coder-OSM/Makefile
+++ b/misc/p5-Geo-Coder-OSM/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::OSM.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Geo-Coder-Ovi/Makefile b/misc/p5-Geo-Coder-Ovi/Makefile
index 4172dccb13a7..954a535c4004 100644
--- a/misc/p5-Geo-Coder-Ovi/Makefile
+++ b/misc/p5-Geo-Coder-Ovi/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::Ovi.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Geo-Coder-PlaceFinder/Makefile b/misc/p5-Geo-Coder-PlaceFinder/Makefile
index a9fde871722a..9c7a5252d2b3 100644
--- a/misc/p5-Geo-Coder-PlaceFinder/Makefile
+++ b/misc/p5-Geo-Coder-PlaceFinder/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::PlaceFinder.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/p5-Geo-Coder-TomTom/Makefile b/misc/p5-Geo-Coder-TomTom/Makefile
index bd36e0c9751f..2faca1d6e494 100644
--- a/misc/p5-Geo-Coder-TomTom/Makefile
+++ b/misc/p5-Geo-Coder-TomTom/Makefile
@@ -27,4 +27,10 @@ PERL_CONFIGURE= yes
MAN3= Geo::Coder::TomTom.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.82:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/p5-Audio-M4P/Makefile b/multimedia/p5-Audio-M4P/Makefile
index 9287dfe561ee..1c9b548030fa 100644
--- a/multimedia/p5-Audio-M4P/Makefile
+++ b/multimedia/p5-Audio-M4P/Makefile
@@ -27,4 +27,7 @@ MAN3= Audio::M4P.3 \
Audio::M4P::Decrypt.3 \
Audio::M4P::QuickTime.3
+regression-test: build
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/multimedia/p5-Umph-Prompt/Makefile b/multimedia/p5-Umph-Prompt/Makefile
index 400c70122e18..7fe1de7b6fce 100644
--- a/multimedia/p5-Umph-Prompt/Makefile
+++ b/multimedia/p5-Umph-Prompt/Makefile
@@ -14,7 +14,7 @@ PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= An interactive prompt module for umph and similar programs
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.1+
PROJECTHOST= umph
diff --git a/multimedia/p5-Video-Info/Makefile b/multimedia/p5-Video-Info/Makefile
index a418c9875d47..6eacd396876e 100644
--- a/multimedia/p5-Video-Info/Makefile
+++ b/multimedia/p5-Video-Info/Makefile
@@ -23,4 +23,11 @@ MANCOMPRESSED= no
MAN3= Video::Info.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${PERL_LEVEL} < 500803
+ ${PERL} -pi -e '$$_="" if m{5.008|warnings}' ${WRKSRC}/Makefile.PL ${WRKSRC}/lib/Video/Info.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-im/p5-Net-Async-XMPP/Makefile b/net-im/p5-Net-Async-XMPP/Makefile
index 862c94c77907..779ecf96283e 100644
--- a/net-im/p5-Net-Async-XMPP/Makefile
+++ b/net-im/p5-Net-Async-XMPP/Makefile
@@ -27,4 +27,10 @@ MAN3= Net::Async::XMPP.3 \
Net::Async::XMPP::Protocol.3 \
Net::Async::XMPP::Server.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-im/p5-Net-XMPP/Makefile b/net-im/p5-Net-XMPP/Makefile
index 8a482f28250d..c0bd599cb6c2 100644
--- a/net-im/p5-Net-XMPP/Makefile
+++ b/net-im/p5-Net-XMPP/Makefile
@@ -41,4 +41,14 @@ MAN3= Net::XMPP.3 \
Net::XMPP::Roster.3 \
Net::XMPP::Stanza.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.92:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Module-Build>=0.3603:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-im/p5-Protocol-XMPP/Makefile b/net-im/p5-Protocol-XMPP/Makefile
index eaac747ec206..dbc546f90dcb 100644
--- a/net-im/p5-Protocol-XMPP/Makefile
+++ b/net-im/p5-Protocol-XMPP/Makefile
@@ -54,4 +54,11 @@ MAN3= Protocol::XMPP.3 \
Protocol::XMPP::TextElement.3 \
Protocol::XMPP::User.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Module-Load>=0:${PORTSDIR}/devel/p5-Module-Load \
+ p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-im/p5-SOAP-Transport-JABBER/Makefile b/net-im/p5-SOAP-Transport-JABBER/Makefile
index 204749cf5107..d6eff3a78e8f 100644
--- a/net-im/p5-SOAP-Transport-JABBER/Makefile
+++ b/net-im/p5-SOAP-Transport-JABBER/Makefile
@@ -23,4 +23,10 @@ PERL_CONFIGURE= yes
MAN3= SOAP::Transport::JABBER.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Module-Build>=0.3600:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-mgmt/p5-FusionInventory-Agent/Makefile b/net-mgmt/p5-FusionInventory-Agent/Makefile
index bd2cf43f4d86..1e0d0f1f4133 100644
--- a/net-mgmt/p5-FusionInventory-Agent/Makefile
+++ b/net-mgmt/p5-FusionInventory-Agent/Makefile
@@ -52,4 +52,11 @@ MAN3= FusionInventory::Agent::Network.3 \
FusionInventory::Agent::XML::Query::Inventory.3 \
FusionInventory::Agent::XML::Query::SimpleMessage.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+RUN_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-p2p/p5-Net-BitTorrent/Makefile b/net-p2p/p5-Net-BitTorrent/Makefile
index c3ffc6b8de09..84bad0e06ced 100644
--- a/net-p2p/p5-Net-BitTorrent/Makefile
+++ b/net-p2p/p5-Net-BitTorrent/Makefile
@@ -38,4 +38,14 @@ MAN3= Net::BitTorrent.3 \
Net::BitTorrent::Util.3 \
Net::BitTorrent::Version.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Digest-SHA>=5.45:${PORTSDIR}/security/p5-Digest-SHA \
+ p5-Module-Build>=0.3:${PORTSDIR}/devel/p5-Module-Build \
+ p5-version>=0.74:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-Digest-SHA>=5.45:${PORTSDIR}/security/p5-Digest-SHA \
+ p5-version>=0.74:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-p2p/p5-Net-DirectConnect/Makefile b/net-p2p/p5-Net-DirectConnect/Makefile
index 5eaeb1d04e4a..a2b311a66577 100644
--- a/net-p2p/p5-Net-DirectConnect/Makefile
+++ b/net-p2p/p5-Net-DirectConnect/Makefile
@@ -28,4 +28,11 @@ PERL_CONFIGURE= yes
MAN1= dcget.1 dcshare.1
MAN3= Net::DirectConnect.3 Net::DirectConnect::filelist.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+RUN_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-AnyEvent-RabbitMQ/Makefile b/net/p5-AnyEvent-RabbitMQ/Makefile
index 9978d383e3a4..57e90d12bcaf 100644
--- a/net/p5-AnyEvent-RabbitMQ/Makefile
+++ b/net/p5-AnyEvent-RabbitMQ/Makefile
@@ -31,4 +31,9 @@ PERL_CONFIGURE= yes
MAN3= AnyEvent::RabbitMQ.3 \
AnyEvent::RabbitMQ::Channel.3
+.if defined(MAINTAINER_MODE)
+regression-test: build
+ cd ${WRKSRC} && ${MAKE} test
+.endif
+
.include <bsd.port.mk>
diff --git a/net/p5-AnyEvent-Twitter/Makefile b/net/p5-AnyEvent-Twitter/Makefile
index d053772e59dd..c3d3f4ce720d 100644
--- a/net/p5-AnyEvent-Twitter/Makefile
+++ b/net/p5-AnyEvent-Twitter/Makefile
@@ -26,4 +26,10 @@ PERL_CONFIGURE= yes
MAN3= AnyEvent::Twitter.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-AnyMQ-AMQP/Makefile b/net/p5-AnyMQ-AMQP/Makefile
index 638095017404..9a543d90c22f 100644
--- a/net/p5-AnyMQ-AMQP/Makefile
+++ b/net/p5-AnyMQ-AMQP/Makefile
@@ -28,4 +28,9 @@ PERL_CONFIGURE= yes
MAN3= AnyMQ::AMQP.3
+.if defined(MAINTAINER_MODE)
+regression-test: build
+ cd ${WRKSRC} && ${MAKE} test
+.endif
+
.include <bsd.port.mk>
diff --git a/net/p5-Crypt-DH-GMP/Makefile b/net/p5-Crypt-DH-GMP/Makefile
index dde0570b606a..f30837e8dfbb 100644
--- a/net/p5-Crypt-DH-GMP/Makefile
+++ b/net/p5-Crypt-DH-GMP/Makefile
@@ -28,4 +28,14 @@ MAN3= Crypt::DH::GMP.3 \
post-patch:
${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#g' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Geo-IPfree/Makefile b/net/p5-Geo-IPfree/Makefile
index cc65f609f4f7..06f7bcfbd8fd 100644
--- a/net/p5-Geo-IPfree/Makefile
+++ b/net/p5-Geo-IPfree/Makefile
@@ -18,4 +18,11 @@ PERL_CONFIGURE= yes
MAN3= Geo::IPfree.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS= p5-Memoize>=0:${PORTSDIR}/devel/p5-Memoize
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Google-SAML-Request/Makefile b/net/p5-Google-SAML-Request/Makefile
index 2f95058055ef..aabf3af62390 100644
--- a/net/p5-Google-SAML-Request/Makefile
+++ b/net/p5-Google-SAML-Request/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= yes
MAN3= Google::SAML::Request.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Google-SAML-Response/Makefile b/net/p5-Google-SAML-Response/Makefile
index fb2efa6101b6..71fec533ff53 100644
--- a/net/p5-Google-SAML-Response/Makefile
+++ b/net/p5-Google-SAML-Response/Makefile
@@ -28,4 +28,10 @@ PERL_CONFIGURE= yes
MAN3= Google::SAML::Response.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-Digest-SHA>0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-Amazon-AWSSign/Makefile b/net/p5-Net-Amazon-AWSSign/Makefile
index 4046da54ad2e..08a2da4663f1 100644
--- a/net/p5-Net-Amazon-AWSSign/Makefile
+++ b/net/p5-Net-Amazon-AWSSign/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MAN3= Net::Amazon::AWSSign.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-Amazon-S3/Makefile b/net/p5-Net-Amazon-S3/Makefile
index b387946d7b62..887282450040 100644
--- a/net/p5-Net-Amazon-S3/Makefile
+++ b/net/p5-Net-Amazon-S3/Makefile
@@ -58,4 +58,10 @@ MAN3= Net::Amazon::S3.3 Net::Amazon::S3::Bucket.3 \
Net::Amazon::S3::Request.3 \
Net::Amazon::S3::Request::CreateBucket.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500904
+RUN_DEPENDS+= p5-IO>=1.14:${PORTSDIR}/devel/p5-IO
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-Amazon/Makefile b/net/p5-Net-Amazon/Makefile
index 024a474b87a2..5182644df1f6 100644
--- a/net/p5-Net-Amazon/Makefile
+++ b/net/p5-Net-Amazon/Makefile
@@ -21,10 +21,20 @@ RUN_DEPENDS= ${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \
${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple \
${SITE_PERL}/Log/Log4perl.pm:${PORTSDIR}/devel/p5-Log-Log4perl
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
.include "Makefile.man"
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500805
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+.endif
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-Appliance-Session/Makefile b/net/p5-Net-Appliance-Session/Makefile
index 89a5deb0ef36..e07ebb2e216d 100644
--- a/net/p5-Net-Appliance-Session/Makefile
+++ b/net/p5-Net-Appliance-Session/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= yes
MAN3= Net::Appliance::Session.3 \
Net::Appliance::Session::APIv2.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-CLI-Interact/Makefile b/net/p5-Net-CLI-Interact/Makefile
index 62503264c814..a851f636894a 100644
--- a/net/p5-Net-CLI-Interact/Makefile
+++ b/net/p5-Net-CLI-Interact/Makefile
@@ -42,4 +42,10 @@ MAN3= Net::CLI::Interact.3 \
Net::CLI::Interact::Transport::Serial.3 \
Net::CLI::Interact::Transport::Telnet.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-GrowlClient/Makefile b/net/p5-Net-GrowlClient/Makefile
index 38e1c03879fd..5a6acb014bc1 100644
--- a/net/p5-Net-GrowlClient/Makefile
+++ b/net/p5-Net-GrowlClient/Makefile
@@ -20,4 +20,11 @@ PERL_CONFIGURE= yes
MAN3= Net::GrowlClient.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+BUILD_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-HTTP/Makefile b/net/p5-Net-HTTP/Makefile
index bf5cbcf96468..c4ff5bf7dce3 100644
--- a/net/p5-Net-HTTP/Makefile
+++ b/net/p5-Net-HTTP/Makefile
@@ -29,4 +29,13 @@ MAN3= Net::HTTP.3 \
Net::HTTPS.3 \
Net::HTTP::NB.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Compress-Raw-Zlib>=0:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib \
+ p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+RUN_DEPENDS+= p5-Compress-Raw-Zlib>=0:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib \
+ p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-OAuth/Makefile b/net/p5-Net-OAuth/Makefile
index d21eaff28bbe..d67f12c2383d 100644
--- a/net/p5-Net-OAuth/Makefile
+++ b/net/p5-Net-OAuth/Makefile
@@ -49,4 +49,11 @@ MAN3= Net::OAuth.3 \
Net::OAuth::XauthAccessTokenRequest.3 \
Net::OAuth::YahooAccessTokenRefreshRequest.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Encode>=2.35:${PORTSDIR}/converters/p5-Encode
+RUN_DEPENDS+= p5-Encode>=2.35:${PORTSDIR}/converters/p5-Encode
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-OpenID-Consumer/Makefile b/net/p5-Net-OpenID-Consumer/Makefile
index 2e431e8a9fe8..48a1d64d9a98 100644
--- a/net/p5-Net-OpenID-Consumer/Makefile
+++ b/net/p5-Net-OpenID-Consumer/Makefile
@@ -26,4 +26,16 @@ PERL_CONFIGURE= yes
MAN3= Net::OpenID::Association.3 Net::OpenID::ClaimedIdentity.3 \
Net::OpenID::Consumer.3 Net::OpenID::VerifiedIdentity.3
-.include <bsd.port.mk>
+.if defined(MAINTAINER_MODE)
+regression-test: build
+ cd ${WRKSRC} && ${MAKE} test
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-SAP/Makefile b/net/p5-Net-SAP/Makefile
index ee8434d815c7..d436ad647c57 100644
--- a/net/p5-Net-SAP/Makefile
+++ b/net/p5-Net-SAP/Makefile
@@ -25,4 +25,11 @@ PERL_MODBUILD= YES
MAN1= psapd.1
MAN3= Net::SAP.3 Net::SAP::Packet.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-Todoist/Makefile b/net/p5-Net-Todoist/Makefile
index a9c7234f6952..d3f69ac1cd2d 100644
--- a/net/p5-Net-Todoist/Makefile
+++ b/net/p5-Net-Todoist/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MAN3= Net::Todoist.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.31:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-Twitter/Makefile b/net/p5-Net-Twitter/Makefile
index ddca79c8f7f4..6c564df21547 100644
--- a/net/p5-Net-Twitter/Makefile
+++ b/net/p5-Net-Twitter/Makefile
@@ -59,4 +59,10 @@ MAN3= Net::Twitter.3 Net::Twitter::Search.3 Net::Identica.3 \
Net::Twitter::Role::SimulateCursors.3 \
Net::Twitter::Role::WrapError.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-RPC-XML/Makefile b/net/p5-RPC-XML/Makefile
index 343a88b94983..57ee11524c30 100644
--- a/net/p5-RPC-XML/Makefile
+++ b/net/p5-RPC-XML/Makefile
@@ -34,4 +34,10 @@ MAN3= Apache::RPC::Server.3 \
RPC::XML::Procedure.3 \
RPC::XML::Server.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-S3/Makefile b/net/p5-S3/Makefile
index b7f3d25ab149..ab28b6c26664 100644
--- a/net/p5-S3/Makefile
+++ b/net/p5-S3/Makefile
@@ -31,4 +31,10 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/S3.pm ${PREFIX}/${SITE_PERL_REL}
${INSTALL_SCRIPT} ${WRKSRC}/s3-*.pl ${PREFIX}/bin
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-MIME-Base64>=0:${PORTSDIR}/converters/p5-MIME-Base64
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-SOAP-Lite-060/Makefile b/net/p5-SOAP-Lite-060/Makefile
index ee4fa09a75bb..9f2934e38f8e 100644
--- a/net/p5-SOAP-Lite-060/Makefile
+++ b/net/p5-SOAP-Lite-060/Makefile
@@ -53,8 +53,14 @@ MAN3= Apache::SOAP.3 \
XMLRPC::Transport::POP3.3 \
XMLRPC::Transport::TCP.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
post-patch:
@${REINPLACE_CMD} -i '' -e 's|^#!.*perl|#!${PERL}|' \
${WRKSRC}/bin/* ${WRKSRC}/t/*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net/p5-SOAP-Lite/Makefile b/net/p5-SOAP-Lite/Makefile
index f87e6e3b5cbc..267e786515cd 100644
--- a/net/p5-SOAP-Lite/Makefile
+++ b/net/p5-SOAP-Lite/Makefile
@@ -62,8 +62,14 @@ MAN3= Apache::SOAP.3 \
XMLRPC::Transport::POP3.3 \
XMLRPC::Transport::TCP.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
post-patch:
@${REINPLACE_CMD} -i '' -e 's|^#!.*perl|#!${PERL}|' \
${WRKSRC}/bin/* ${WRKSRC}/t/*.t ${WRKSRC}/t/*.pl
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net/p5-Socket-GetAddrInfo/Makefile b/net/p5-Socket-GetAddrInfo/Makefile
index 9b919b78a44e..19119929d706 100644
--- a/net/p5-Socket-GetAddrInfo/Makefile
+++ b/net/p5-Socket-GetAddrInfo/Makefile
@@ -12,7 +12,7 @@ MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sahil@FreeBSD.org
-COMMENT= RFC 2553 getaddrinfo and getnameinfo functions
+COMMENT= RFC 2553's getaddrinfo and getnameinfo functions
BUILD_DEPENDS= p5-ExtUtils-CChecker>=0.06:${PORTSDIR}/devel/p5-ExtUtils-CChecker
@@ -27,6 +27,10 @@ PERL_CONFIGURE= yes
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Module-Build>=0:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
.if ${PERL_LEVEL} < 501400
PLIST_SUB+= OLD_PERL="" NEW_PERL="@comment "
.else
diff --git a/net/p5-Socket-Multicast6/Makefile b/net/p5-Socket-Multicast6/Makefile
index 8a05526219eb..a3b4f825a5bc 100644
--- a/net/p5-Socket-Multicast6/Makefile
+++ b/net/p5-Socket-Multicast6/Makefile
@@ -20,4 +20,10 @@ PERL_MODBUILD= yes
MAN3= Socket::Multicast6.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Socket/Makefile b/net/p5-Socket/Makefile
index 5d713b0fde8a..60b2cff68992 100644
--- a/net/p5-Socket/Makefile
+++ b/net/p5-Socket/Makefile
@@ -21,6 +21,10 @@ MAN3= Socket.3
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-ExtUtils-Constant>=0.23:${PORTSDIR}/devel/p5-ExtUtils-Constant
.endif
diff --git a/net/p5-URI-Query/Makefile b/net/p5-URI-Query/Makefile
index b1176c741e22..2456c861f3df 100644
--- a/net/p5-URI-Query/Makefile
+++ b/net/p5-URI-Query/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MAN3= URI::Query.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/ports-mgmt/p5-App-Pm2Port/Makefile b/ports-mgmt/p5-App-Pm2Port/Makefile
index 3eb3aa97d72b..97f46691fff9 100644
--- a/ports-mgmt/p5-App-Pm2Port/Makefile
+++ b/ports-mgmt/p5-App-Pm2Port/Makefile
@@ -21,7 +21,7 @@ BUILD_DEPENDS= p5-CPANPLUS>=0:${PORTSDIR}/devel/p5-CPANPLUS \
subversion>=0:${PORTSDIR}/devel/subversion
RUN_DEPENDS:= ${BUILD_DEPENDS}
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN1= pm2port.1
MAN3= App::Pm2Port.3
diff --git a/print/p5-PostScript-PPD/Makefile b/print/p5-PostScript-PPD/Makefile
index 8fe737e60578..7ef0c4755bfb 100644
--- a/print/p5-PostScript-PPD/Makefile
+++ b/print/p5-PostScript-PPD/Makefile
@@ -18,4 +18,11 @@ PERL_CONFIGURE= yes
MAN3= PostScript::PPD.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-IO-Compress>=2:${PORTSDIR}/archivers/p5-IO-Compress
+RUN_DEPENDS+= p5-IO-Compress>=2:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/print/p5-Text-PDF/Makefile b/print/p5-Text-PDF/Makefile
index c5abd0999c0a..57cc0c512910 100644
--- a/print/p5-Text-PDF/Makefile
+++ b/print/p5-Text-PDF/Makefile
@@ -26,6 +26,13 @@ MAN3= Text::PDF::Pages.3 Text::PDF::Page.3 Text::PDF::Name.3 \
Text::PDF::Utils.3 Text::PDF::TTFont.3 Text::PDF::Number.3 \
Text::PDF::Null.3 Text::PDF.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
post-patch:
@${RM} -f ${WRKSRC}/pm_to_blib
@@ -33,4 +40,4 @@ post-install:
@${MKDIR} ${SITE_PERL}/Text/PDF/examples
@${INSTALL_DATA} ${WRKSRC}/examples/* ${SITE_PERL}/Text/PDF/examples
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/security/p5-Authen-Bitcard/Makefile b/security/p5-Authen-Bitcard/Makefile
index 169135294f27..491014a7daf0 100644
--- a/security/p5-Authen-Bitcard/Makefile
+++ b/security/p5-Authen-Bitcard/Makefile
@@ -23,4 +23,10 @@ PERL_CONFIGURE= yes
MAN3= Authen::Bitcard.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Authen-Simple/Makefile b/security/p5-Authen-Simple/Makefile
index 34ee94c69ada..45a536cf442d 100644
--- a/security/p5-Authen-Simple/Makefile
+++ b/security/p5-Authen-Simple/Makefile
@@ -29,4 +29,10 @@ MAN3= Authen::Simple.3 \
PERL_MODBUILD= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Crypt-OpenPGP/Makefile b/security/p5-Crypt-OpenPGP/Makefile
index 4452bf86ccfc..7c9f16b20bf3 100644
--- a/security/p5-Crypt-OpenPGP/Makefile
+++ b/security/p5-Crypt-OpenPGP/Makefile
@@ -48,7 +48,13 @@ MAN3= Crypt::OpenPGP::ErrorHandler.3 Crypt::OpenPGP::Key.3 \
Crypt::OpenPGP::Trust.3 Crypt::OpenPGP::Certificate.3 \
Crypt::OpenPGP::Message.3 Crypt::OpenPGP::KeyServer.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
post-patch:
@${RM} -f ${WRKSRC}/lib/Crypt/OpenPGP/Ciphertext.pm.orig
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/security/p5-Crypt-OpenSSL-CA/Makefile b/security/p5-Crypt-OpenSSL-CA/Makefile
index 5b8d9ba69a7d..528cfcd182af 100644
--- a/security/p5-Crypt-OpenSSL-CA/Makefile
+++ b/security/p5-Crypt-OpenSSL-CA/Makefile
@@ -32,4 +32,10 @@ MAN3= Crypt::OpenSSL::CA.3 \
Crypt::OpenSSL::CA::Inline::C.3 \
Crypt::OpenSSL::CA::Resources.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Module-Build>=0.2900:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Crypt-OpenSSL-RSA/Makefile b/security/p5-Crypt-OpenSSL-RSA/Makefile
index 58218195c0c6..e5aaa8fe54f7 100644
--- a/security/p5-Crypt-OpenSSL-RSA/Makefile
+++ b/security/p5-Crypt-OpenSSL-RSA/Makefile
@@ -25,4 +25,7 @@ MAKE_ARGS= PASTHRU_INC=-I${OPENSSLINC}
MAN3= Crypt::OpenSSL::RSA.3
+regression-test: build
+ cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test
+
.include <bsd.port.mk>
diff --git a/security/p5-Crypt-PBKDF2/Makefile b/security/p5-Crypt-PBKDF2/Makefile
index b407373ab31e..6c6ba5867ae0 100644
--- a/security/p5-Crypt-PBKDF2/Makefile
+++ b/security/p5-Crypt-PBKDF2/Makefile
@@ -30,4 +30,14 @@ MAN3= Crypt::PBKDF2.3 \
Crypt::PBKDF2::Hash::HMACSHA1.3 \
Crypt::PBKDF2::Hash::HMACSHA2.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-Digest>=1.16:${PORTSDIR}/security/p5-Digest
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Crypt-SaltedHash/Makefile b/security/p5-Crypt-SaltedHash/Makefile
index ac52bab559be..44fceb69bd83 100644
--- a/security/p5-Crypt-SaltedHash/Makefile
+++ b/security/p5-Crypt-SaltedHash/Makefile
@@ -17,4 +17,16 @@ PERL_MODBUILD= yes
MAN3= Crypt::SaltedHash.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest>=1.16:${PORTSDIR}/security/p5-Digest
+BUILD_DEPENDS+= p5-Digest>=1.16:${PORTSDIR}/security/p5-Digest
+.endif
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+BUILD_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Crypt-Simple/Makefile b/security/p5-Crypt-Simple/Makefile
index be93f32bd2e8..e409e9dbe8f4 100644
--- a/security/p5-Crypt-Simple/Makefile
+++ b/security/p5-Crypt-Simple/Makefile
@@ -24,4 +24,14 @@ PERL_CONFIGURE= yes
MAN3= Crypt::Simple.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Data-Entropy/Makefile b/security/p5-Data-Entropy/Makefile
index 247109281570..ab87abeea908 100644
--- a/security/p5-Data-Entropy/Makefile
+++ b/security/p5-Data-Entropy/Makefile
@@ -29,4 +29,10 @@ MAN3= Data::Entropy.3 \
Data::Entropy::RawSource::RandomnumbersInfo.3 \
Data::Entropy::Source.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Digest-MD5/Makefile b/security/p5-Digest-MD5/Makefile
index 8dcf77ff359f..e21ae3184e58 100644
--- a/security/p5-Digest-MD5/Makefile
+++ b/security/p5-Digest-MD5/Makefile
@@ -18,4 +18,10 @@ PERL_CONFIGURE= yes
MAN3= Digest::MD5.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500803
+RUN_DEPENDS+= ${SITE_PERL}/Digest/base.pm:${PORTSDIR}/security/p5-Digest
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Digest-SHA-PurePerl/Makefile b/security/p5-Digest-SHA-PurePerl/Makefile
index 9fd7ef8a8a25..6f65e9d83975 100644
--- a/security/p5-Digest-SHA-PurePerl/Makefile
+++ b/security/p5-Digest-SHA-PurePerl/Makefile
@@ -16,8 +16,23 @@ PERL_CONFIGURE= yes
MAN3= Digest::SHA::PurePerl.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500803
+RUN_DEPENDS+= ${SITE_PERL}/Digest/base.pm:${PORTSDIR}/security/p5-Digest
+.endif
+
+.if ${PERL_LEVEL} >= 501000
+PLIST_SUB+= EXE_FILES="@comment "
+.else
+PLIST_SUB+= EXE_FILES=""
+MAN1= shasum.1
+.endif
+
post-patch:
+.if ${PERL_LEVEL} >= 501000
@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
+.endif
.if !defined(NOPORTEXAMPLES)
post-install:
@@ -25,4 +40,4 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/examples/dups ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/security/p5-Digest-SHA-PurePerl/pkg-plist b/security/p5-Digest-SHA-PurePerl/pkg-plist
index 66867ad751c6..dc5712fcf580 100644
--- a/security/p5-Digest-SHA-PurePerl/pkg-plist
+++ b/security/p5-Digest-SHA-PurePerl/pkg-plist
@@ -1,3 +1,4 @@
+%%EXE_FILES%%bin/shasum
%%SITE_PERL%%/Digest/SHA/PurePerl.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/PurePerl/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/PurePerl/
diff --git a/security/p5-Digest-SHA/Makefile b/security/p5-Digest-SHA/Makefile
index bc23fc149873..4397e4817dbb 100644
--- a/security/p5-Digest-SHA/Makefile
+++ b/security/p5-Digest-SHA/Makefile
@@ -21,7 +21,18 @@ PERL_CONFIGURE= yes
MAN3= Digest::SHA.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 501000
+PLIST_SUB+= EXE_FILES="@comment "
+.else
+PLIST_SUB+= EXE_FILES=""
+MAN1= shasum.1
+.endif
+
post-patch:
+.if ${PERL_LEVEL} >= 501000
@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/security/p5-Digest-SHA/pkg-plist b/security/p5-Digest-SHA/pkg-plist
index 33a87d78e818..7b40336aaa75 100644
--- a/security/p5-Digest-SHA/pkg-plist
+++ b/security/p5-Digest-SHA/pkg-plist
@@ -1,3 +1,4 @@
+%%EXE_FILES%%bin/shasum
%%SITE_PERL%%/%%PERL_ARCH%%/Digest/SHA.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Digest/SHA/SHA.bs
diff --git a/security/p5-Digest-SHA1/Makefile b/security/p5-Digest-SHA1/Makefile
index bc49602ad0a8..00b9670922e3 100644
--- a/security/p5-Digest-SHA1/Makefile
+++ b/security/p5-Digest-SHA1/Makefile
@@ -18,4 +18,11 @@ PERL_CONFIGURE= yes
MAN3= Digest::SHA1.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500803
+BUILD_DEPENDS+= p5-Digest>=1.00:${PORTSDIR}/security/p5-Digest
+RUN_DEPENDS+= p5-Digest>=1.00:${PORTSDIR}/security/p5-Digest
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-IO-Socket-SSL/Makefile b/security/p5-IO-Socket-SSL/Makefile
index 771fbefcb7cb..ebddb88760a2 100644
--- a/security/p5-IO-Socket-SSL/Makefile
+++ b/security/p5-IO-Socket-SSL/Makefile
@@ -41,4 +41,7 @@ RUN_DEPENDS+= p5-Net-LibIDN>=0:${PORTSDIR}/dns/p5-Net-LibIDN
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6
.endif
+regression-test:
+ @(cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} && ${MAKE} test)
+
.include <bsd.port.mk>
diff --git a/security/p5-Module-Signature/Makefile b/security/p5-Module-Signature/Makefile
index 54cb2525ea6e..cb3759a7d125 100644
--- a/security/p5-Module-Signature/Makefile
+++ b/security/p5-Module-Signature/Makefile
@@ -25,4 +25,11 @@ PERL_CONFIGURE= yes
MAN1= cpansign.1
MAN3= Module::Signature.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/p5-Net-OpenID-Common/Makefile b/security/p5-Net-OpenID-Common/Makefile
index 1bd582f8f36a..9cc38356f3b1 100644
--- a/security/p5-Net-OpenID-Common/Makefile
+++ b/security/p5-Net-OpenID-Common/Makefile
@@ -38,4 +38,9 @@ MAN3= Net::OpenID::Common.3 \
Net::OpenID::Yadis.3 \
Net::OpenID::Yadis::Service.3
+.if defined(MAINTAINER_MODE)
+regression-test: build
+ cd ${WRKSRC} && ${MAKE} test
+.endif
+
.include <bsd.port.mk>
diff --git a/security/p5-Net-SinFP/Makefile b/security/p5-Net-SinFP/Makefile
index fed38abb1728..8984e98cd7fa 100644
--- a/security/p5-Net-SinFP/Makefile
+++ b/security/p5-Net-SinFP/Makefile
@@ -65,6 +65,8 @@ MAN3= Net::SinFP.3 \
post-patch:
@${REINPLACE_CMD} -e 's/.*EXE_FILES.*//' ${WRKSRC}/${CONFIGURE_SCRIPT}
+regression-test:
+ @(cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} && ${MAKE} test)
.endif
ONLY_FOR_ARCHS= i386 amd64 alpha
diff --git a/security/p5-POE-Component-SSLify/Makefile b/security/p5-POE-Component-SSLify/Makefile
index a7d9c0a5c85b..b1352e2d81f2 100644
--- a/security/p5-POE-Component-SSLify/Makefile
+++ b/security/p5-POE-Component-SSLify/Makefile
@@ -28,4 +28,16 @@ MAN3= POE::Component::SSLify.3 \
POE::Component::SSLify::ClientHandle.3 \
POE::Component::SSLify::ServerHandle.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500809
+BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.31:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+RUN_DEPENDS+= p5-ExtUtils-MakeMaker>=6.31:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-IO>=1.28:${PORTSDIR}/devel/p5-IO
+RUN_DEPENDS+= p5-IO>=1.28:${PORTSDIR}/devel/p5-IO
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/shells/p5-Bash-Completion/Makefile b/shells/p5-Bash-Completion/Makefile
index bfcbd9a47cd1..74ced6e17009 100644
--- a/shells/p5-Bash-Completion/Makefile
+++ b/shells/p5-Bash-Completion/Makefile
@@ -36,6 +36,10 @@ MAN3= App::BashComplete.3 \
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+= p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
.endif
diff --git a/sysutils/p5-Brackup/Makefile b/sysutils/p5-Brackup/Makefile
index 8f8ef18872b7..750742a483ab 100644
--- a/sysutils/p5-Brackup/Makefile
+++ b/sysutils/p5-Brackup/Makefile
@@ -54,4 +54,14 @@ MAN3= Brackup.3 \
Brackup::Target::Riak.3 \
Brackup::Target::Sftp.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-File-Temp>=0.17:${PORTSDIR}/devel/p5-File-Temp
+.endif
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-ExtUtils-Manifest>=1.52:${PORTSDIR}/devel/p5-ExtUtils-Manifest
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/p5-MogileFS-Utils/Makefile b/sysutils/p5-MogileFS-Utils/Makefile
index 19709acbbd50..48b3b1fe58b4 100644
--- a/sysutils/p5-MogileFS-Utils/Makefile
+++ b/sysutils/p5-MogileFS-Utils/Makefile
@@ -17,7 +17,8 @@ COMMENT= MogileFS tools
BUILD_DEPENDS= p5-MogileFS-Client>=1.14:${PORTSDIR}/sysutils/p5-MogileFS-Client \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+RUN_DEPENDS= p5-MogileFS-Client>=1.14:${PORTSDIR}/sysutils/p5-MogileFS-Client \
+ p5-libwww>=0:${PORTSDIR}/www/p5-libwww
PERL_CONFIGURE= yes
@@ -34,7 +35,13 @@ MAN1= mogadm.1 \
mogupload.1
MAN3= MogileFS::Utils.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/NAME/ s|MogileFS-Utils|MogileFS::Utils|' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/sysutils/p5-Monitor-Simple/Makefile b/sysutils/p5-Monitor-Simple/Makefile
index 2878ea816456..44cab802662f 100644
--- a/sysutils/p5-Monitor-Simple/Makefile
+++ b/sysutils/p5-Monitor-Simple/Makefile
@@ -38,4 +38,11 @@ MAN3= Monitor::Simple.3 \
Monitor::Simple::UserAgent.3 \
Monitor::Simple::Utils.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Getopt-Long>=2.38:${PORTSDIR}/devel/p5-Getopt-Long
+RUN_DEPENDS+= p5-Getopt-Long>=2.38:${PORTSDIR}/devel/p5-Getopt-Long
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/p5-arclog/Makefile b/sysutils/p5-arclog/Makefile
index 41ecdf6f630c..324ec87f1f1e 100644
--- a/sysutils/p5-arclog/Makefile
+++ b/sysutils/p5-arclog/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \
p5-Compress-Bzip2>=0:${PORTSDIR}/archivers/p5-Compress-Bzip2 \
p5-File-MMagic>=0:${PORTSDIR}/devel/p5-File-MMagic \
p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN1= arclog.1
@@ -29,4 +29,10 @@ PLIST_FILES= bin/arclog \
%%SITE_PERL%%/%%PERL_ARCH%%/auto/arclog/.packlist
PLIST_DIRS= %%SITE_PERL%%/%%PERL_ARCH%%/auto/arclog
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/p5-reslog/Makefile b/sysutils/p5-reslog/Makefile
index 362ce03faf00..18d922e207dd 100644
--- a/sysutils/p5-reslog/Makefile
+++ b/sysutils/p5-reslog/Makefile
@@ -19,7 +19,7 @@ COMMENT= Reverse-resolve IP in Apache log files
RUN_DEPENDS= p5-Compress-Bzip2>=0:${PORTSDIR}/archivers/p5-Compress-Bzip2 \
p5-File-MMagic>=0:${PORTSDIR}/devel/p5-File-MMagic \
p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN1= reslog.1
@@ -28,4 +28,10 @@ PLIST_FILES= bin/reslog \
%%SITE_PERL%%/%%PERL_ARCH%%/auto/reslog/.packlist
PLIST_DIRS= %%SITE_PERL%%/%%PERL_ARCH%%/auto/reslog
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-CSS-Minifier-XS/Makefile b/textproc/p5-CSS-Minifier-XS/Makefile
index 24052f210a94..f82eb69cb6b3 100644
--- a/textproc/p5-CSS-Minifier-XS/Makefile
+++ b/textproc/p5-CSS-Minifier-XS/Makefile
@@ -18,4 +18,10 @@ PERL_CONFIGURE= yes
MAN3= CSS::Minifier::XS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Module-Build>=0.3500:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Excel-Template/Makefile b/textproc/p5-Excel-Template/Makefile
index 915d1a73275d..ddd4a90fdd4a 100644
--- a/textproc/p5-Excel-Template/Makefile
+++ b/textproc/p5-Excel-Template/Makefile
@@ -56,4 +56,11 @@ MAN3= Excel::Template.3 \
Excel::Template::Iterator.3 \
Excel::Template::TextObject.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Unicode/String.pm:${PORTSDIR}/converters/p5-Unicode-String
+CONFIGURE_ARGS+= USE_UNICODE=1
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Geo-Parse-OSM/Makefile b/textproc/p5-Geo-Parse-OSM/Makefile
index c6fd4adf45e8..d33c294d6e95 100644
--- a/textproc/p5-Geo-Parse-OSM/Makefile
+++ b/textproc/p5-Geo-Parse-OSM/Makefile
@@ -28,4 +28,11 @@ MAN3= Geo::Parse::OSM.3 \
Geo::Parse::OSM::Multipass.3 \
Geo::Parse::OSM::Singlepass.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-HTML-Format/Makefile b/textproc/p5-HTML-Format/Makefile
index adae056f7244..9a6e3ef1752b 100644
--- a/textproc/p5-HTML-Format/Makefile
+++ b/textproc/p5-HTML-Format/Makefile
@@ -20,7 +20,8 @@ LICENSE_COMB= dual
BUILD_DEPENDS= p5-Font-AFM>=0:${PORTSDIR}/x11-fonts/p5-Font-AFM \
p5-HTML-Tree>=3.15:${PORTSDIR}/www/p5-HTML-Tree
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+RUN_DEPENDS= p5-Font-AFM>=0:${PORTSDIR}/x11-fonts/p5-Font-AFM \
+ p5-HTML-Tree>=3.15:${PORTSDIR}/www/p5-HTML-Tree
TEST_DEPENDS= p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp
PERL_MODBUILD= yes
diff --git a/textproc/p5-HTML-HTML5-Entities/Makefile b/textproc/p5-HTML-HTML5-Entities/Makefile
index 88fd25ac87f2..7ba366603dd8 100644
--- a/textproc/p5-HTML-HTML5-Entities/Makefile
+++ b/textproc/p5-HTML-HTML5-Entities/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= YES
MAN3= HTML::HTML5::Entities.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Hailo/Makefile b/textproc/p5-Hailo/Makefile
index f104786c7b5b..319c291ab206 100644
--- a/textproc/p5-Hailo/Makefile
+++ b/textproc/p5-Hailo/Makefile
@@ -45,7 +45,7 @@ TEST_DEPENDS= p5-Test-Exception>=0.29:${PORTSDIR}/devel/p5-Test-Exception \
p5-Test-Script-Run>=0.04:${PORTSDIR}/devel/p5-Test-Script-Run \
p5-Test-Synopsis>=0.06:${PORTSDIR}/devel/p5-Test-Synopsis
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN1= hailo.1
diff --git a/textproc/p5-JavaScript-Minifier-XS/Makefile b/textproc/p5-JavaScript-Minifier-XS/Makefile
index 9955782c6d6b..94647bbab927 100644
--- a/textproc/p5-JavaScript-Minifier-XS/Makefile
+++ b/textproc/p5-JavaScript-Minifier-XS/Makefile
@@ -18,4 +18,10 @@ PERL_CONFIGURE= yes
MAN3= JavaScript::Minifier::XS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Module-Build>=0.3500:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-KinoSearch/Makefile b/textproc/p5-KinoSearch/Makefile
index 9dd6c21770d4..05d2209f65cc 100644
--- a/textproc/p5-KinoSearch/Makefile
+++ b/textproc/p5-KinoSearch/Makefile
@@ -114,4 +114,11 @@ MAN3= KinoSearch.3 \
KinoSearch::Util::ToolSet.3 \
KinoSearch::Util::VerifyArgs.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Lingua-EN-NamedEntity/Makefile b/textproc/p5-Lingua-EN-NamedEntity/Makefile
index ec56951e462c..798d64f03c87 100644
--- a/textproc/p5-Lingua-EN-NamedEntity/Makefile
+++ b/textproc/p5-Lingua-EN-NamedEntity/Makefile
@@ -17,10 +17,16 @@ COMMENT= Basic Named Entity Extraction algorithm
RUN_DEPENDS= ${SITE_PERL}/Lingua/Stem/En.pm:${PORTSDIR}/textproc/p5-Lingua-Stem \
${SITE_PERL}/LWP/Simple.pm:${PORTSDIR}/www/p5-libwww
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Lingua::EN::NamedEntity.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Marpa-HTML/Makefile b/textproc/p5-Marpa-HTML/Makefile
index 801b9cbd47f1..7b8763fcc77d 100644
--- a/textproc/p5-Marpa-HTML/Makefile
+++ b/textproc/p5-Marpa-HTML/Makefile
@@ -19,16 +19,26 @@ COMMENT= High-level HTML Parser
BUILD_DEPENDS= p5-HTML-Parser>=3.64:${PORTSDIR}/www/p5-HTML-Parser \
p5-Marpa-PP>=0.012:${PORTSDIR}/lang/p5-Marpa-PP \
p5-Marpa-XS>=0.026:${PORTSDIR}/lang/p5-Marpa-XS
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+RUN_DEPENDS= p5-HTML-Parser>=3.64:${PORTSDIR}/www/p5-HTML-Parser \
+ p5-Marpa-PP>=0.012:${PORTSDIR}/lang/p5-Marpa-PP \
+ p5-Marpa-XS>=0.026:${PORTSDIR}/lang/p5-Marpa-XS
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN1= html_fmt.1 \
html_score.1
MAN3= Marpa::HTML.3 \
Marpa::HTML::Support.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Data-Dumper>=2.125:${PORTSDIR}/devel/p5-Data-Dumper
+RUN_DEPENDS+= p5-Data-Dumper>=2.125:${PORTSDIR}/devel/p5-Data-Dumper
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|lib/Marpa/Support.pod|lib/Marpa/HTML/Support.pod|' ${WRKSRC}/Build.PL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-PDF-API2/Makefile b/textproc/p5-PDF-API2/Makefile
index 36cdd108da8a..071aa2c201f0 100644
--- a/textproc/p5-PDF-API2/Makefile
+++ b/textproc/p5-PDF-API2/Makefile
@@ -62,4 +62,11 @@ MAN3= PDF::API2.3 \
PDF::API2::Resource::XObject::Image::TIFF.3 \
PDF::API2::Util.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-PPI/Makefile b/textproc/p5-PPI/Makefile
index f10371bd19f1..a1856bf69ca3 100644
--- a/textproc/p5-PPI/Makefile
+++ b/textproc/p5-PPI/Makefile
@@ -121,4 +121,11 @@ MAN3= PPI.3 \
PPI::Transform.3 \
PPI::Transform::UpdateCopyright.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.20:${PORTSDIR}/lang/p5-Scalar-List-Utils
+RUN_DEPENDS+= p5-Scalar-List-Utils>=1.20:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-PPIx-Regexp/Makefile b/textproc/p5-PPIx-Regexp/Makefile
index 706de99cbd38..c541adaab4c1 100644
--- a/textproc/p5-PPIx-Regexp/Makefile
+++ b/textproc/p5-PPIx-Regexp/Makefile
@@ -81,4 +81,10 @@ MAN3= PPIx::Regexp.3 \
PPIx::Regexp::Tokenizer.3 \
PPIx::Regexp::Util.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Perl-MinimumVersion/Makefile b/textproc/p5-Perl-MinimumVersion/Makefile
index 450c2d8c4b32..5713092124d7 100644
--- a/textproc/p5-Perl-MinimumVersion/Makefile
+++ b/textproc/p5-Perl-MinimumVersion/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= p5-File-Find-Rule>=0.32:${PORTSDIR}/devel/p5-File-Find-Rule \
p5-Perl-Critic>=1.10.4:${PORTSDIR}/textproc/p5-Perl-Critic \
p5-Params-Util>=0.25:${PORTSDIR}/devel/p5-Params-Util \
p5-version>=0.76:${PORTSDIR}/devel/p5-version
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
@@ -30,4 +30,8 @@ MAN3= Perl::MinimumVersion.3
post-patch:
@${PERL} -pi -e '$$_="" if m/Test::/' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-Scalar-List-Utils>=1.20:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Pod-POM/Makefile b/textproc/p5-Pod-POM/Makefile
index 27815d0bfc45..7b13b2e79c62 100644
--- a/textproc/p5-Pod-POM/Makefile
+++ b/textproc/p5-Pod-POM/Makefile
@@ -44,4 +44,11 @@ MAN3= Pod::POM.3 \
Pod::POM::View::Pod.3 \
Pod::POM::View::Text.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Pod-ProjectDocs/Makefile b/textproc/p5-Pod-ProjectDocs/Makefile
index 4c3872f3afc3..5f51dff467a9 100644
--- a/textproc/p5-Pod-ProjectDocs/Makefile
+++ b/textproc/p5-Pod-ProjectDocs/Makefile
@@ -32,4 +32,11 @@ PERL_CONFIGURE= yes
MAN1= pod2projdocs.1
MAN3= Pod::ProjectDocs.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500808
+BUILD_DEPENDS+= p5-Pod-Parser>=1.32:${PORTSDIR}/textproc/p5-Pod-Parser
+RUN_DEPENDS+= p5-Pod-Parser>=1.32:${PORTSDIR}/textproc/p5-Pod-Parser
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Pod-Simple/Makefile b/textproc/p5-Pod-Simple/Makefile
index 0ef96247f1f6..565c181943a4 100644
--- a/textproc/p5-Pod-Simple/Makefile
+++ b/textproc/p5-Pod-Simple/Makefile
@@ -44,4 +44,11 @@ MAN3= Pod::Simple.3 \
Pod::Simple::XHTML.3 \
Pod::Simple::XMLOutStream.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS= p5-Pod-Escapes>=1.04:${PORTSDIR}/textproc/p5-Pod-Escapes
+BUILD_DEPENDS= p5-Pod-Escapes>=1.04:${PORTSDIR}/textproc/p5-Pod-Escapes
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Pod-Strip/Makefile b/textproc/p5-Pod-Strip/Makefile
index 60f66ea3e7a4..d2bd1399c56f 100644
--- a/textproc/p5-Pod-Strip/Makefile
+++ b/textproc/p5-Pod-Strip/Makefile
@@ -20,4 +20,11 @@ PERL_MODBUILD= yes
MAN3= Pod::Strip.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-Pod-Simple>=3.00:${PORTSDIR}/textproc/p5-Pod-Simple
+BUILD_DEPENDS+= ${RUN_DEPENDS}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Pod-Tree/Makefile b/textproc/p5-Pod-Tree/Makefile
index 66838ed82e41..a145acba97c1 100644
--- a/textproc/p5-Pod-Tree/Makefile
+++ b/textproc/p5-Pod-Tree/Makefile
@@ -18,7 +18,7 @@ COMMENT= Create a static syntax tree for a POD
RUN_DEPENDS= p5-HTML-Stream>=1.49:${PORTSDIR}/www/p5-HTML-Stream \
p5-IO-String>=1:${PORTSDIR}/devel/p5-IO-String \
p5-Text-Template>=1:${PORTSDIR}/textproc/p5-Text-Template
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
@@ -41,4 +41,10 @@ post-patch:
${REINPLACE_CMD} -e '/pod2html/d' ${WRKSRC}/MANIFEST
${RM} ${WRKSRC}/t/pod2html.t
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-Pod-Escapes>=1.02:${PORTSDIR}/textproc/p5-Pod-Escapes
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-String-ToIdentifier-EN/Makefile b/textproc/p5-String-ToIdentifier-EN/Makefile
index 7b0401912502..3b5ecb76d7b0 100644
--- a/textproc/p5-String-ToIdentifier-EN/Makefile
+++ b/textproc/p5-String-ToIdentifier-EN/Makefile
@@ -17,7 +17,10 @@ COMMENT= Convert Strings to English Program Identifiers
BUILD_DEPENDS= p5-Lingua-EN-Inflect-Phrase>=0.07:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect-Phrase \
p5-Text-Unidecode>=0.04:${PORTSDIR}/converters/p5-Text-Unidecode \
p5-namespace-clean>=0.20:${PORTSDIR}/devel/p5-namespace-clean
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+RUN_DEPENDS= p5-Lingua-EN-Inflect-Phrase>=0.07:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect-Phrase \
+ p5-Text-Unidecode>=0.04:${PORTSDIR}/converters/p5-Text-Unidecode \
+ p5-namespace-clean>=0.20:${PORTSDIR}/devel/p5-namespace-clean
+
TEST_DEPENDS= p5-Test-Pod>=1.14:${PORTSDIR}/devel/p5-Test-Pod \
p5-Test-Pod-Coverage>=1.04:${PORTSDIR}/devel/p5-Test-Pod-Coverage
@@ -26,4 +29,10 @@ PERL_CONFIGURE= yes
MAN3= String::ToIdentifier::EN.3 \
String::ToIdentifier::EN::Unicode.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.92:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Template-Plugin-Filter-Minify-CSS-XS/Makefile b/textproc/p5-Template-Plugin-Filter-Minify-CSS-XS/Makefile
index 83fcced7f47a..80ac6af542c1 100644
--- a/textproc/p5-Template-Plugin-Filter-Minify-CSS-XS/Makefile
+++ b/textproc/p5-Template-Plugin-Filter-Minify-CSS-XS/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= Template::Plugin::Filter::Minify::CSS::XS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500808
+BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.30:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Template-Plugin-Filter-Minify-CSS/Makefile b/textproc/p5-Template-Plugin-Filter-Minify-CSS/Makefile
index 512af0950b60..80804ff9b68e 100644
--- a/textproc/p5-Template-Plugin-Filter-Minify-CSS/Makefile
+++ b/textproc/p5-Template-Plugin-Filter-Minify-CSS/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= Template::Plugin::Filter::Minify::CSS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500808
+BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.30:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Template-Plugin-Filter-Minify-JavaScript-XS/Makefile b/textproc/p5-Template-Plugin-Filter-Minify-JavaScript-XS/Makefile
index 68801c95521b..61c91194909f 100644
--- a/textproc/p5-Template-Plugin-Filter-Minify-JavaScript-XS/Makefile
+++ b/textproc/p5-Template-Plugin-Filter-Minify-JavaScript-XS/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= Template::Plugin::Filter::Minify::JavaScript::XS.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500808
+BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.30:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Template-Plugin-Filter-Minify-JavaScript/Makefile b/textproc/p5-Template-Plugin-Filter-Minify-JavaScript/Makefile
index 8ea12b70c8c4..2794f20f61f1 100644
--- a/textproc/p5-Template-Plugin-Filter-Minify-JavaScript/Makefile
+++ b/textproc/p5-Template-Plugin-Filter-Minify-JavaScript/Makefile
@@ -24,4 +24,10 @@ PERL_CONFIGURE= yes
MAN3= Template::Plugin::Filter::Minify::JavaScript.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500808
+BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.30:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Text-ASCIITable/Makefile b/textproc/p5-Text-ASCIITable/Makefile
index 0f674005a0a3..4dd27017e3b4 100644
--- a/textproc/p5-Text-ASCIITable/Makefile
+++ b/textproc/p5-Text-ASCIITable/Makefile
@@ -31,4 +31,7 @@ post-install:
@${ECHO_MSG} "===> Example installed in ${EXAMPLESDIR}."
.endif
+regression-test: build
+ cd ${WRKSRC}/ && ./Build test
+
.include <bsd.port.mk>
diff --git a/textproc/p5-Text-Padding/Makefile b/textproc/p5-Text-Padding/Makefile
index e44b29b8be46..e0834309c086 100644
--- a/textproc/p5-Text-Padding/Makefile
+++ b/textproc/p5-Text-Padding/Makefile
@@ -22,8 +22,14 @@ RUN_DEPENDS= p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-Has-Sugar>=0:${PORTSDIR}/devel/p5-MooseX-Has-Sugar \
p5-Text-Truncate>=0:${PORTSDIR}/textproc/p5-Text-Truncate
-PERL_MODBUILD= yes
+PERL_MODBUILD= 5.12.0+
MAN3= Text::Padding.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Text-Quote/Makefile b/textproc/p5-Text-Quote/Makefile
index 8d0312f03921..1d0e0c3131b3 100644
--- a/textproc/p5-Text-Quote/Makefile
+++ b/textproc/p5-Text-Quote/Makefile
@@ -23,4 +23,10 @@ PERL_CONFIGURE= yes
MAN3= Text::Quote.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Text-VimColor/Makefile b/textproc/p5-Text-VimColor/Makefile
index aab5202cb9a7..5356b0b314e2 100644
--- a/textproc/p5-Text-VimColor/Makefile
+++ b/textproc/p5-Text-VimColor/Makefile
@@ -29,6 +29,10 @@ MAN3= Text::VimColor.3
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-Term-ANSIColor>=3:${PORTSDIR}/devel/p5-Term-ANSIColor
RUN_DEPENDS+= p5-Term-ANSIColor>=3:${PORTSDIR}/devel/p5-Term-ANSIColor
diff --git a/textproc/p5-Tk-Pod/Makefile b/textproc/p5-Tk-Pod/Makefile
index 50e7af2803ca..290b5c1375e2 100644
--- a/textproc/p5-Tk-Pod/Makefile
+++ b/textproc/p5-Tk-Pod/Makefile
@@ -36,8 +36,8 @@ MAN3= Tk::More.3 \
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501000
-BUILD_DEPENDS+= p5-Pod-Simple>=2.05:${PORTSDIR}/textproc/p5-Pod-Simple
-RUN_DEPENDS+= p5-Pod-Simple>=2.05:${PORTSDIR}/textproc/p5-Pod-Simple
+BUILD_DEPENDS+= p5-Pod-Simple>=0:${PORTSDIR}/textproc/p5-Pod-Simple
+RUN_DEPENDS+= p5-Pod-Simple>=0:${PORTSDIR}/textproc/p5-Pod-Simple
.endif
.include <bsd.port.post.mk>
diff --git a/textproc/p5-URI-Find/Makefile b/textproc/p5-URI-Find/Makefile
index 9e7a9e99828a..c40618a13dc4 100644
--- a/textproc/p5-URI-Find/Makefile
+++ b/textproc/p5-URI-Find/Makefile
@@ -23,4 +23,10 @@ MAN1= urifind.1
MAN3= URI::Find.3 \
URI::Find::Schemeless.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-XML-Feed/Makefile b/textproc/p5-XML-Feed/Makefile
index cde125d039f1..2c15957932cf 100644
--- a/textproc/p5-XML-Feed/Makefile
+++ b/textproc/p5-XML-Feed/Makefile
@@ -39,4 +39,10 @@ MAN3= XML::Feed.3 \
XML::Feed::Enclosure.3 \
XML::Feed::Entry.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-XML-Generator/Makefile b/textproc/p5-XML-Generator/Makefile
index f5ad1034f0e8..1b54e6d65bcb 100644
--- a/textproc/p5-XML-Generator/Makefile
+++ b/textproc/p5-XML-Generator/Makefile
@@ -23,4 +23,7 @@ PERL_CONFIGURE= yes
MAN3= XML::Generator.3 XML::Generator::DOM.3
+regression-test test:
+ @(cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} test)
+
.include <bsd.port.mk>
diff --git a/textproc/p5-XML-LibXML-PrettyPrint/Makefile b/textproc/p5-XML-LibXML-PrettyPrint/Makefile
index 4ef8485b5106..cc950b6bcf15 100644
--- a/textproc/p5-XML-LibXML-PrettyPrint/Makefile
+++ b/textproc/p5-XML-LibXML-PrettyPrint/Makefile
@@ -21,7 +21,7 @@ RUN_DEPENDS= p5-Pragmatic>=0:${PORTSDIR}/devel/p5-Pragmatic \
p5-XML-LibXML>=1.62:${PORTSDIR}/textproc/p5-XML-LibXML \
p5-common-sense>=0:${PORTSDIR}/devel/p5-common-sense
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= XML::LibXML::PrettyPrint.3
diff --git a/textproc/p5-XML-SAX-Machines/Makefile b/textproc/p5-XML-SAX-Machines/Makefile
index e6b543d33c1b..94c7e781f0d7 100644
--- a/textproc/p5-XML-SAX-Machines/Makefile
+++ b/textproc/p5-XML-SAX-Machines/Makefile
@@ -26,6 +26,9 @@ MAN3= XML::Filter::Distributor.3 XML::Filter::DocSplitter.3 \
XML::SAX::Machines.3 XML::SAX::Machines::ConfigHelper.3 \
XML::SAX::Manifold.3 XML::SAX::Pipeline.3 XML::SAX::Tap.3
+regression-test: build
+ ${MAKE} -C ${WRKSRC} test
+
post-install:
.ifndef(NOPORTEXAMPLES)
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
diff --git a/textproc/p5-XML-Stream/Makefile b/textproc/p5-XML-Stream/Makefile
index 8320c038a001..23a53089ef09 100644
--- a/textproc/p5-XML-Stream/Makefile
+++ b/textproc/p5-XML-Stream/Makefile
@@ -28,4 +28,14 @@ MAN3= XML::Stream.3 \
XML::Stream::Parser::DTD.3 \
XML::Stream::Tree.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.92:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Module-Build>=0.3603:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-podlators/Makefile b/textproc/p5-podlators/Makefile
index bc533f8721aa..ca006a643cbc 100644
--- a/textproc/p5-podlators/Makefile
+++ b/textproc/p5-podlators/Makefile
@@ -24,4 +24,10 @@ MAN3= Pod::Man.3 Pod::ParseLink.3 Pod::Text.3 Pod::Text::Color.3 \
post-patch:
${REINPLACE_CMD} -e '/pod2text/d;s/man1pod.*pod2man.*//' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-Pod-Simple>=3.06:${PORTSDIR}/textproc/p5-Pod-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Apache-ASP/Makefile b/www/p5-Apache-ASP/Makefile
index 0a173867ef60..28cebed200b0 100644
--- a/www/p5-Apache-ASP/Makefile
+++ b/www/p5-Apache-ASP/Makefile
@@ -42,4 +42,10 @@ MAN3= Apache::ASP.3 \
Bundle::Apache::ASP.3 \
Bundle::Apache::ASP::Extra.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Blog-Spam/Makefile b/www/p5-Blog-Spam/Makefile
index c0457b2f8b2e..f44f38355959 100644
--- a/www/p5-Blog-Spam/Makefile
+++ b/www/p5-Blog-Spam/Makefile
@@ -49,4 +49,10 @@ MAN3= Blog::Spam::API.3 \
Blog::Spam::Plugin::wordcount.3 \
Blog::Spam::Server.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500809
+RUN_DEPENDS+= p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Business-PayPal/Makefile b/www/p5-Business-PayPal/Makefile
index ebdbfaf2e29c..40654d09c3ee 100644
--- a/www/p5-Business-PayPal/Makefile
+++ b/www/p5-Business-PayPal/Makefile
@@ -17,10 +17,16 @@ COMMENT= Perl extension for automating PayPal transactions
RUN_DEPENDS= p5-Net-SSLeay>=1.35:${PORTSDIR}/security/p5-Net-SSLeay \
p5-CGI.pm>=3.49:${PORTSDIR}/www/p5-CGI.pm
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Business::PayPal.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-CGI-Application-Dispatch/Makefile b/www/p5-CGI-Application-Dispatch/Makefile
index 643aa48d9dca..992f8f07fcd3 100644
--- a/www/p5-CGI-Application-Dispatch/Makefile
+++ b/www/p5-CGI-Application-Dispatch/Makefile
@@ -33,4 +33,11 @@ MAN3= CGI::Application::Dispatch.3 \
CGI::Application::Dispatch::PSGI.3 \
CGI::Application::Dispatch::Regexp.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-version>=0.82:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0.82:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-CGI-Compress-Gzip/Makefile b/www/p5-CGI-Compress-Gzip/Makefile
index 67982f713d9d..67fb61f72379 100644
--- a/www/p5-CGI-Compress-Gzip/Makefile
+++ b/www/p5-CGI-Compress-Gzip/Makefile
@@ -24,4 +24,11 @@ PERL_MODBUILD= yes
MAN3= CGI::Compress::Gzip.3 \
CGI::Compress::Gzip::FileHandle.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-CGI-SpeedyCGI/Makefile b/www/p5-CGI-SpeedyCGI/Makefile
index fc4494a88629..36bdd59824c2 100644
--- a/www/p5-CGI-SpeedyCGI/Makefile
+++ b/www/p5-CGI-SpeedyCGI/Makefile
@@ -36,8 +36,10 @@ post-patch:
@${PERL} -pi -e 's,APXS=apxs,APXS=${APXS},;' \
${WRKSRC}/mod_speedycgi/Makefile.tmpl
${CP} ${FILESDIR}/speedy_dump.c ${WRKSRC}/speedy_dump/
+.if ${PERL_LEVEL} >= 501000
@${REINPLACE_CMD} -i '' -e 's=New(123,=Newx(=g' \
${WRKSRC}/src/speedy_backend_main.h
+.endif
post-configure:
@${PERL} -pi -e 's,^PREFIX = /usr$$,PREFIX = ${PREFIX},g;' \
diff --git a/www/p5-CSS-DOM/Makefile b/www/p5-CSS-DOM/Makefile
index 9c16e9ce27e6..5ac6652d8244 100644
--- a/www/p5-CSS-DOM/Makefile
+++ b/www/p5-CSS-DOM/Makefile
@@ -43,4 +43,10 @@ MAN3= CSS::DOM.3 \
CSS::DOM::Value::List.3 \
CSS::DOM::Value::Primitive.3 \
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500807
+RUN_DEPENDS+= p5-Encode>=2.1:${PORTSDIR}/converters/p5-Encode
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-Action-REST/Makefile b/www/p5-Catalyst-Action-REST/Makefile
index 7872ce37849d..b7af70d17c8a 100644
--- a/www/p5-Catalyst-Action-REST/Makefile
+++ b/www/p5-Catalyst-Action-REST/Makefile
@@ -48,4 +48,10 @@ MAN3= Catalyst::Action::Deserialize.3 \
Catalyst::TraitFor::Request::REST.3 \
Catalyst::TraitFor::Request::REST::ForBrowsers.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-Authentication-Credential-OpenID/Makefile b/www/p5-Catalyst-Authentication-Credential-OpenID/Makefile
index 42a8384f175b..08b8dfcbb6fb 100644
--- a/www/p5-Catalyst-Authentication-Credential-OpenID/Makefile
+++ b/www/p5-Catalyst-Authentication-Credential-OpenID/Makefile
@@ -30,4 +30,11 @@ PERL_CONFIGURE= yes
MAN3= Catalyst::Authentication::Credential::OpenID.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-Devel/Makefile b/www/p5-Catalyst-Devel/Makefile
index 41e7147e8a35..d8b392820f58 100644
--- a/www/p5-Catalyst-Devel/Makefile
+++ b/www/p5-Catalyst-Devel/Makefile
@@ -42,4 +42,10 @@ MAN3= Catalyst::Devel.3 \
Catalyst::Restarter::Win32.3 \
Module::Install::Catalyst.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-Model-DBIC-Schema/Makefile b/www/p5-Catalyst-Model-DBIC-Schema/Makefile
index f4316eb1a237..dfd5476ed698 100644
--- a/www/p5-Catalyst-Model-DBIC-Schema/Makefile
+++ b/www/p5-Catalyst-Model-DBIC-Schema/Makefile
@@ -50,4 +50,10 @@ MAN3= Catalyst::Helper::Model::DBIC::Schema.3 \
post-extract:
@${PERL} -i.bak -ne 'print unless m,^feature, .. m,;$$,' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-Model-Memcached/Makefile b/www/p5-Catalyst-Model-Memcached/Makefile
index 2a740b2a56dd..70fd940e2d87 100644
--- a/www/p5-Catalyst-Model-Memcached/Makefile
+++ b/www/p5-Catalyst-Model-Memcached/Makefile
@@ -19,7 +19,7 @@ RUN_DEPENDS= p5-Cache-Memcached-Fast>=0.17:${PORTSDIR}/databases/p5-Cache-Memcac
p5-Catalyst-Runtime>=5.8:${PORTSDIR}/www/p5-Catalyst-Runtime
BUILD_DEPENDS= ${RUN_DEPENDS}
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= Catalyst::Model::Memcached.3
diff --git a/www/p5-Catalyst-Plugin-Authentication/Makefile b/www/p5-Catalyst-Plugin-Authentication/Makefile
index 66f738f18b20..14e776052d37 100644
--- a/www/p5-Catalyst-Plugin-Authentication/Makefile
+++ b/www/p5-Catalyst-Plugin-Authentication/Makefile
@@ -50,4 +50,10 @@ MAN3= Catalyst::Authentication::Credential::Password.3 \
Catalyst::Plugin::Authentication::User.3 \
Catalyst::Plugin::Authentication::User::Hash.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-Plugin-Session-FastMmap/Makefile b/www/p5-Catalyst-Plugin-Session-FastMmap/Makefile
index 1f36115638fd..61279a08aa3c 100644
--- a/www/p5-Catalyst-Plugin-Session-FastMmap/Makefile
+++ b/www/p5-Catalyst-Plugin-Session-FastMmap/Makefile
@@ -28,4 +28,7 @@ PERL_CONFIGURE= yes
MAN3= Catalyst::Plugin::Session::FastMmap.3
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/www/p5-Catalyst-Plugin-Static/Makefile b/www/p5-Catalyst-Plugin-Static/Makefile
index 9717c9c14e9b..12d04717da05 100644
--- a/www/p5-Catalyst-Plugin-Static/Makefile
+++ b/www/p5-Catalyst-Plugin-Static/Makefile
@@ -25,4 +25,7 @@ PERL_CONFIGURE= yes
MAN3= Catalyst::Plugin::Static.3
+regression-test: build
+ cd ${WRKSRC}/ && ${MAKE} test
+
.include <bsd.port.mk>
diff --git a/www/p5-Catalyst-Plugin-Unicode-Encoding/Makefile b/www/p5-Catalyst-Plugin-Unicode-Encoding/Makefile
index 8724b5f02540..6045128894b8 100644
--- a/www/p5-Catalyst-Plugin-Unicode-Encoding/Makefile
+++ b/www/p5-Catalyst-Plugin-Unicode-Encoding/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= yes
MAN3= Catalyst::Plugin::Unicode::Encoding.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-Runtime/Makefile b/www/p5-Catalyst-Runtime/Makefile
index 3bbbf62141e1..b3e44361dcce 100644
--- a/www/p5-Catalyst-Runtime/Makefile
+++ b/www/p5-Catalyst-Runtime/Makefile
@@ -107,4 +107,11 @@ MAN3= Catalyst.3 \
post-install:
@${CAT} ${PKGDIR}/pkg-message
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+RUN_DEPENDS+= p5-Module-Pluggable>=3.9:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-View-Email/Makefile b/www/p5-Catalyst-View-Email/Makefile
index 49628804302c..a29557e06b15 100644
--- a/www/p5-Catalyst-View-Email/Makefile
+++ b/www/p5-Catalyst-View-Email/Makefile
@@ -36,4 +36,11 @@ MAN3= Catalyst::Helper::View::Email.3 \
Catalyst::View::Email.3 \
Catalyst::View::Email::Template.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Catalyst-View-Mason/Makefile b/www/p5-Catalyst-View-Mason/Makefile
index d8e1f6dd5f87..36abfe714506 100644
--- a/www/p5-Catalyst-View-Mason/Makefile
+++ b/www/p5-Catalyst-View-Mason/Makefile
@@ -26,4 +26,11 @@ PERL_CONFIGURE= yes
MAN3= Catalyst::Helper::View::Mason.3 \
Catalyst::View::Mason.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-FCGI-Client/Makefile b/www/p5-FCGI-Client/Makefile
index 29f75a161408..83fccb35178f 100644
--- a/www/p5-FCGI-Client/Makefile
+++ b/www/p5-FCGI-Client/Makefile
@@ -15,9 +15,10 @@ PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension for fastcgi protocol client library
-RUN_DEPENDS= p5-Any-Moose>=0.1:${PORTSDIR}/devel/p5-Any-Moose \
+RUN_DEPENDS= \
+ p5-Any-Moose>=0.1:${PORTSDIR}/devel/p5-Any-Moose \
p5-Try-Tiny>0:${PORTSDIR}/lang/p5-Try-Tiny
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
@@ -28,4 +29,10 @@ MAN3= FCGI::Client.3 \
FCGI::Client::RecordFactory.3 \
FCGI::Client::RecordHeader.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} <= 501000
+RUN_DEPENDS+= p5-autodie>0:${PORTSDIR}/devel/p5-autodie
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-FCGI-Engine/Makefile b/www/p5-FCGI-Engine/Makefile
index 1557858806b8..8a54d6aa3a05 100644
--- a/www/p5-FCGI-Engine/Makefile
+++ b/www/p5-FCGI-Engine/Makefile
@@ -44,4 +44,10 @@ MAN3= FCGI::Engine.3 \
Plack::Server::FCGI::Engine.3 \
Plack::Server::FCGI::Engine::ProcManager.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-FEAR-API/Makefile b/www/p5-FEAR-API/Makefile
index 917783c35e03..7520126f313b 100644
--- a/www/p5-FEAR-API/Makefile
+++ b/www/p5-FEAR-API/Makefile
@@ -53,4 +53,10 @@ MAN3= FEAR::API.3 \
FEAR::API::Filters.3 \
FEAR::API::Document.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Feersum/Makefile b/www/p5-Feersum/Makefile
index 2f1c5939f496..c847dc950875 100644
--- a/www/p5-Feersum/Makefile
+++ b/www/p5-Feersum/Makefile
@@ -39,4 +39,15 @@ MAN3= Feersum.3 \
Feersum::Runner.3 \
Plack::Handler::Feersum.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.19:${PORTSDIR}/lang/p5-Scalar-List-Utils
+RUN_DEPENDS+= p5-Scalar-List-Utils>=1.19:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+
+.if ${PERL_LEVEL} < 501200
+TEST_DEPENDS+= p5-Test-Simple>=0.94:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-HTTP-Body/Makefile b/www/p5-HTTP-Body/Makefile
index c7e319950bc4..f95c87142461 100644
--- a/www/p5-HTTP-Body/Makefile
+++ b/www/p5-HTTP-Body/Makefile
@@ -34,4 +34,10 @@ MAN3= HTTP::Body.3 \
HTTP::Body::XForms.3 \
HTTP::Body::XFormsMultipart.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.86:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-HTTP-Cache-Transparent/Makefile b/www/p5-HTTP-Cache-Transparent/Makefile
index 155408dde718..7f48c06ea001 100644
--- a/www/p5-HTTP-Cache-Transparent/Makefile
+++ b/www/p5-HTTP-Cache-Transparent/Makefile
@@ -20,4 +20,10 @@ RUN_DEPENDS= ${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
PERL_CONFIGURE= yes
MAN3= HTTP::Cache::Transparent.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+BROKEN= Does not compile with perl ${PERL_VERSION}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-HTTP-Message/Makefile b/www/p5-HTTP-Message/Makefile
index 30208b7cd7b8..6627bb27079a 100644
--- a/www/p5-HTTP-Message/Makefile
+++ b/www/p5-HTTP-Message/Makefile
@@ -35,4 +35,16 @@ MAN3= HTTP::Config.3 \
HTTP::Response.3 \
HTTP::Status.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Compress-Raw-Zlib>=0:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib
+RUN_DEPENDS+= p5-Compress-Raw-Zlib>=0:${PORTSDIR}/archivers/p5-Compress-Raw-Zlib
+.endif
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-IO-Compress>=2.021:${PORTSDIR}/archivers/p5-IO-Compress
+RUN_DEPENDS+= p5-IO-Compress>=2.021:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-HTTP-Response-Encoding/Makefile b/www/p5-HTTP-Response-Encoding/Makefile
index c9d5b246eb13..9ad85cef004b 100644
--- a/www/p5-HTTP-Response-Encoding/Makefile
+++ b/www/p5-HTTP-Response-Encoding/Makefile
@@ -26,4 +26,10 @@ PERL_CONFIGURE= yes
MAN3= HTTP::Response::Encoding.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500805
+RUN_DEPENDS+= p5-Encode>=2:${PORTSDIR}/converters/p5-Encode
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Jifty/Makefile b/www/p5-Jifty/Makefile
index 045cfd3585fd..ac4628ce6015 100644
--- a/www/p5-Jifty/Makefile
+++ b/www/p5-Jifty/Makefile
@@ -110,7 +110,13 @@ PERL_CONFIGURE= yes
.include "Makefile.man"
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
post-patch:
${REINPLACE_CMD} -e '/auto_install/d' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/p5-LWP-Authen-Wsse/Makefile b/www/p5-LWP-Authen-Wsse/Makefile
index 7ee59ff6e902..ef2ee0146fd3 100644
--- a/www/p5-LWP-Authen-Wsse/Makefile
+++ b/www/p5-LWP-Authen-Wsse/Makefile
@@ -22,4 +22,10 @@ PERL_CONFIGURE= yes
MAN3= LWP::Authen::Wsse.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500805
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Markup-Perl/Makefile b/www/p5-Markup-Perl/Makefile
index 2bd9167e3124..9a452566dd23 100644
--- a/www/p5-Markup-Perl/Makefile
+++ b/www/p5-Markup-Perl/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MAN3= Markup::Perl.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500805
+RUN_DEPENDS= ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-MojoMojo/Makefile b/www/p5-MojoMojo/Makefile
index 254d310b9f6c..0f1833106abf 100644
--- a/www/p5-MojoMojo/Makefile
+++ b/www/p5-MojoMojo/Makefile
@@ -243,4 +243,11 @@ RUN_DEPENDS+= p5-Net-Amazon>=0:${PORTSDIR}/net/p5-Net-Amazon
RUN_DEPENDS+= p5-Text-Emoticon-MSN>=0:${PORTSDIR}/textproc/p5-Text-Emoticon-MSN
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-Encode>=2.31:${PORTSDIR}/converters/p5-Encode \
+ p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Mojolicious-Plugin-Database/Makefile b/www/p5-Mojolicious-Plugin-Database/Makefile
index 2c9e44ac7d00..d081878503ea 100644
--- a/www/p5-Mojolicious-Plugin-Database/Makefile
+++ b/www/p5-Mojolicious-Plugin-Database/Makefile
@@ -25,4 +25,10 @@ LICENSE_COMB= dual
MAN3= Mojolicious::Plugin::Database.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Mojolicious-Plugin-Mongodb/Makefile b/www/p5-Mojolicious-Plugin-Mongodb/Makefile
index 492b9ce8ef30..f9238e28d396 100644
--- a/www/p5-Mojolicious-Plugin-Mongodb/Makefile
+++ b/www/p5-Mojolicious-Plugin-Mongodb/Makefile
@@ -25,4 +25,10 @@ LICENSE_COMB= dual
MAN3= Mojolicious::Plugin::Mongodb.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Mojolicious/Makefile b/www/p5-Mojolicious/Makefile
index 06f3d9fd4b53..78d14f1c8c7a 100644
--- a/www/p5-Mojolicious/Makefile
+++ b/www/p5-Mojolicious/Makefile
@@ -18,7 +18,7 @@ LICENSE= ART20
LICENSE_FILES= ${WRKSRC}/LICENSE
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.1+
MAN1= hypnotoad.1 \
mojo.1 \
diff --git a/www/p5-Net-FreshBooks-API/Makefile b/www/p5-Net-FreshBooks-API/Makefile
index 62ff81d48abc..6e03fb0fa328 100644
--- a/www/p5-Net-FreshBooks-API/Makefile
+++ b/www/p5-Net-FreshBooks-API/Makefile
@@ -55,6 +55,10 @@ MAN3= Net::FreshBooks::API.3 \
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-Module-Build>=0.3601:${PORTSDIR}/devel/p5-Module-Build
+.endif
+
.if ${PERL_LEVEL} < 501400
RUN_DEPENDS+= p5-parent>=0.224:${PORTSDIR}/devel/p5-parent
TEST_DEPENDS+= p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
diff --git a/www/p5-Perlanet/Makefile b/www/p5-Perlanet/Makefile
index 38428325e9cd..01638eec63aa 100644
--- a/www/p5-Perlanet/Makefile
+++ b/www/p5-Perlanet/Makefile
@@ -44,4 +44,10 @@ MAN3= Perlanet.3 \
Perlanet::Trait::Tidy.3 \
Perlanet::Trait::YAMLConfig.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 508000
+RUN_DEPENDS+= p5-Scalar-List-Utils>=0:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Plack-Middleware-Expires/Makefile b/www/p5-Plack-Middleware-Expires/Makefile
index 846188887ecf..13406eb4766e 100644
--- a/www/p5-Plack-Middleware-Expires/Makefile
+++ b/www/p5-Plack-Middleware-Expires/Makefile
@@ -22,4 +22,10 @@ PERL_CONFIGURE= yes
MAN3= Plack::Middleware::Expires.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Plack-Middleware-XForwardedFor/Makefile b/www/p5-Plack-Middleware-XForwardedFor/Makefile
index 8967a5ee4c04..a53a4d908332 100644
--- a/www/p5-Plack-Middleware-XForwardedFor/Makefile
+++ b/www/p5-Plack-Middleware-XForwardedFor/Makefile
@@ -23,4 +23,11 @@ PERL_CONFIGURE= yes
MAN3= Plack::Middleware::XForwardedFor.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501200
+BUILD_DEPENDS+= p5-parent>=0.223:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0.223:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Plack-Test-ExternalServer/Makefile b/www/p5-Plack-Test-ExternalServer/Makefile
index 0936290abd14..f5f9a0fd44c9 100644
--- a/www/p5-Plack-Test-ExternalServer/Makefile
+++ b/www/p5-Plack-Test-ExternalServer/Makefile
@@ -28,4 +28,10 @@ PERL_CONFIGURE= yes
MAN3= Plack::Test::ExternalServer.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.89:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Pod-Site/Makefile b/www/p5-Pod-Site/Makefile
index 0f81aec15b18..5cbef32d1771 100644
--- a/www/p5-Pod-Site/Makefile
+++ b/www/p5-Pod-Site/Makefile
@@ -40,4 +40,15 @@ TEST_DEPENDS+= p5-Test-Pod>=1.41:${PORTSDIR}/devel/p5-Test-Pod \
p5-Test-Pod-Coverage>=1.06:${PORTSDIR}/devel/p5-Test-Pod-Coverage
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-File-Path>=2.07:${PORTSDIR}/devel/p5-File-Path
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.if ${PERL_LEVEL} < 501200
+RUN_DEPENDS+= p5-Pod-Simple>=3.12:${PORTSDIR}/textproc/p5-Pod-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Router-Simple/Makefile b/www/p5-Router-Simple/Makefile
index e8ae62d19dbe..63834794c97f 100644
--- a/www/p5-Router-Simple/Makefile
+++ b/www/p5-Router-Simple/Makefile
@@ -26,4 +26,12 @@ MAN3= Router::Simple.3 \
Router::Simple::Route.3 \
Router::Simple::SubMapper.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Tatsumaki/Makefile b/www/p5-Tatsumaki/Makefile
index 0498ff62f4fd..3cfba283327c 100644
--- a/www/p5-Tatsumaki/Makefile
+++ b/www/p5-Tatsumaki/Makefile
@@ -35,4 +35,10 @@ PERL_CONFIGURE= yes
MAN3= Tatsumaki.3 \
Tatsumaki::MessageQueue.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-URI-Fetch/Makefile b/www/p5-URI-Fetch/Makefile
index 7f920d0ada1d..583d9bf873ae 100644
--- a/www/p5-URI-Fetch/Makefile
+++ b/www/p5-URI-Fetch/Makefile
@@ -28,7 +28,13 @@ PERL_CONFIGURE= yes
MAN3= URI::Fetch.3 \
URI::Fetch::Response.3
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_ZLIB)
+. if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+. endif
+.endif
.if defined(WITH_CACHE)
RUN_DEPENDS+= p5-Cache>=0:${PORTSDIR}/devel/p5-Cache
@@ -37,4 +43,4 @@ RUN_DEPENDS+= p5-Cache>=0:${PORTSDIR}/devel/p5-Cache
post-patch:
${PERL} -pi -e '$$_ = "" if m|auto_install|' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/p5-URI-Title/Makefile b/www/p5-URI-Title/Makefile
index 9a20dc55afd8..7839264d5624 100644
--- a/www/p5-URI-Title/Makefile
+++ b/www/p5-URI-Title/Makefile
@@ -15,15 +15,22 @@ PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= Get the titles of things on the web in a sensible way
-BUILD_DEPENDS= p5-File-Type>=0.22:${PORTSDIR}/devel/p5-File-Type \
+COMMON_DEPENDS= p5-File-Type>=0.22:${PORTSDIR}/devel/p5-File-Type \
p5-HTML-Parser>=3.45:${PORTSDIR}/www/p5-HTML-Parser \
p5-Image-Size>0:${PORTSDIR}/graphics/p5-Image-Size \
p5-MP3-Info>0:${PORTSDIR}/audio/p5-MP3-Info \
p5-libwww>0:${PORTSDIR}/www/p5-libwww
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+BUILD_DEPENDS= ${COMMON_DEPENDS}
+RUN_DEPENDS= ${COMMON_DEPENDS}
PERL_CONFIGURE= yes
MAN3= URI::Title.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Module-Pluggable>=1.2:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-AtMovies-TV/Makefile b/www/p5-WWW-AtMovies-TV/Makefile
index 804f4bce4576..3729ea5c5bba 100644
--- a/www/p5-WWW-AtMovies-TV/Makefile
+++ b/www/p5-WWW-AtMovies-TV/Makefile
@@ -19,10 +19,16 @@ COMMENT= Retrieve TV information from http://www.atmovies.com.tw/
RUN_DEPENDS= p5-HTML-TableExtract>=2.1:${PORTSDIR}/www/p5-HTML-TableExtract \
p5-Moose>=0.55:${PORTSDIR}/devel/p5-Moose \
p5-WWW-Mechanize>=1.34:${PORTSDIR}/www/p5-WWW-Mechanize
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= WWW::AtMovies::TV.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+RUN_DEPENDS+= p5-version>=0.76:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-Baseball-NPB/Makefile b/www/p5-WWW-Baseball-NPB/Makefile
index 2f6b09c099b3..445403e165de 100644
--- a/www/p5-WWW-Baseball-NPB/Makefile
+++ b/www/p5-WWW-Baseball-NPB/Makefile
@@ -21,4 +21,10 @@ PERL_CONFIGURE= yes
MAN3= WWW::Baseball::NPB.3 WWW::Baseball::NPB::Game.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500805
+BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-Contact/Makefile b/www/p5-WWW-Contact/Makefile
index 6529af153ef3..1185a492d6ce 100644
--- a/www/p5-WWW-Contact/Makefile
+++ b/www/p5-WWW-Contact/Makefile
@@ -49,4 +49,10 @@ MAN3= WWW::Contact.3 \
WWW::Contact::Rediffmail.3 \
WWW::Contact::Yahoo.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.90:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-Facebook-API/Makefile b/www/p5-WWW-Facebook-API/Makefile
index 858788eada15..f460fbebb6ad 100644
--- a/www/p5-WWW-Facebook-API/Makefile
+++ b/www/p5-WWW-Facebook-API/Makefile
@@ -53,4 +53,10 @@ MAN3= WWW::Facebook::API.3 \
WWW::Facebook::API::Users.3 \
WWW::Facebook::API::Video.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-Mechanize-GZip/Makefile b/www/p5-WWW-Mechanize-GZip/Makefile
index 99c4e4a4447a..4abd7dc7ce8d 100644
--- a/www/p5-WWW-Mechanize-GZip/Makefile
+++ b/www/p5-WWW-Mechanize-GZip/Makefile
@@ -22,4 +22,11 @@ PERL_CONFIGURE= yes
MAN3= WWW::Mechanize::GZip.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-Mechanize-Pluggable/Makefile b/www/p5-WWW-Mechanize-Pluggable/Makefile
index 924c1356900a..829e671fbcd6 100644
--- a/www/p5-WWW-Mechanize-Pluggable/Makefile
+++ b/www/p5-WWW-Mechanize-Pluggable/Makefile
@@ -33,4 +33,10 @@ MAN3= WWW::Mechanize::Pluggable.3 \
WWW::Mechanize::Plugin::Cookbook.3 \
WWW::Mechanize::Plugin::HelloWorld.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500809
+RUN_DEPENDS+= p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-Mechanize-Shell/Makefile b/www/p5-WWW-Mechanize-Shell/Makefile
index e3f2f0c44f67..c5789c52b789 100644
--- a/www/p5-WWW-Mechanize-Shell/Makefile
+++ b/www/p5-WWW-Mechanize-Shell/Makefile
@@ -52,4 +52,11 @@ post-install:
@${ECHO_MSG} "===> Documentation installed in ${EXAMPLESDIR}."
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-Plurk/Makefile b/www/p5-WWW-Plurk/Makefile
index 741c02c71d68..228bca2c6d58 100644
--- a/www/p5-WWW-Plurk/Makefile
+++ b/www/p5-WWW-Plurk/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= p5-DateTime-Format-Mail>=0:${PORTSDIR}/devel/p5-DateTime-Format-Mai
p5-JSON>=2.00:${PORTSDIR}/converters/p5-JSON \
p5-Math-Base36>=0:${PORTSDIR}/math/p5-Math-Base36 \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
BUILD_DEPENDS+= p5-Test-Deep>=0:${PORTSDIR}/devel/p5-Test-Deep
PERL_CONFIGURE= yes
@@ -30,4 +30,10 @@ MAN3= WWW::Plurk.3 WWW::Plurk::Friend.3 WWW::Plurk::Message.3
post-patch:
${FIND} ${WRKSRC} -name "*.orig" -delete
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Time-Piece>=0:${PORTSDIR}/devel/p5-Time-Piece
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-WWW-iTunesConnect/Makefile b/www/p5-WWW-iTunesConnect/Makefile
index 12dc683242ce..4d263def375e 100644
--- a/www/p5-WWW-iTunesConnect/Makefile
+++ b/www/p5-WWW-iTunesConnect/Makefile
@@ -14,7 +14,7 @@ PKGNAMEPREFIX= p5-
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
MAINTAINER= bfoz@bfoz.net
-COMMENT= Client interface for Apples iTunes Connect service
+COMMENT= Client interface for Apple's iTunes Connect service
RUN_DEPENDS= p5-HTML-Tree>=0:${PORTSDIR}/www/p5-HTML-Tree \
p5-libwww>=5.829:${PORTSDIR}/www/p5-libwww \
@@ -31,4 +31,10 @@ PLIST_DIRS= %%SITE_PERL%%/WWW \
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW/iTunesConnect \
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500903
+RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/p5-Alien-wxWidgets/Makefile b/x11-toolkits/p5-Alien-wxWidgets/Makefile
index cb3ff08c2621..39ae94f6d3b5 100644
--- a/x11-toolkits/p5-Alien-wxWidgets/Makefile
+++ b/x11-toolkits/p5-Alien-wxWidgets/Makefile
@@ -24,6 +24,10 @@ PERL_MODBUILD= yes
.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 500809
+BUILD_DEPENDS+= ${SITE_PERL}/Module/Pluggable.pm:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
.if defined(WITH_UNICODE)
WX_UNICODE= yes
WX_UNI= uni_
diff --git a/x11-toolkits/p5-Tk-Action/Makefile b/x11-toolkits/p5-Tk-Action/Makefile
index f20eb6ab8c64..25d4df349472 100644
--- a/x11-toolkits/p5-Tk-Action/Makefile
+++ b/x11-toolkits/p5-Tk-Action/Makefile
@@ -24,7 +24,7 @@ RUN_DEPENDS= p5-Moose>=0.92:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-SemiAffordanceAccessor>=0:${PORTSDIR}/devel/p5-MooseX-SemiAffordanceAccessor \
p5-Tk-Sugar>=0:${PORTSDIR}/x11-toolkits/p5-Tk-Sugar
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= 5.10.0+
MAN3= Tk::Action.3
diff --git a/x11-toolkits/p5-Tk-Role-Dialog/Makefile b/x11-toolkits/p5-Tk-Role-Dialog/Makefile
index 05289e22da0f..31df5a6545e4 100644
--- a/x11-toolkits/p5-Tk-Role-Dialog/Makefile
+++ b/x11-toolkits/p5-Tk-Role-Dialog/Makefile
@@ -28,8 +28,14 @@ RUN_DEPENDS= p5-Moose>=0.92:${PORTSDIR}/devel/p5-Moose \
p5-Tk-Role-HasWidgets>=${PORTVERSION}:${PORTSDIR}/x11-toolkits/p5-Tk-Role-HasWidgets \
p5-Tk-Sugar>=0:${PORTSDIR}/x11-toolkits/p5-Tk-Sugar
-PERL_MODBUILD= yes
+PERL_MODBUILD= 5.10.0+
MAN3= Tk::Role::Dialog.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/p5-Tk-Role-HasWidgets/Makefile b/x11-toolkits/p5-Tk-Role-HasWidgets/Makefile
index 75eb8146b8b8..05913024ec8c 100644
--- a/x11-toolkits/p5-Tk-Role-HasWidgets/Makefile
+++ b/x11-toolkits/p5-Tk-Role-HasWidgets/Makefile
@@ -20,8 +20,14 @@ BUILD_DEPENDS= p5-Moose>=0.92:${PORTSDIR}/devel/p5-Moose \
RUN_DEPENDS= p5-Moose>=0.92:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-Has-Sugar>=0:${PORTSDIR}/devel/p5-MooseX-Has-Sugar
-PERL_MODBUILD= yes
+PERL_MODBUILD= 5.10.0+
MAN3= Tk::Role::HasWidgets.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/p5-Wx-Perl-ProcessStream/Makefile b/x11-toolkits/p5-Wx-Perl-ProcessStream/Makefile
index 9eaccf1b220a..a7621f25dced 100644
--- a/x11-toolkits/p5-Wx-Perl-ProcessStream/Makefile
+++ b/x11-toolkits/p5-Wx-Perl-ProcessStream/Makefile
@@ -25,4 +25,10 @@ PERL_CONFIGURE= yes
MAN3= Wx::Perl::ProcessStream.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Archive-Tar>=0:${PORTSDIR}/archivers/p5-Archive-Tar
+.endif
+
+.include <bsd.port.post.mk>