Merge remote-tracking branch 'upstream/v3'

This commit is contained in:
Dan Vargas 2021-03-15 11:37:43 -05:00
commit 793509df1e
41 changed files with 262 additions and 42 deletions

View file

@ -11,10 +11,11 @@ build build-all: $(addsuffix .pkg.tar.gz, ${PACKAGES})
define PKG_RULE
$(1).pkg.tar.gz: $(subst -,/,$(1))/ $(subst -,/,$(1))/pkg-info.json
$(1).pkg.tar.gz: $(subst -,/,$(1)) $(subst -,/,$(1))/pkg-info.json
cd $$< && chmod +x ./build.sh && ./build.sh
rm -f $$@
tar czf $$@ $$< --transform='s|$$<||'
tar czf $$@ -C $$< .
endef
$(foreach pkg,$(PACKAGES),$(eval $(call PKG_RULE,$(pkg))))

View file

@ -18,3 +18,4 @@ make -j$(nproc)
make install -j$(nproc)
cd ../
rm -rf build

View file

@ -8,4 +8,4 @@ rm dart.zip
cp -r dart-sdk/* .
rm -rf dart-sdk
chmod -R +rx bin
chmod -R +rx bin

View file

@ -2,4 +2,4 @@ curl -L https://github.com/denoland/deno/releases/download/v1.7.5/deno-x86_64-un
unzip -o deno.zip
rm deno.zip
chmod +x deno
chmod +x deno

View file

@ -18,3 +18,4 @@ make -j$(nproc)
make install -j$(nproc)
cd ../
rm -rf build

View file

@ -23,3 +23,4 @@ make -j$(nproc)
make install -j$(nproc)
cd ../
rm -rf build obj

5
packages/go/1.16.2/build.sh vendored Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
curl -LO https://golang.org/dl/go1.16.2.linux-amd64.tar.gz
tar -xzf go1.16.2.linux-amd64.tar.gz
rm go1.16.2.linux-amd64.tar.gz

2
packages/go/1.16.2/environment vendored Normal file
View file

@ -0,0 +1,2 @@
export PATH=$PWD/go/bin:$PATH
export GOPATH=$PWD/gopath

6
packages/go/1.16.2/metadata.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"language": "go",
"version": "1.16.2",
"author": "Victor Frazao <luiz_victor_frazao@hotmail.com>",
"aliases": ["go", "golang"]
}

3
packages/go/1.16.2/run vendored Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
GOCACHE=$PWD go run "$@"

7
packages/go/1.16.2/test.go vendored Normal file
View file

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("OK")
}

View file

@ -6,3 +6,4 @@ curl "https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48e
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz

View file

@ -9,4 +9,4 @@ cd build/jelly
../../bin/python3.9 setup.py install --optimize=1
cd ../../
rm -rf build
rm -rf build

6
packages/julia/1.5.4/build.sh vendored Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
curl -OL https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.4-linux-x86_64.tar.gz
tar zxvf julia-1.5.4-linux-x86_64.tar.gz
rm julia-1.5.4-linux-x86_64.tar.gz

3
packages/julia/1.5.4/environment vendored Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
export PATH=$PWD/julia-1.5.4/bin:$PATH

6
packages/julia/1.5.4/metadata.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"language": "julia",
"version": "1.5.4",
"aliases": ["jl"],
"author": "Victor Frazao <luiz_victor_frazao@hotmail.com>"
}

4
packages/julia/1.5.4/run vendored Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
julia --startup-file=no --history-file=no "$@"

1
packages/julia/1.5.4/test.jl vendored Normal file
View file

@ -0,0 +1 @@
println("OK")

View file

@ -7,4 +7,4 @@ unzip kotlin.zip
rm kotlin.zip
cp -r kotlinc/* .
rm -rf kotlinc
rm -rf kotlinc

View file

@ -17,3 +17,4 @@ make install -j$(nproc)
cd ../../
rm -rf build

View file

@ -18,3 +18,4 @@ make -j$(nproc)
make install -j$(nproc)
cd ../
rm -rf build

View file

@ -1,4 +1,4 @@
#!/bin/bash
curl "https://nodejs.org/dist/v15.10.0/node-v15.10.0-linux-x64.tar.xz" -o node.tar.xz
tar xf node.tar.xz --strip-components=1
rm node.tar.xz
rm node.tar.xz

View file

@ -17,4 +17,4 @@ make -j$(nproc)
make install -j$(nproc)
cd ../../
rm -rf build
rm -rf build

View file

@ -1 +1 @@
export PATH=$PWD/php-8.0.2/bin:$PATH
export PATH=$PWD/bin:$PATH

View file

@ -18,3 +18,4 @@ cd ..
rm -rf build

20
packages/ruby/2.5.1/build.sh vendored Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl "https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.gz" -o ruby.tar.gz
tar xzf ruby.tar.gz --strip-components=1
rm ruby.tar.gz
./configure --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build

1
packages/ruby/2.5.1/environment vendored Normal file
View file

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

6
packages/ruby/2.5.1/metadata.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"language": "ruby",
"version": "2.5.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["ruby", "rb"]
}

3
packages/ruby/2.5.1/run vendored Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
ruby $*

1
packages/ruby/2.5.1/test.rb vendored Normal file
View file

@ -0,0 +1 @@
puts("OK")

View file

@ -4,4 +4,4 @@ source ../../node/15.10.0/build.sh
source ./environment
bin/npm install -g typescript@4.2.3
bin/npm install -g typescript@4.2.3