According to the Test::More documentation, it is recommended to run
use_ok() inside a BEGIN block, so functions are exported at
compile-time and prototypes are properly honored.
That is, instead of writing this:
use_ok( 'Some::Module' );
use_ok( 'Other::Module' );
One should write this:
BEGIN { use_ok( 'Some::Module' ); }
BEGIN { use_ok( 'Other::Module' ); }
However, people often either forget to add BEGIN, or mistakenly group
use_ok with other tests in a single BEGIN block, which can create subtle
differences in execution order.
With this module, simply change all use_ok in test scripts to use ok,
and they will be executed at BEGIN time. The explicit space after use
makes it clear that this is a single compile-time action.
WWW: http://search.cpan.org/dist/Test-use-ok/
Mark p5-Test-Tester and p5-Test-use-ok deprecated (as they are now a part of
p5-Test-Simple), and expire them in 30 days. Add conflicts between them and
p5-Test-Simple. While here, remove some trailing whitespace from p5-Test-use-ok.
Thanks to sunpoet for identifying the problem here.
Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:
site_perl : lib/perl5/site_perl/5.18
site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
perl_man3 : lib/perl5/5.18/man/man3
Now we have:
site_perl : lib/perl5/site_perl
site_arch : lib/perl5/site_perl/mach/5.18
perl_man3 : lib/perl5/site_perl/man/man3
Modules without any .so will be installed at the same place regardless of the
(Only the first 15 lines of the commit message are shown above )
- Take advantage of CPAN macro from bsd.sites.mk, change
${MASTER_SITE_PERL_CPAN} to CPAN.
PR: ports/122674
Submitted by: Philip M. Gollucci <pgollucci@p6m7g8.com>
Reworked by: araujo (myself)
Approved by: portmgr (pav)
From submitter:
- allow build this port on Perl 5.6.x
(Since Perl 5.005_03 is no longer supported after FreeBSD 4.x EoL, I stop
testing p5-* under Perl 5.005_03)
- remove dependency of p5-Test-Simple since it's already shipped within Perl
5.6.x or above
PR: 108594
Submitted by: Yen-Ming Lee <leeym@freebsd.org>