Thanks to the help of Klemens, Brian, and Stuart, I have ported pcalc
(originally written by Peter Glen, now maintained by Mike Frysinger).

Brief description:

        Programmer's calculator,  command line utility.

        There was always a loophole when it came to a need to covert
        between hexadecimal / decimal / octal / binary.

        Especially if it involved an operation like 0x1234 + 0x20 It
        took a lot of hard work, and mostly a good pocket calculator.

        Main features:

             o Full math parser, parentheses, add, sub, mult, div,
               exponential
             o Automatic conversion between HEX DEC OCT BIN numbers
             o Mixing different bases in one expression
             o Definable variables
             o Math constants (E PI ...)
             o Built in math functions (sin/cos/sqrt ...)

I believe the port is ready for consideration to be added to the ports
tree. However, testing on other architectures is is needed - I only have
amd64 and macppc machines personally, and part of the test suite fails
on macppc (reported upstream: https://github.com/vapier/pcalc/issues/7).
If you have a system with another arch, please let me know if `make
test` is able to run successfully!

Attachment: pcalc.tar
Description: Unix tar archive

Reply via email to