From c03ccab42f186a694d6c73cd075f3b4efcb78a4a Mon Sep 17 00:00:00 2001 From: tglozar Date: Sun, 23 Jan 2022 11:11:20 +0000 Subject: [PATCH] * added graalvm (22.0.0.1) - A high-performance JDK distribution --- package/java/graalvm/graalvm.cache | 26 +++++++++++++++++++ package/java/graalvm/graalvm.conf | 51 ++++++++++++++++++++++++++++++++++++++ package/java/graalvm/graalvm.desc | 32 ++++++++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 package/java/graalvm/graalvm.cache create mode 100644 package/java/graalvm/graalvm.conf create mode 100644 package/java/graalvm/graalvm.desc diff --git a/package/java/graalvm/graalvm.cache b/package/java/graalvm/graalvm.cache new file mode 100644 index 0000000000..d6bec77341 --- /dev/null +++ b/package/java/graalvm/graalvm.cache @@ -0,0 +1,26 @@ + +[TIMESTAMP] 1642935954 Sun Jan 23 12:05:54 2022 +[BUILDTIME] 100 (9) +[SIZE] 512.75 MB, 5084 files + +[DEP] 00-dirtree +[DEP] binutils +[DEP] coreutils +[DEP] dash +[DEP] diffutils +[DEP] file +[DEP] findutils +[DEP] gawk +[DEP] git +[DEP] grep +[DEP] java-dirtree +[DEP] linux-header +[DEP] make +[DEP] ncurses +[DEP] net-tools +[DEP] ninja +[DEP] openjdk +[DEP] python2 +[DEP] sed +[DEP] sysfiles +[DEP] tar diff --git a/package/java/graalvm/graalvm.conf b/package/java/graalvm/graalvm.conf new file mode 100644 index 0000000000..c37d641218 --- /dev/null +++ b/package/java/graalvm/graalvm.conf @@ -0,0 +1,51 @@ +# --- T2-COPYRIGHT-NOTE-BEGIN --- +# T2 SDE: package/*/graalvm/graalvm.conf +# Copyright (C) 2022 The T2 SDE Project +# +# This Copyright note is generated by scripts/Create-CopyPatch, +# more information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2. +# --- T2-COPYRIGHT-NOTE-END --- + +build() { + # Extract mx + tar -xf ../archdir/mx-*.tar.* + eval var_append PATH ':' "$PWD/mx-*" + export PATH + + # Create dummy Git repository + # Note: this is needed for mx + git init + touch .dummy + git add .dummy + git config user.name "T2 Project" + git config user.email "t2@t2-project.org" + git commit -m "$pkg $ver" + + # Build GraalVM + # Note: Sulong and Esperesso not enabled, because Sulong build fails + export JAVA_HOME=$root/opt/java + echo $PATH + cd vm/ + mx build + cd .. +} + +install() { + # Install GraalVM + mkdir -p $root/opt/java/graalvm + cp -Rv vm/latest_graalvm_home/* $root/opt/java/graalvm/ + + # Install mx + # Note: mx is needed to build additional GraalVM componenets + mkdir -p $root/opt/java/graalvm/mx + cp -Rv mx-*/* $root/opt/java/graalvm/mx/ +} + +hook_add premake 2 build +hook_add postmake 2 install + +makeopt= +makeinstopt= diff --git a/package/java/graalvm/graalvm.desc b/package/java/graalvm/graalvm.desc new file mode 100644 index 0000000000..1469486065 --- /dev/null +++ b/package/java/graalvm/graalvm.desc @@ -0,0 +1,32 @@ +[COPY] --- T2-COPYRIGHT-NOTE-BEGIN --- +[COPY] T2 SDE: package/*/graalvm/graalvm.desc +[COPY] Copyright (C) 2022 The T2 SDE Project +[COPY] +[COPY] This Copyright note is generated by scripts/Create-CopyPatch, +[COPY] more information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License version 2. +[COPY] --- T2-COPYRIGHT-NOTE-END --- + +[I] A high-performance JDK distribution + +[T] GraalVM is a high-performance JDK distribution designed to accelerate +[T] the execution of applications written in Java and other JVM languages along +[T] with support for JavaScript, Ruby, Python, and a number of other popular +[T] languages. + +[U] https://www.graalvm.org/ + +[A] Oracle Corporation +[M] Tomas Glozar + +[C] extra/emulator + +[L] GPL +[S] Stable +[V] 22.0.0.1 +[P] X -----5---9 151.000 + +[D] 481001566e654ef98e97d941c5f05f65d89daa9b76c26e815f3278f8 vm-22.0.0.1.tar.gz https://github.com/oracle/graal/archive/refs/tags/ +[D] b244bb4b4c22e5cc384afa500afda37f97c65fd3e8d3c2085a3beb49 mx-5.317.12.tar.gz !https://github.com/graalvm/mx/archive/refs/tags/5.317.12.tar.gz -- 2.11.4.GIT