From owner-freebsd-perl@FreeBSD.ORG Tue Jan 11 15:07:29 2005 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9FFA16A4CE; Tue, 11 Jan 2005 15:07:29 +0000 (GMT) Received: from male.aldigital.co.uk (male.thebunker.net [213.129.64.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDDC843D1D; Tue, 11 Jan 2005 15:07:28 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by male.aldigital.co.uk (Postfix) with ESMTP id E40DB977C8; Tue, 11 Jan 2005 15:07:25 +0000 (GMT) Received: from [127.0.0.1] (localhost [127.0.0.1])j0BF7Etj029150; Tue, 11 Jan 2005 15:07:25 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <41E3EB9C.4090604@infracaninophile.co.uk> Date: Tue, 11 Jan 2005 15:07:08 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla Thunderbird 1.0 (X11/20041229) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Niels Heinen References: <20050111143905.GA64753@r0ck.mine.nu> In-Reply-To: <20050111143905.GA64753@r0ck.mine.nu> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB234914236632E2A10178C7F" cc: freebsd-perl@FreeBSD.org Subject: Re: Perl port question X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 15:07:30 -0000 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--