From c3b3130781a99a020138eb9e5eb460327275dee1 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 10 Oct 2024 17:23:24 +0200 Subject: [PATCH] Create matlab-runtime Allow multiple versions of the Matlab Runtime. For that we need to include the version in the package name and make sure each version is installed alongside other versions. Note that the package version is simply the update number, 9 in the case of the 9.7/R2019b Linux binary: MATLAB_Runtime_R2019b_Update_9_glnxa64.zip For now, keep the package non-relocatable. The `patchelf` tool fails with obscure error messages on MATLAB Runtime binaries. --- recipes/matlab-runtime-9.7/README.md | 7 +++++++ recipes/matlab-runtime-9.7/recipe.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 recipes/matlab-runtime-9.7/README.md create mode 100644 recipes/matlab-runtime-9.7/recipe.yaml diff --git a/recipes/matlab-runtime-9.7/README.md b/recipes/matlab-runtime-9.7/README.md new file mode 100644 index 0000000..1bd436c --- /dev/null +++ b/recipes/matlab-runtime-9.7/README.md @@ -0,0 +1,7 @@ +# Create the matlab-runtime package + +Find more information in the [MATLAB Runtime](https://mathworks.com/help/compiler/matlab-runtime.html) MathWorks documentation. + +The binaries are available starting from the [Download and Install MATLAB Runtime](https://mathworks.com/help/compiler/install-the-matlab-runtime.html) page. + +We chose the official MATLAB Runtime Version numbers listed in the [MATLAB Runtime](https://mathworks.com/products/compiler/matlab-runtime.html) download page, typically 9.7. Alternatives include v97 or R2019b. None of these versioning schemes account for updates (R2019b Update 9). Sigh. diff --git a/recipes/matlab-runtime-9.7/recipe.yaml b/recipes/matlab-runtime-9.7/recipe.yaml new file mode 100644 index 0000000..6211061 --- /dev/null +++ b/recipes/matlab-runtime-9.7/recipe.yaml @@ -0,0 +1,25 @@ +package: + name: matlab-runtime-9.7 + version: 9 + +source: + url: https://ssd.mathworks.com/supportfiles/downloads/R2019b/Release/9/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2019b_Update_9_glnxa64.zip + sha256: d213e2960a20332f121ec4addf81469b2a2aab2ad8b4ed4226875da6e8af7c65 + +build: + number: 0 + script: + - ./install -mode silent -agreeToLicense yes -outputFile install_log.txt -destinationFolder $PREFIX/MATLAB/MATLAB_Runtime + dynamic_linking: + binary_relocation: false + +about: + homepage: https://mathworks.com/help/compiler/install-the-matlab-runtime.html + license_file: MCR_license.txt + summary: | + Run packaged MATLAB applications on computers without MATLAB + description: | + MATLAB Runtime (MCR) is a freely-available set of shared libraries, + MATLAB code, and other files that enables the execution of MATLAB files + on computers without an installed version of MATLAB. + documentation: https://mathworks.com/help/compiler/matlab-runtime.html