Perl port question

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue Jan 11 07:07:30 PST 2005


Niels Heinen wrote:

> I'm working on a perl port that depends on perl 5.8. It will
> not works with an older version.
> 
> Is there any recommended way to make sure the user uses this perl
> version ?
> 
> I can use PERL_LEVEL to check the version but what if
> the user installed the perl port and didn't do a 'use.perl'...

The usual idiom is something like this:

.if ${PERL_LEVEL} < 500601
IGNORE=         Port requires perl 5.6.x or (preferably) later.  Install 
lang/perl5.8 and try again
.endif

On 4.x, if the user hasn't done a 'use.perl port' then PERL_LEVEL will 
be 500503.

Under 5.x, use.perl will be run automatically when the perl port is 
installed.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       8 Dane Court Manor
                                                       School Rd
PGP: http://www.infracaninophile.co.uk/pgpkey         Tilmanstone
Tel: +44 1304 617253                                  Kent, CT14 0JL UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 372 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-perl/attachments/20050111/4dbb8113/signature.bin


More information about the freebsd-perl mailing list