textproc/p5-Number-Format-Metric: Add new port
Format number with metric prefix. format_metric(14 , {base=>10}); # => "14" format_metric(12000 , {base=> 2, precision=>1}); # => "11.7K" format_metric(12000 , {base=>10, precision=>1}); # => "11.7Ki" format_metric(-0.0017, {base=>10}); # => "1.7m" PR: 259078 MFH: 2021Q4 (required to fix missing dependency issue)
This commit is contained in:
parent
34b8755a42
commit
0821d602ad
|
@ -633,6 +633,7 @@
|
|||
SUBDIR += p5-Net-YASA
|
||||
SUBDIR += p5-NetAddr-IP-Find
|
||||
SUBDIR += p5-Number-Format
|
||||
SUBDIR += p5-Number-Format-Metric
|
||||
SUBDIR += p5-Number-Spell
|
||||
SUBDIR += p5-ODF-lpOD
|
||||
SUBDIR += p5-OpenOffice-OODoc
|
||||
|
|
20
textproc/p5-Number-Format-Metric/Makefile
Normal file
20
textproc/p5-Number-Format-Metric/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Created by: Zane C. Bowers-Hadley <vvelox@vvelox.net>
|
||||
|
||||
PORTNAME= Number-Format-Metric
|
||||
PORTVERSION= 0.60
|
||||
CATEGORIES= textproc perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= vvelox@vvelox.net
|
||||
COMMENT= Format number with metric prefix
|
||||
|
||||
LICENSE= ART10 GPLv1+
|
||||
LICENSE_COMB= dual
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= configure
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
textproc/p5-Number-Format-Metric/distinfo
Normal file
3
textproc/p5-Number-Format-Metric/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1633971826
|
||||
SHA256 (Number-Format-Metric-0.60.tar.gz) = f46c5c32f2979dcecc8fbaf054eb17adb6dd306d4be9db98397bde706857bbb3
|
||||
SIZE (Number-Format-Metric-0.60.tar.gz) = 13772
|
8
textproc/p5-Number-Format-Metric/pkg-descr
Normal file
8
textproc/p5-Number-Format-Metric/pkg-descr
Normal file
|
@ -0,0 +1,8 @@
|
|||
Format number with metric prefix.
|
||||
|
||||
format_metric(14 , {base=>10}); # => "14"
|
||||
format_metric(12000 , {base=> 2, precision=>1}); # => "11.7K"
|
||||
format_metric(12000 , {base=>10, precision=>1}); # => "11.7Ki"
|
||||
format_metric(-0.0017, {base=>10}); # => "1.7m"
|
||||
|
||||
WWW: https://metacpan.org/dist/Number-Format-Metric
|
2
textproc/p5-Number-Format-Metric/pkg-plist
Normal file
2
textproc/p5-Number-Format-Metric/pkg-plist
Normal file
|
@ -0,0 +1,2 @@
|
|||
%%SITE_PERL%%/Number/Format/Metric.pm
|
||||
%%PERL5_MAN3%%/Number::Format::Metric.3.gz
|
Loading…
Reference in New Issue
Block a user