Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2002 13:20:04 -0700 (PDT)
From:      Anton Berezin <tobez@FreeBSD.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/41265: New port: textproc/p5-Text-Reflow
Message-ID:  <200208032020.g73KK4Hb045933@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/41265; it has been noted by GNATS.

From: Anton Berezin <tobez@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: Mathieu Arnold <mat@mat.cc>, freebsd-ports@FreeBSD.org
Subject: Re: ports/41265: New port: textproc/p5-Text-Reflow
Date: Sat, 3 Aug 2002 22:16:21 +0200

 On Sat, Aug 03, 2002 at 12:30:04AM -0700, Mathieu Arnold wrote:
 
 >  just found out that it "require 5.005_62"
 >  
 >  what is the best way to test the perl version ?
 
 At the moment the best way is to make absolutely sure that the port in
 question indeed requires perl 5.6 or above.  A lot of perl modules that
 require 5.005_62 do that for unimportant reasons like using `our'
 instead of `use vars', using `use warnings', and ...oh well, that's
 about it, I think.  Such things can be trivially patched, even by
 oneliners in the port's Makefile.  Some examples:
 
 textproc/p5-Text-FixedLength-Extra
 www/p5-WWW-Automate
 databases/p5-GraphViz-DBI
 
 If this is not the case, and the module indeed requires more substantial
 modifications to make it work with 5.005_03 (for example, some extended
 operations with fields.pm, the use of @+ and @- magic arrays, unicode
 stuff), the solution similar to the one you propose should work.
 
 >  
 >  shall I do something like :
 >  
 >  .if ${PERL_VER} =3D=3D 5.005
 >  BROKEN=3D"Needs Perl 5.6, you can install it from ports
 >  (${PORTSDIR}/lang/perl5"
 >  .endif
 >  
 >  which does not work...
 >  
 >  help, someone ?
 
 For example:
 
 pre-everything:
     @${PERL} -M5.006 -e1 2>/dev/null || \
     ( ${ECHO_MSG} "===> Requires perl 5.6 or above (available from the ports collection)"; \
     false )
 
 This should, more or less, do what you want.
 
 That said, if perl5/perl5.8 ports were to run use.perl port
 automatically upon install, the easier solution would be to just include
 perl5 as a dependency.  This might happen one day.
 
 =Anton.
 -- 
 | Anton Berezin                |      FreeBSD: The power to serve |
 | catpipe Systems ApS   _ _ |_ |           http://www.FreeBSD.org |
 | tobez@catpipe.net    (_(_||  |                tobez@FreeBSD.org | 
 | +45 7021 0050                |         Private: tobez@tobez.org |

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208032020.g73KK4Hb045933>