math/gh-bc 7.1.0
GNU compatible bc/dc calculator
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD2CLAUSE, MIT
- Categories
- math, lang
- Package size
- 127.2 KiB, 280.9 KiB installed
Description
This is an implementation of POSIX bc that implements GNU bc extensions, as well as the period (".") extension for the BSD flavor of bc.
bc is an arbitrary precision numeric processing language. Its syntax is similar to C but differs in many substantial areas. It supports interactive execution of statements. The bc utility is included in the POSIX 1003.1-2008 standard.
This bc also includes an implementation of dc in the same binary, accessible via a symbolic link, which implements all FreeBSD and GNU extensions. If a single dc binary is desired, bc can be copied and renamed to dc.
The "!" command is omitted; I believe that it poses security concerns and that such functionality is unnecessary.
Install
As a binary package — by origin, or by package name:
pkg install math/gh-bc
pkg install gh-bc
From the ports tree:
cd /usr/ports/math/gh-bc/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= gh-bc>0:math/gh-bc
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 | 7.1.0 | 7.1.0 | 6.0.2 | 7.1.0 | 7.1.0 |
| FreeBSD:14:quarterly | 7.1.0 | 7.1.0 | n/a | 7.0.3 | 7.1.0 |
| FreeBSD:15:latest | 7.1.0 | 7.1.0 | n/a | 7.1.0 | 7.1.0 |
| FreeBSD:15:quarterly | 7.1.0 | 7.1.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 7.1.0 | 7.1.0 | 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.
All build dependencies 1
All run dependencies 1
No port depends on this one.
Configuration
Options name: math_bc
| Option | Default | Description |
|---|---|---|
| INTERNAL | off | Command line editing via private functions |
| LIBEDIT | on | Command line editing via libedit |
| READLINE | off | Command line editing via libreadline |
- USES
- compiler:c11 tar:xz
- Service scripts
- none
- Conflicts with
- gnubc
Files
Manual pages 2
- bc(1)
- dc(1)
pkg-plist 76
- bin/bc
- bin/dc
- share/man/man1/bc.1.gz
- share/man/man1/dc.1.gz
- share/nls/C/bc.cat
- share/nls/de_AT.ISO8859-1/bc.cat
- share/nls/de_AT.ISO8859-15/bc.cat
- share/nls/de_AT.UTF-8/bc.cat
- share/nls/de_CH.ISO8859-1/bc.cat
- share/nls/de_CH.ISO8859-15/bc.cat
- share/nls/de_CH.UTF-8/bc.cat
- share/nls/de_DE.ISO8859-1/bc.cat
- share/nls/de_DE.ISO8859-15/bc.cat
- share/nls/de_DE.UTF-8/bc.cat
- share/nls/en_AU.ISO8859-1/bc.cat
- share/nls/en_AU.ISO8859-15/bc.cat
- share/nls/en_AU.US-ASCII/bc.cat
- share/nls/en_AU.UTF-8/bc.cat
- share/nls/en_CA.ISO8859-1/bc.cat
- share/nls/en_CA.ISO8859-15/bc.cat
- share/nls/en_CA.US-ASCII/bc.cat
- share/nls/en_CA.UTF-8/bc.cat
- share/nls/en_GB.ISO8859-1/bc.cat
- share/nls/en_GB.ISO8859-15/bc.cat
- share/nls/en_GB.US-ASCII/bc.cat
- share/nls/en_GB.UTF-8/bc.cat
- share/nls/en_IE.ISO8859-1/bc.cat
- share/nls/en_IE.ISO8859-15/bc.cat
- share/nls/en_IE.UTF-8/bc.cat
- share/nls/en_NZ.ISO8859-1/bc.cat
- share/nls/en_NZ.ISO8859-15/bc.cat
- share/nls/en_NZ.US-ASCII/bc.cat
- share/nls/en_NZ.UTF-8/bc.cat
- share/nls/en_US.ISO8859-1/bc.cat
- share/nls/en_US.ISO8859-15/bc.cat
- share/nls/en_US.US-ASCII/bc.cat
- share/nls/en_US.UTF-8/bc.cat
- share/nls/es_ES.ISO8859-1/bc.cat
- share/nls/es_ES.ISO8859-15/bc.cat
- share/nls/es_ES.UTF-8/bc.cat
- share/nls/fr_BE.ISO8859-1/bc.cat
- share/nls/fr_BE.ISO8859-15/bc.cat
- share/nls/fr_BE.UTF-8/bc.cat
- share/nls/fr_CA.ISO8859-1/bc.cat
- share/nls/fr_CA.ISO8859-15/bc.cat
- share/nls/fr_CA.UTF-8/bc.cat
- share/nls/fr_CH.ISO8859-1/bc.cat
- share/nls/fr_CH.ISO8859-15/bc.cat
- share/nls/fr_CH.UTF-8/bc.cat
- share/nls/fr_FR.ISO8859-1/bc.cat
- share/nls/fr_FR.ISO8859-15/bc.cat
- share/nls/fr_FR.UTF-8/bc.cat
- share/nls/ja_JP.UTF-8/bc.cat
- share/nls/ja_JP.eucJP/bc.cat
- share/nls/nl_BE.ISO8859-1/bc.cat
- share/nls/nl_BE.ISO8859-15/bc.cat
- share/nls/nl_NL.ISO8859-1/bc.cat
- share/nls/nl_NL.ISO8859-15/bc.cat
- share/nls/nl_NL.UTF-8/bc.cat
- share/nls/pl_PL.ISO8859-2/bc.cat
- share/nls/pl_PL.UTF-8/bc.cat
- share/nls/pt_BR.ISO8859-1/bc.cat
- share/nls/pt_BR.UTF-8/bc.cat
- share/nls/pt_PT.ISO8859-1/bc.cat
- share/nls/pt_PT.ISO8859-15/bc.cat
- share/nls/pt_PT.UTF-8/bc.cat
- share/nls/ru_RU.CP1251/bc.cat
- share/nls/ru_RU.CP866/bc.cat
- share/nls/ru_RU.ISO8859-5/bc.cat
- share/nls/ru_RU.KOI8-R/bc.cat
- share/nls/ru_RU.UTF-8/bc.cat
- share/nls/zh_CN.GB18030/bc.cat
- share/nls/zh_CN.GB2312/bc.cat
- share/nls/zh_CN.GBK/bc.cat
- share/nls/zh_CN.UTF-8/bc.cat
- share/nls/zh_CN.eucCN/bc.cat
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| bc-7.1.0.tar.xz | 597940 | 1f13663ba0f2435b684321714a4d0b9fff32bb951fc78dc7424cd69bba5c0d3a |
Master sites 1
- https://github.com/gavinhoward/bc/releases/download/7.1.0/
Commit history 0
No commits in the history this site was built from.