math/bcal 2.6
Storage expression, unit conversion & address offset CLI calculator
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
db3885877e- License
- GPLv3
- Categories
- math
Description
bcal (Byte CALculator) is a REPL CLI utility for storage expressions, unit conversions or address calculations. If you can't calculate the hex address offset for (512 - 16) MiB, or the value when the 43rd bit of a 64-bit address is set mentally, bcal is for you.
It has a bc mode for general-purpose numerical calculations.
bcal follows Ubuntu's standard unit conversion and notation policy. Only 64-bit operating systems are supported.
Features:
- evaluate arithmetic expressions involving storage units
- perform general purpose calculations (using bc)
- convert to IEC/SI standard data storage units
- interactive mode with the last valid result stored for reuse
- show the address in bytes
- show address as LBA:OFFSET
- convert CHS to LBA and vice versa
- base conversion to binary, decimal and hex
- custom sector size, max heads/cylinder and max sectors/track
- minimal dependencies
Install
As a binary package — by origin, or by package name:
pkg install math/bcal
pkg install bcal
From the ports tree:
cd /usr/ports/math/bcal/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= bcal>0:math/bcal
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 | - | 2.5 | - | - | - |
| FreeBSD:14:quarterly | - | 2.5 | n/a | - | - |
| FreeBSD:15:latest | - | 2.5 | n/a | - | - |
| FreeBSD:15:quarterly | - | 2.5 | n/a | n/a | n/a |
| FreeBSD:16:latest | - | 2.5 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Test 1
${PYTHON_PKGNAMEPREFIX}pytest>0: devel/py-pytest
The full lists below include those, and their dependencies in turn.
All build dependencies 4
All run dependencies 2
No port depends on this one.
Configuration
Options name: math_bcal
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- gmake python:test readline
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| bcal-v2.6.tar.gz | 48647 | 5bb315eb1c2ccc17e056247c0601c77dfbbdbef97051bdb522c00fe12b10eaa4 |
Master sites 1
- https://github.com/jarun/bcal/releases/download/${DISTVERSIONFULL}/