FreeBSD Ports

math/units 2.27

Unit conversion and calculation

Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv3+
Categories
math
Package size
315.5 KiB, 1040.9 KiB installed

Description

The Free Software Foundation's "units" unit conversion and calculation utility.

GNU units converts quantities expressed in various scales to their equivalents in other scales. Units can only handle multiplicative scale changes. For example, it cannot convert Celsius to Fahrenheit but it can convert temperature differences between those temperature scales.

The units are defined externally in an extensive, well annotated data file that defines over 2000 units. You can also provide your own data file.

Note that this port will install the utility with a 'g' prefix, e.g. gunits, but the texinfo documentation will refer to it without the 'g' prefix.

Install

As a binary package — by origin, or by package name:

pkg install math/units
pkg install units

From the ports tree:

cd /usr/ports/math/units/ && make install clean

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

RUN_DEPENDS=	units>0: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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.272.272.16_22.16_32.27
FreeBSD:14:quarterly2.272.27n/a2.16_32.27
FreeBSD:15:latest2.272.27n/a2.16_32.16_3
FreeBSD:15:quarterly2.272.27n/an/an/a
FreeBSD:16:latest2.272.27n/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.

All build dependencies 2
All run dependencies 2

No port depends on this one.

Configuration

Options name: math_units

OptionDefaultDescription
READLINEonCommand line editing via libreadline
UNITS_CURoffInclude gunits_cur(8) for updating currency exchange rates
Service scripts
none

Files

Manual pages 1
  • gunits(1)
pkg-plist 10
  • bin/gunits
  • bin/gunits_cur
  • share/man/man1/gunits.1.gz
  • share/units/cpi.units
  • share/units/crypto.units
  • share/units/currency.units
  • share/units/definitions.units
  • share/units/elements.units
  • share/units/locale_map.txt
  • share/units/metal_prices.units
distinfo 1
FileSizeSHA256
units-2.27.tar.gz1.73825e+06e1bbdb09672e7c08eee986749e7a1629eb84a6bdf41f5a2a79d6804444abbe10
Master sites 1
  • GNU

Commit history 0

No commits in the history this site was built from.