mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
pkg(pascal-3.2.0): Add pascal (FreePascal) 3.2.0 (#187)
This commit is contained in:
parent
eae11d6025
commit
928c2a6d16
6 changed files with 46 additions and 0 deletions
25
packages/pascal/3.2.0/build.sh
vendored
Executable file
25
packages/pascal/3.2.0/build.sh
vendored
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
curl -L "https://sourceforge.net/projects/freepascal/files/Linux/3.2.0/fpc-3.2.0-x86_64-linux.tar/download" -o pascal.tar
|
||||
tar xf pascal.tar --strip-components=1
|
||||
|
||||
# FreePascal uses an interactive installer
|
||||
./install.sh << ANSWERS
|
||||
$PREFIX
|
||||
n
|
||||
n
|
||||
n
|
||||
ANSWERS
|
||||
|
||||
cd ..
|
||||
rm -rf build
|
||||
|
||||
# A sample config (needed for each "project") is written to /etc
|
||||
# We'll copy that into the local lib dir (fpc searches there too on compile)
|
||||
mkdir lib/fpc/etc
|
||||
cp -r /etc/fp* lib/fpc/etc/
|
5
packages/pascal/3.2.0/compile
vendored
Normal file
5
packages/pascal/3.2.0/compile
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Compile pascal files
|
||||
fpc -oout -v0 "$@"
|
||||
chmod +x out
|
1
packages/pascal/3.2.0/environment
vendored
Normal file
1
packages/pascal/3.2.0/environment
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export PATH=$PWD/bin:$PATH
|
6
packages/pascal/3.2.0/metadata.json
vendored
Normal file
6
packages/pascal/3.2.0/metadata.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"language": "pascal",
|
||||
"version": "3.2.0",
|
||||
"author": "Dan Vargas <danvargas46@gmail.com>",
|
||||
"aliases": ["pascal", "freepascal", "pp", "pas"]
|
||||
}
|
4
packages/pascal/3.2.0/run
vendored
Normal file
4
packages/pascal/3.2.0/run
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
shift # Filename is only used to compile
|
||||
./out "$@"
|
5
packages/pascal/3.2.0/test.pp
vendored
Normal file
5
packages/pascal/3.2.0/test.pp
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
program test;
|
||||
|
||||
begin
|
||||
writeln('OK');
|
||||
end.
|
Loading…
Add table
Add a link
Reference in a new issue