Port details |
- bcal Storage expression, unit conversion & address offset CLI calculator
- 2.4 math
=2 2.4Version of this port present on the latest quarterly branch. - Maintainer: 0mp@FreeBSD.org
 - Port Added: 2018-12-28 11:22:05
- Last Update: 2023-06-27 19:34:34
- Commit Hash: 3d9a815
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- License: GPLv3
- WWW:
- https://github.com/jarun/bcal
- 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
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- To install the port:
- cd /usr/ports/math/bcal/ && make install clean
- To add the package, run one of these commands:
- pkg install math/bcal
- pkg install bcal
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: bcal
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: amd64 powerpc64 powerpc64le
- distinfo:
- TIMESTAMP = 1643191520
SHA256 (jarun-bcal-v2.4_GH0.tar.gz) = 141f39d866f62274b2262164baaac6202f60749862c84c2e6ed231f6d03ee8df
SIZE (jarun-bcal-v2.4_GH0.tar.gz) = 36105
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- gmake>=4.3 : devel/gmake
- Test dependencies:
-
- py39-pytest>0 : devel/py-pytest@py39
- python3.9 : lang/python39
- Runtime dependencies:
-
- bc : math/gnubc
- calc : math/calc
- Library dependencies:
-
- libreadline.so.8 : devel/readline
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for bcal-2.4:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
- Options name:
- math_bcal
- USES:
- gmake python:test readline
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
2.4 27 Jun 2023 19:34:34
    |
Rene Ladan (rene)  |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
2.4 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
2.4 26 Jan 2022 10:08:47
    |
Mateusz Piotrowski (0mp)  |
math/bcal: Update to 2.4
Changes: https://github.com/jarun/bcal/releases/tag/v2.4 |
2.3_1 23 Jan 2022 16:11:50
    |
Mateusz Piotrowski (0mp)  |
math/bcal: Add a missing patch and depend on math/calc
These changes should be a part of the previous commit. |
2.3 23 Jan 2022 16:02:37
    |
Mateusz Piotrowski (0mp)  |
math/bcal: Update to 2.3 |
2.2 07 Apr 2021 08:09:01
    |
Mathieu Arnold (mat)  |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
2.2 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
2.2 17 Jan 2021 01:41:02
  |
pkubaj  |
math/bcal: enable on powerpc64le |
2.2 15 Jan 2021 20:36:37
  |
pkubaj  |
math/bcal: enable on powerpc64
MFH: 2020Q1 |
2.2 01 Feb 2020 12:06:11
  |
0mp  |
Update to 2.2
While here:
- Keep MANDIR standard
- Lint the file with portfmt
Reported by: Repology |
2.1.12_2 04 Sep 2019 14:53:16
  |
0mp  |
math/bcal: Honor CFLAGS
Set CFLAGS_OPTIMIZATION to nothing in order to override default
optimizations. |
2.1.12_1 09 Apr 2019 14:04:50
  |
sunpoet  |
Update devel/readline to 8.0
- Bump PORTREVISION of dependent ports for shlib change
Changes: https://tiswww.case.edu/php/chet/readline/CHANGES
PR: 236156
Exp-run by: antoine |
2.1.12 28 Dec 2018 11:21:53
  |
0mp  |
New port: math/bcal: Storage expression, unit conversion & address offset CLI
calculator
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 (Only the first 15 lines of the commit message are shown above ) |