math/p5-Math-Units 1.3_1 FreeBSD
Unit conversion
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- math, perl5
- Package size
- 11.4 KiB, 30.0 KiB installed
Description
The Math::Units module converts a numeric value in one unit of measurement to some other unit. The units must be compatible, i.e. length cannot be converted to volume. If a conversion cannot be made an exception is thrown.
A combination chaining and reduction algorithm is used to perform the most direct unit conversion possible. Units may be written in several different styles. An abbreviation table is used to convert from common long-form unit names to the (more or less) standard abbreviations that the units module uses internally. All multiplicative unit conversions are cached so that future conversions can be performed very quickly.
Too many units, prefixes and abbreviations are supported to list here. See the source code for a complete listing.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | math/p5-Math-Units | 1.3_1 |
| DragonFly | math/p5-Math-Units | 1.3_1 |
Install
Binary package:
pkg install p5-Math-Units
From the ports tree:
cd /usr/ports/math/p5-Math-Units/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Math-Units>0:math/p5-Math-Units
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.3_1 | 1.3_1 | 1.3_1 | 1.3_1 | 1.3_1 |
| FreeBSD:14:quarterly | 1.3_1 | 1.3_1 | n/a | 1.3_1 | 1.3_1 |
| FreeBSD:15:latest | 1.3_1 | 1.3_1 | n/a | 1.3_1 | 1.3_1 |
| FreeBSD:15:quarterly | 1.3_1 | 1.3_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.3_1 | 1.3_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%PERL5_MAN3%%/Math::Units.3.gz
- %%SITE_PERL%%/Math/Units.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Math-Units-1.3.tar.gz | 13175 | 704202de3d4a6849cb781206cd3e156d85a2c2a93dd774ab6ab541c821a413ec |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.