Specifying perl dependencies in a port
Erwin Lansing
erwin at FreeBSD.org
Thu Aug 4 22:32:38 GMT 2005
On Thu, Aug 04, 2005 at 05:25:47PM -0400, Brent B. Powers wrote:
> I've a port that requires _either_ perl5 or perl5.8. This isn't a
> problem on FBSD5, but on 4.11, it appears that if I build the package
> on a system with 5.8, 5.8 is specified as a dependency, and if the
> package is build on a system with 5.6, 5.6 is set as a dependency.
>
> Is there a clean way to specify (on 4.11) that we require a 'modern' perl?
>
It depends on how you define "clean" :-)
> .if ${PERL_LEVEL} < 500600
> IGNORE= Requires perl 5.6 or better. Please install lang/perl5.8 and
> retry
> .endif
>
I wouldn't call this very clean, but this is the way to do it. Note that
the last part should read lang/perl5 not lang/perl5.8 if it also works
on perl 5.6.x.
Cheers,
-erwin
--
Erwin Lansing
DISCLAIMER:
No electrons were harmed while sending this message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050805/1fcb7f29/attachment.bin
More information about the freebsd-ports
mailing list