diff options
author | Stefan Eßer <se@FreeBSD.org> | 2021-08-09 19:09:30 +0200 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2021-08-09 19:44:01 +0200 |
commit | 94a34f976b05bb8b3f2d9eeb4e55c167e4f34179 (patch) | |
tree | f4201f28ed313ea636ba67c40d5f1c1ed832552a /math/gh-bc/files/patch-scripts_locale__install.sh | |
parent | security/gpg-tui: update to version 0.7.4 (diff) |
math/gh-bc: update to version 5.0.0
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.
Diffstat (limited to 'math/gh-bc/files/patch-scripts_locale__install.sh')
-rw-r--r-- | math/gh-bc/files/patch-scripts_locale__install.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/math/gh-bc/files/patch-scripts_locale__install.sh b/math/gh-bc/files/patch-scripts_locale__install.sh new file mode 100644 index 000000000000..4d452bd0b101 --- /dev/null +++ b/math/gh-bc/files/patch-scripts_locale__install.sh @@ -0,0 +1,29 @@ +--- scripts/locale_install.sh.orig 2021-06-28 18:10:45 UTC ++++ scripts/locale_install.sh +@@ -243,6 +243,7 @@ for file in $locales_dir/*.msg; do + # Generate the proper location for the cat file. + loc=$(gen_nlspath "$destdir/$nlspath" "$locale" "$main_exec") + ++ echo gencatfile "$loc" "$file" + gencatfile "$loc" "$file" + + done +@@ -282,8 +283,6 @@ for file in $locales_dir/*.msg; do + linkdir=$(dirname "$file") + locale=$(basename "$link" .msg) + linksrc=$(gen_nlspath "$nlspath" "$locale" "$main_exec") +- relloc="${loc##$destdir/}" +- rel=$(relpath "$linksrc" "$relloc") + + # If the target file doesn't exist (because it's for a locale that is + # not installed), generate it anyway. It's easier this way. +@@ -293,7 +292,8 @@ for file in $locales_dir/*.msg; do + + # Finally, symlink to the install of the generated cat file that + # corresponds to the correct msg file. +- ln -fs "$rel" "$loc" ++ echo ln "$linksrc" "$loc" ++ ln "$linksrc" "$loc" + fi + + done |