View | Details | Raw Unified | Return to bug 259078
Collapse All | Expand All

(-)b/textproc/p5-Number-Format-Metric/Makefile (+20 lines)
Added Link Here
1
# Created by: Zane C. Bowers-Hadley <vvelox@vvelox.net>
2
3
PORTNAME=	Number-Format-Metric
4
PORTVERSION=	0.60
5
CATEGORIES=	textproc perl5
6
MASTER_SITES=	CPAN
7
PKGNAMEPREFIX=	p5-
8
9
MAINTAINER=	vvelox@vvelox.net
10
COMMENT=	Format number with metric prefix
11
12
LICENSE=	ART10 GPLv1+
13
LICENSE_COMB=	dual
14
15
USES=		perl5
16
USE_PERL5=	configure
17
18
NO_ARCH=	yes
19
20
.include <bsd.port.mk>
(-)b/textproc/p5-Number-Format-Metric/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1633971826
2
SHA256 (Number-Format-Metric-0.60.tar.gz) = f46c5c32f2979dcecc8fbaf054eb17adb6dd306d4be9db98397bde706857bbb3
3
SIZE (Number-Format-Metric-0.60.tar.gz) = 13772
(-)b/textproc/p5-Number-Format-Metric/pkg-descr (+8 lines)
Added Link Here
1
Format number with metric prefix.
2
3
format_metric(14     , {base=>10});               # => "14"
4
format_metric(12000  , {base=> 2, precision=>1}); # => "11.7K"
5
format_metric(12000  , {base=>10, precision=>1}); # => "11.7Ki"
6
format_metric(-0.0017, {base=>10});               # => "1.7m"
7
8
WWW: https://metacpan.org/dist/Number-Format-Metric
(-)b/textproc/p5-Number-Format-Metric/pkg-plist (+2 lines)
Added Link Here
1
%%SITE_PERL%%/Number/Format/Metric.pm
2
%%PERL5_MAN3%%/Number::Format::Metric.3.gz

Return to bug 259078