Compare commits

...

4 Commits

Author SHA1 Message Date
Dan Vargas e975b64f2d
pkg(dragon-1.9.8): Add dragon 1.9.8 (#220)
* pkg(dragon-1.9.8): Add dragon 1.9.8

* pkg(dragon-1.9.8): Remove manpages and self alias
2021-04-22 14:31:00 +12:00
Dan Vargas 8424307029
pkg(cjam-0.6.5): Add cjam 0.6.5 (#223)
* pkg(cjam-0.6.5): Add cjam 0.6.5

* pkg(cjam-0.6.5): Run jar file normally and remove self alias
2021-04-22 14:30:20 +12:00
Dan Vargas 2a85951426
pkg(golfscript-1.0.0): Add golfscript 1.0.0 (#221) 2021-04-22 13:35:33 +12:00
Dan Vargas 353de20ae9
pkg(pyth-1.0.0): Add pyth 1.0.0 (#222) 2021-04-22 13:34:48 +12:00
20 changed files with 106 additions and 0 deletions

6
packages/cjam/0.6.5/build.sh vendored Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# CJam depends on Java
source ../../java/15.0.2/build.sh
curl -L "https://downloads.sourceforge.net/project/cjam/cjam-0.6.5/cjam-0.6.5.jar?ts=gAAAAABgf6xp4bmSJmNMjz8z23zWVbRgW6mhaFrnxdBe_riqC4rZnhUpXJrQzPpSqhniaoGptfkI_r-tjjBc5326oRmloXIJYQ%3D%3D&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcjam%2Ffiles%2Fcjam-0.6.5%2Fcjam-0.6.5.jar%2Fdownload" -o bin/cjam.jar

5
packages/cjam/0.6.5/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# CJam and Java Path
export PATH=$PWD/bin:$PATH
export CJAM_PATH=$PWD/bin

5
packages/cjam/0.6.5/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "cjam",
"version": "0.6.5",
"aliases": []
}

4
packages/cjam/0.6.5/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# run cjam jar
java -jar "$CJAM_PATH"/cjam.jar "$@"

1
packages/cjam/0.6.5/test.cjam vendored Normal file
View File

@ -0,0 +1 @@
"OK"

25
packages/dragon/1.9.8/build.sh vendored Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Dragon install
mkdir -p build
cd build
curl "https://dragon-lang.org/Dragon_1.9.8_linux(x86_x64).tar.bz2" -o dragon.tar.bz2
tar xjf dragon.tar.bz2 --strip-components=1
### re-purposed the install script for local install and without manpages
mkdir -p ../bin
cp dragon ../bin/
chmod +x ../bin/dragon
cp -r runtime ../bin/
chmod +x ../bin/runtime/bin/java
sed -i 's|/bin/runtime/bin/java|$JAVA_RUNTIME|g' ../bin/dragon
###
cd ../
rm -rf build

5
packages/dragon/1.9.8/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# dragon binary & java runtime path
export PATH=$PWD/bin:$PATH
export JAVA_RUNTIME=$PWD/bin/runtime/bin/java

5
packages/dragon/1.9.8/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "dragon",
"version": "1.9.8",
"aliases": []
}

4
packages/dragon/1.9.8/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# dragon run
dragon -r "$@"

1
packages/dragon/1.9.8/test.dragon vendored Normal file
View File

@ -0,0 +1 @@
showln "OK"

10
packages/golfscript/1.0.0/build.sh vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# golfscript was implemented as a Ruby script originally
source ../../ruby/2.5.1/build.sh
curl "http://www.golfscript.com/golfscript/golfscript.rb" -o bin/golfscript.rb
# using the shebang to run it with the right Ruby
sed -i "s|/usr/bin/|$PWD/bin/|g" bin/golfscript.rb
chmod +x bin/golfscript.rb

4
packages/golfscript/1.0.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Path to Ruby and golfscript.rb
export PATH=$PWD/bin:$PATH

View File

@ -0,0 +1,5 @@
{
"language": "golfscript",
"version": "1.0.0",
"aliases": ["golfscript"]
}

4
packages/golfscript/1.0.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# golfscript only takes code file and stdin
golfscript.rb "$1"

View File

@ -0,0 +1 @@
"OK"

6
packages/pyth/1.0.0/build.sh vendored Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Pyth install
source ../../python/3.9.1/build.sh
git clone -q "https://github.com/isaacg1/pyth.git" pyth

5
packages/pyth/1.0.0/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Python and Pyth path
export PATH=$PWD/bin:$PATH
export PYTH_PATH=$PWD/pyth

5
packages/pyth/1.0.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "pyth",
"version": "1.0.0",
"aliases": ["pyth"]
}

4
packages/pyth/1.0.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# pyth only takes filename and stdin
python3 "$PYTH_PATH"/pyth.py "$1"

1
packages/pyth/1.0.0/test.pyth vendored Normal file
View File

@ -0,0 +1 @@
"OK