pkg(cobol-3.1.2): Adds cobol 3.1.2 (gnucobol) (#235)

This commit is contained in:
Victor Frazao 2021-04-27 19:02:59 -04:00 committed by GitHub
parent 65cbefa94e
commit 3355ffafb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 47 additions and 0 deletions

20
packages/cobol/3.1.2/build.sh vendored Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Put instructions to build your package in here
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl -OL "https://downloads.sourceforge.net/project/gnucobol/gnucobol/3.1/gnucobol-3.1.2.tar.xz"
tar xf gnucobol-3.1.2.tar.xz --strip-components=1
# === autoconf based ===
./configure --prefix "$PREFIX" --without-db
make -j$(nproc)
make install -j$(nproc)
cd ../
rm -rf build

4
packages/cobol/3.1.2/compile vendored Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
cobc -o binary --free -x -L lib "$@"
chmod +x binary

5
packages/cobol/3.1.2/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$PWD/lib

5
packages/cobol/3.1.2/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "cobol",
"version": "3.1.2",
"aliases": ["cob"]
}

5
packages/cobol/3.1.2/run vendored Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
shift
./binary "$@"

8
packages/cobol/3.1.2/test.cob vendored Normal file
View File

@ -0,0 +1,8 @@
*> Test Program
identification division.
program-id. ok-test.
procedure division.
display "OK"
goback.
end program ok-test.