Date: Tue, 11 Jan 2005 15:07:08 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Niels Heinen <niels@FreeBSD.org> Cc: freebsd-perl@FreeBSD.org Subject: Re: Perl port question Message-ID: <41E3EB9C.4090604@infracaninophile.co.uk> In-Reply-To: <20050111143905.GA64753@r0ck.mine.nu> References: <20050111143905.GA64753@r0ck.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB234914236632E2A10178C7F Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------enigB234914236632E2A10178C7F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iQCVAwUBQePropr7OpndfbmCAQK0MwP/Vvo3H7aE+X2I7Y9oic1wUshBPu8vfhMs u0JOJA8sAQuMvf5G4R7NvX0lqVOZf0eLsf3EV3cDQ3AUHzD2UEjqaPV3MqJ9yJsV IxS4bBzxRoV8Y347pupbBBPJWkMyVgkY9wImhWbjyGNGZV3qBrO4uVp7xBfRY0M9 7ZqKB7G0pPA= =m0YV -----END PGP SIGNATURE----- --------------enigB234914236632E2A10178C7F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41E3EB9C.4090604>