mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add an OPTIONS to optionally depend on p5-Math-BigInt-GMP, defaulting
to on, and bump PORTREVISION. The rationale for this is that using the Net::SSH::Perl module without the optimized Math::BigInt::GMP backend for bignum computations is very slow (for instance, just logging to a box takes ~15s eating all the CPU on a fast Core 2 Duo laptop). Reviewed by: tobez
This commit is contained in:
parent
27c870c2ea
commit
03a1c3ccad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184782
1 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= Net-SSH-Perl
|
PORTNAME= Net-SSH-Perl
|
||||||
PORTVERSION= 1.30
|
PORTVERSION= 1.30
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net perl5
|
CATEGORIES= net perl5
|
||||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||||
MASTER_SITE_SUBDIR= Net
|
MASTER_SITE_SUBDIR= Net
|
||||||
|
@ -71,10 +72,18 @@ MAN3= Net::SSH::Perl.3 \
|
||||||
CONFIGURE_ENV+= PERL_MM_USE_DEFAULT="1"
|
CONFIGURE_ENV+= PERL_MM_USE_DEFAULT="1"
|
||||||
PERL_CONFIGURE= yes
|
PERL_CONFIGURE= yes
|
||||||
|
|
||||||
|
OPTIONS= GMP "Use the optimized Math::BigInt::GMP backend" on
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if ${PERL_LEVEL} < 500600
|
.if ${PERL_LEVEL} < 500600
|
||||||
IGNORE= needs Perl 5.6.0 or greater, please upgrade your Perl
|
IGNORE= needs Perl 5.6.0 or greater, please upgrade your Perl
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !defined(WITHOUT_GMP)
|
||||||
|
GMP_DEPEND= ${SITE_PERL_ARCH}/Math/BigInt/GMP.pm:${PORTSDIR}/math/p5-BigInt-GMP
|
||||||
|
BUILD_DEPENDS+= ${GMP_DEPEND}
|
||||||
|
RUN_DEPENDS+= ${GMP_DEPEND}
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue