From ee25d6940fbb0e49b568216c986bc2d8381ff967 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Thu, 8 Apr 2021 12:14:24 +0000 Subject: [PATCH] Ports: Add GnuCOBOL --- Ports/AvailablePorts.md | 1 + Ports/gnucobol/package.sh | 11 +++++++++++ Ports/gnucobol/patches/cob-config.patch | 8 ++++++++ Ports/gnucobol/patches/config.sub.patch | 10 ++++++++++ 4 files changed, 30 insertions(+) create mode 100755 Ports/gnucobol/package.sh create mode 100644 Ports/gnucobol/patches/cob-config.patch create mode 100644 Ports/gnucobol/patches/config.sub.patch diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index aee1edcdfb1..1da29370022 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -31,6 +31,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`genemu`](genemu) | Genesis / MegaDrive Emulator | | https://github.com/rasky/genemu | | [`git`](git/) | Git | 2.26.0 | https://git-scm.com/ | | [`gmp`](gmp/) | GNU Multiple Precision Arithmetic Library | 6.2.1 | https://gmplib.org/ | +| [`gnucobol`](gnucobol/) | GnuCOBOL | 3.1.2 | https://gnucobol.sourceforge.io/ | | [`gnuplot`](gnuplot/) | Gnuplot | 5.2.8 | http://www.gnuplot.info/ | | [`grep`](grep/) | GNU Grep | 2.5.4 | https://www.gnu.org/software/grep/ | | [`hatari`](hatari/) | Atari ST/STE/TT/Falcon emulator | 2.4.0-devel | https://hatari.tuxfamily.org/ | diff --git a/Ports/gnucobol/package.sh b/Ports/gnucobol/package.sh new file mode 100755 index 00000000000..9d0caf476e7 --- /dev/null +++ b/Ports/gnucobol/package.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=gnucobol +version=3.1.2 +useconfigure="true" +depends="gmp gcc bash" +files="https://ftp.gnu.org/gnu/gnucobol/gnucobol-${version}.tar.bz2 gnucobol-${version}.tar.bz2 +https://ftp.gnu.org/gnu/gnucobol/gnucobol-${version}.tar.bz2.sig gnucobol-${version}.tar.bz2.sig +https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg" +auth_type="sig" +auth_opts="--keyring ./gnu-keyring.gpg gnucobol-${version}.tar.bz2.sig" +configopts="--prefix=/usr/local --enable-hardening --disable-rpath --with-gnu-ld --with-dl --with-math=gmp --with-db=no --with-json=no --with-curses=curses" diff --git a/Ports/gnucobol/patches/cob-config.patch b/Ports/gnucobol/patches/cob-config.patch new file mode 100644 index 00000000000..7fb418e3611 --- /dev/null +++ b/Ports/gnucobol/patches/cob-config.patch @@ -0,0 +1,8 @@ +--- gnucobol-3.1.2/bin/cob-config.in 2020-12-23 02:51:16.000000000 -0800 ++++ gnucobol-3.1.2/bin/cob-config.in 2021-04-08 03:05:22.989720870 -0700 +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/bin/bash + # + # cob-config + # diff --git a/Ports/gnucobol/patches/config.sub.patch b/Ports/gnucobol/patches/config.sub.patch new file mode 100644 index 00000000000..dc561133a94 --- /dev/null +++ b/Ports/gnucobol/patches/config.sub.patch @@ -0,0 +1,10 @@ +--- gnucobol-3.1.2/build_aux/config.sub 2021-04-08 02:49:20.863867201 -0700 ++++ gnucobol-3.1.2/build_aux/config.sub 2021-04-08 02:49:22.715869376 -0700 +@@ -1339,6 +1339,7 @@ + # Each alternative MUST end in a * to match a version number. + # sysv* is not here because it comes later, after sysvr4. + gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ | serenity* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | kopensolaris* | plan9* \