Ports: Bump bc from version 2.5.1 to 5.1.1

This commit is contained in:
Brendan Coles 2021-10-25 08:14:27 +00:00 committed by Andreas Kling
parent d40c36a16e
commit 518b8fb292
Notes: sideshowbarker 2024-07-18 01:53:41 +09:00
3 changed files with 4 additions and 16 deletions

View File

@ -8,7 +8,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`angband`](angband/) | Angband | 4.2.3 | https://rephial.org |
| [`bash`](bash/) | GNU Bash | 5.1.8 | https://www.gnu.org/software/bash/ |
| [`bass`](bass/) | Beneath a Steel Sky | cd-1.2 | https://www.scummvm.org/games |
| [`bc`](bc/) | bc | 2.5.1 | https://github.com/gavinhoward/bc |
| [`bc`](bc/) | bc | 5.1.1 | https://github.com/gavinhoward/bc |
| [`binutils`](binutils/) | GNU Binutils | 2.37 | https://www.gnu.org/software/binutils/ |
| [`bison`](bison/) | GNU Bison | 1.25 | https://www.gnu.org/software/bison/ |
| [`brogue`](brogue/) | BrogueCE | 1.9.3 | https://github.com/tmewett/BrogueCE |

View File

@ -1,6 +1,6 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=bc
version=2.5.1
version=5.1.1
files="https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz bc-${version}.tar.xz
https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz.sig bc-${version}.tar.xz.sig"
useconfigure=true
@ -8,9 +8,8 @@ configscript=configure.sh
auth_type="sig"
auth_import_key="E2A30324A4465A4D5882692EC08038BDF280D33E"
auth_opts=("bc-${version}.tar.xz.sig")
configopts=("--prefix=/usr/local" "--disable-nls" "--disable-history")
configure() {
# NLS needs many things, none of which we support.
# History needs FIONREAD ioctl, which we don't support yet.
run env HOSTCC=gcc ./"$configscript" --disable-nls --disable-history
run env HOSTCC=gcc ./"$configscript" "${configopts[@]}"
}

View File

@ -1,11 +0,0 @@
--- bc-2.5.1/include/args.h.orig Fri Jan 24 19:27:06 2020
+++ bc-2.5.1/include/args.h Fri Jan 24 19:27:14 2020
@@ -36,6 +36,8 @@
#ifndef BC_ARGS_H
#define BC_ARGS_H
+#include <getopt.h>
+
#include <status.h>
#include <vm.h>