Bug 259078 - [NEW PORT] textproc/p5-Number-Format-Metric: Format number with metric prefix ...missing depend for some use of p5-Data-Unixish
Summary: [NEW PORT] textproc/p5-Number-Format-Metric: Format number with metric prefix...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yasuhiro Kimura
URL:
Keywords:
Depends on:
Blocks: 259079
  Show dependency treegraph
 
Reported: 2021-10-11 17:13 UTC by Zane C. Bowers-Hadley
Modified: 2021-11-05 08:40 UTC (History)
1 user (show)

See Also:
yasu: merge-quarterly+


Attachments
git diff (1.88 KB, patch)
2021-10-11 17:13 UTC, Zane C. Bowers-Hadley
vvelox: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zane C. Bowers-Hadley 2021-10-11 17:13:46 UTC
Created attachment 228596 [details]
git diff

Recently noticed this is a messing depend for devel/p5-Data-Unixish.


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
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-11-05 08:19:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0821d602adcb0ed87fb39b8222572a87cd6a0793

commit 0821d602adcb0ed87fb39b8222572a87cd6a0793
Author:     Zane C. Bowers-Hadley <vvelox@vvelox.net>
AuthorDate: 2021-11-05 08:07:10 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2021-11-05 08:18:09 +0000

    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)

 textproc/Makefile                                |  1 +
 textproc/p5-Number-Format-Metric/Makefile (new)  | 20 ++++++++++++++++++++
 textproc/p5-Number-Format-Metric/distinfo (new)  |  3 +++
 textproc/p5-Number-Format-Metric/pkg-descr (new) |  8 ++++++++
 textproc/p5-Number-Format-Metric/pkg-plist (new) |  2 ++
 5 files changed, 34 insertions(+)
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-11-05 08:38:10 UTC
A commit in branch 2021Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=34f87e637351a2c2512eb343063102c229dd42e3

commit 34f87e637351a2c2512eb343063102c229dd42e3
Author:     Zane C. Bowers-Hadley <vvelox@vvelox.net>
AuthorDate: 2021-11-05 08:07:10 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2021-11-05 08:36:57 +0000

    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)
    (cherry picked from commit 0821d602adcb0ed87fb39b8222572a87cd6a0793)

 textproc/Makefile                                |  1 +
 textproc/p5-Number-Format-Metric/Makefile (new)  | 20 ++++++++++++++++++++
 textproc/p5-Number-Format-Metric/distinfo (new)  |  3 +++
 textproc/p5-Number-Format-Metric/pkg-descr (new) |  8 ++++++++
 textproc/p5-Number-Format-Metric/pkg-plist (new) |  2 ++
 5 files changed, 34 insertions(+)
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2021-11-05 08:40:26 UTC
Committed and merged to quarterly branch. Thanks!