aboutsummaryrefslogtreecommitdiff
path: root/math/gh-bc
Commit message (Collapse)AuthorAgeFilesLines
* Remove WWW entries moved into port MakefilesStefan Eßer2022-09-071-2/+0
| | | | | | | | | | 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)
* Add WWW entries to port MakefilesStefan Eßer2022-09-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
* math/gh-bc: upgrade to version 6.0.2Stefan Eßer2022-08-302-5/+5
| | | | | Fix combination of -l and -S option: -l could set a scale value set with -S back to the default scale value.
* math/gh-bc: upgrade to version 6.0.1Stefan Eßer2022-08-072-9/+9
| | | | | This update adds the -c/-C options to control the clamping behavior (the parsing of digits not allowed by the current value of ibase).
* math/gh-bc: update to version 5.3.3Stefan Eßer2022-06-252-4/+5
| | | | | | | | | This update restores suppression of the prompt with option -P, which had been missing if linked with libedit or libreadline. Since building the version tagged as 5.3.3 leaves temporary files in /tmp, this commit includes a post-release update that fixes this build issue.
* math/gh-bc: update to version 5.3.2Stefan Eßer2022-06-142-4/+4
| | | | | | This update Restores support for suppression of the prompt with -P when using the libedit or libreadline libraries for command line editing and history.
* math/gh-bc: update to version 5.3.1Stefan Eßer2022-06-112-22/+29
| | | | | | | | | | | | This version supports multiple command line editing and history implementations: - editline (default) - readline - private implementation (as in prior versions) The private implementation has been modified to treat ^D on an empty input line as an EOF signal.
* math/gh-bc: updat eto version 5.2.5Stefan Eßer2022-05-012-4/+4
| | | | This update adds ^D to delete the character under the cursor.
* math/gh-bc: update to version 5.2.4Stefan Eßer2022-04-162-4/+4
| | | | | | This update fixes an issue in input line editing: when going left to the start of the line, the cursor would jump to the end of the line instead.
* math/gh-bc: update to version 5.2.3Stefan Eßer2022-03-072-4/+4
| | | | | This update fixes a parse error when passing a file to bc using -f if that file has a multiline comment or string in it.
* math/gh-bc: update to version 5.2.2Stefan Eßer2022-02-052-4/+4
| | | | | | The only change relative to the previous version is that a default value for the program name is used if the program is invoked with argv[0] == NULL.
* math/gh-bc: update to version 5.2.1Stefan Eßer2021-11-232-4/+4
| | | | | | This version fixes two parse bugs when in POSIX standard mode. One of these bugs was due to a quirk of the POSIX grammar, and the other was because bc was too strict.
* math/gh-bc: upgrade to version 5.2.0Stefan Eßer2021-11-112-4/+4
|
* math/gh-bc: upgrade to version 5.1.1Stefan Eßer2021-10-062-4/+4
| | | | | This update fixes a parser issue: syntactically correct if statements where not accepted in specific situations.
* math/gh-bc: update to version 5.1.0Stefan Eßer2021-10-042-8/+4
| | | | | | | | This version adds options and functions that allow to print numbers in the open interval (-1 .. 1) with or without a leading 0 digit. Additionally, an option has been added to prevent line wrap and allows to print arbitrarily long results on a single line.
* math/gh-bc: update to version 5.0.2Stefan Eßer2021-08-282-4/+4
|
* math/gh-bc: update to version 5.0.0Stefan Eßer2021-08-094-39/+42
| | | | | | | | | | | | | | | | | | | | | | This is a new major release with a number of changes and extensions: - Limited the number of temporary numbers and made the space for them static so that allocating more space for them cannot fail. - Allowed integers with non-zero scale to be used with power, places, and shift operators. - Added greatest common divisor and least common multiple to lib2.bc. - Made bc and dc UTF-8 capable. - Added the ability for users to have bc and dc quit on SIGINT. - Added the ability for users to disable prompt and TTY mode by environment variables. - Added the ability for users to redefine keywords. - Added dc's modular exponentiation and divmod to bc. - Added the ability to assign strings to variables and array elements and pass them to functions in bc. - Added dc's asciify command and stream printing to bc. - Added bitwise and, or, xor, left shift, right shift, reverse, left rotate, right rotate, and mod functions to lib2.bc. - Added the functions s2u(x) and s2un(x,n), to lib2.bc.
* math/bc: Update to version 4.0.2Stefan Eßer2021-05-122-4/+4
| | | | | | | | | | This update fixes the initialization of "scale" to 20 if started with -l and the initial statement leads to an error (e.g. contains a syntax error). Scale was initialized to 0 in that case. Another change is the support of job control in interactive mode with line editing enabled. The control characters have been interpreted as editing commands only, prior to this version.
* math/gh-bc: updat eto version 4.0.1Stefan Eßer2021-04-212-4/+4
| | | | Always flush output after the excution of print statements.
* One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0
| | | | Reported by: lwhsu
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
|
* Update to Version 4.0.0Stefan Eßer2021-04-062-4/+4
| | | | | | | | This version fixes an issue in dc: the P command did not pop the value being printed from the stack. The major version bump is due to the addition of Windows compatibility and does not correspond to a change of functionality on POSIX systems.
* Update to version 3.3.4Stefan Eßer2021-03-192-4/+4
| | | | | | | | This update adds an implicit flush of the output if read() is called in a bc script in order to display a prompt without \n in line buffered mode. Notes: svn path=/head/; revision=568781
* Update to version 3.3.3Stefan Eßer2021-03-052-4/+4
| | | | | | | | | This version fixes a potential division be 0 in the extended math library (in the non-standard function "root") and makes length(0) return 1 to restore the behavior of the traditional bc in FreeBSD and of GNU bc. Notes: svn path=/head/; revision=567375
* Upgrade to version 3.3.0Stefan Eßer2021-02-182-4/+4
| | | | | | | | | | | There is one functional change with regard to -e of -f in BC_ENV_ARGS resp. DC_ENV_ARGS: these do no longer make the program exit after processing the commands passed that way (which prevented to use the environment variables to set parameters for interactive sessions, unless -f- was passed as the last argument on the command line). Notes: svn path=/head/; revision=565919
* Update to version 3.2.6Stefan Eßer2021-01-312-5/+6
| | | | Notes: svn path=/head/; revision=563518
* Upgrade to version 3.2.4Stefan Eßer2020-12-112-4/+4
| | | | | | | | Test for support of __has_attribute(fallthrough) to allow compilation with gcc-6 and lower. No functional change. Notes: svn path=/head/; revision=557758
* Update to version 3.2.3Stefan Eßer2020-11-303-32/+4
| | | | | | | A port patch has been merged into the upstream sources. Notes: svn path=/head/; revision=556650
* Upgrade to version 3.2.0Stefan Eßer2020-11-265-13/+41
| | | | | | | This update fixes an issue in the bessel function Notes: svn path=/head/; revision=556344
* Update to version 3.1.6Stefan Eßer2020-10-012-4/+4
| | | | | | | | | | This update fixes one (benign) warning generated when compiling with LLVM-12. Differential Revision: https://reviews.freebsd.org/D26593 Notes: svn path=/head/; revision=550844
* Upgrade to version 3.1.5Stefan Eßer2020-08-052-4/+4
| | | | | | | | | This version fixes a bug that occurs when running under a chinese locale. Approved by: antoine (implicit) Notes: svn path=/head/; revision=544216
* Upgrade to version 3.1.4Stefan Eßer2020-08-032-4/+4
| | | | | | | | | | | | | | | | | This version improves the compatibility with the bc and dc in base under two aspects: 1) Remove printing of the version and copyright message for interactive invocations of bc an dc. 2) Make dc exit after execution of commands passed via -e or -f. To get the behavior of version 3.1.3 back, "-f -" can be appended to the command line to read from STDIN until EOF. Approved by: antoine (implicit) Notes: svn path=/head/; revision=544101
* Update to verdsion 3.1.3Stefan Eßer2020-07-103-5/+5
| | | | | | | | | | | | | | | This version fixes an incompatibility with GNU bc: The statement: if (a > b) 1 was rejected, unless followed by "else 0". Approved by: antoine (implicit) Notes: svn path=/head/; revision=541853
* Update to version 3.1.1Stefan Eßer2020-07-072-6/+4
| | | | | | | | | Add spanisch message catalog in ISO8859-1 encoding. Approved by: antoine (implicit) Notes: svn path=/head/; revision=541389
* Add es_ES.ISO8859-15 message catalog.Stefan Eßer2020-07-062-0/+2
| | | | Notes: svn path=/head/; revision=541357
* Update to version 3.1.0Stefan Eßer2020-07-063-5/+8
| | | | | | | | This version improves the compatibility of the -e option with the FreeBSD version of bc. Notes: svn path=/head/; revision=541356
* Upgrade to version 3.0.1Stefan Eßer2020-06-202-4/+4
| | | | | | | | | | This version fixes a warning when building with a strict warnings level and significantly speeds up ceil() library function. Approved by: antoine (implicit) Notes: svn path=/head/; revision=539727
* Update to version 3.0.0Stefan Eßer2020-06-192-4/+4
| | | | | | | | | | This version contains extensive changes to signal handling and input processing (history) and many small enhancements. Approved by: antoine (implicit) Notes: svn path=/head/; revision=539586
* Upgrade to version 2.7.2Stefan Eßer2020-05-072-4/+4
| | | | | | | | | Fix calculation of array length. Approved by: antoine (implicit) Notes: svn path=/head/; revision=534241
* Upgrade to version 2.7.1Stefan Eßer2020-05-042-4/+4
| | | | | | | | | | This version contains small changes to the new NLS files and const qualifiers to silence the compiler if extra warnings are enabled. Approved by: antoine (implicit) Notes: svn path=/head/; revision=533895
* Update to version 2.7.0Stefan Eßer2020-05-023-4/+23
| | | | | | | | | | | | | | | | | | | This version fixes a problem that only affected getopt_long() on Linux (or rather, the GLIBC implementation) by replacing its use by optparse(). In addition, this version features a PRNG that can be used to generate arbitrary length pseudo-random numbers and 5 new translations (for Dutch, Japanese, Polish, Russian, and Simplified Chinese). These translations have been generated and verified with online tools (https://www.deepl.com/translator and https://translate.google.com) and might therefore not be fully correct - a review by native speakers would be appreciated. Approved by: antoine (implicit) Notes: svn path=/head/; revision=533683
* Update to version 2.6.1Stefan Eßer2020-04-112-4/+4
| | | | | | | | | | | This version fixes a bug that only occured when building on FreeBSD without long options support. It did not affect the port or package, since it was always built with long options. Approved by: antoine (implicit) Notes: svn path=/head/; revision=531452
* Update to version 2.6.0Stefan Eßer2020-03-112-12/+4
| | | | | | | Approved by: antoine (implicit) Notes: svn path=/head/; revision=528239
* Final attempt to make the Poruguese locales actually work.Stefan Eßer2020-01-231-3/+7
| | | | | | | | | | Just roll out the loop to create usable catalogue files instead of trying to have a loop do the right thing ... Approved by: antoine (implicit) Notes: svn path=/head/; revision=523909
* Due to the way the Portuguese ISO-8859-* files were named, they were notStefan Eßer2020-01-232-0/+7
| | | | | | | | | | installed on FreeBSD. Therefore provide message catalogues according to out naming scheme to include these files in the build. Approved by: antoine (implicit) Notes: svn path=/head/; revision=523902
* Update to version 2.5.1Stefan Eßer2020-01-233-4/+6
| | | | | | | | | This version introduces Portuguese translations (pt_PT and pt_BR). Approved by: antoine (implicit) Notes: svn path=/head/; revision=523901
* Upgrade to version 2.4.0Stefan Eßer2019-12-032-4/+4
| | | | | | | | | This versiom includes enhancements to the bundled dc command. Approved by: antoine (implicit) Notes: svn path=/head/; revision=518924
* Update to version 2.3.1Stefan Eßer2019-11-242-4/+4
| | | | | | | Approved by: antoine (implicit) Notes: svn path=/head/; revision=518347
* Update to version 2.3.0Stefan Eßer2019-11-113-9/+25
| | | | | | | Approved by: antoine (implicit) Notes: svn path=/head/; revision=517263
* Upgrade to version 2.1.0.Stefan Eßer2019-07-162-4/+5
| | | | | | | Approved by: antoine (implicit) Notes: svn path=/head/; revision=506737