BSD Ports

textproc/p5-Number-Format-Metric 0.60 FreeBSD

Format number with metric prefix

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
02a19ab64f
License
ART10, GPLv1+
Categories
textproc, perl5
Package size
7.7 KiB, 12.7 KiB installed

Description

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"

In the other systems

SystemPortVersion
FreeBSDtextproc/p5-Number-Format-Metric0.60
DragonFlytextproc/p5-Number-Format-Metric0.60

Install

Binary package:

pkg install p5-Number-Format-Metric

From the ports tree:

cd /usr/ports/textproc/p5-Number-Format-Metric/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Number-Format-Metric>0:textproc/p5-Number-Format-Metric

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.600.600.600.600.60
FreeBSD:14:quarterly0.600.60n/a0.600.60
FreeBSD:15:latest0.600.60n/a0.600.60
FreeBSD:15:quarterly0.600.60n/an/an/a
FreeBSD:16:latest0.600.60n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Number/Format/Metric.pm
  • %%PERL5_MAN3%%/Number::Format::Metric.3.gz
distinfo 1
FileSizeSHA256
Number-Format-Metric-0.60.tar.gz13772f46c5c32f2979dcecc8fbaf054eb17adb6dd306d4be9db98397bde706857bbb3
Master sites 1
  • CPAN

Commit history 1

DateCommitCreditsLog message
02a19ab64f Muhammad Moinur Rahman textproc/p5-Number-Format-Metric: Fix fetch
- Switch to DISTVERSION while I am here Approved by: portmgr (just-fix-it)