Skip to content

Commit

Permalink
Create matlab-runtime
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DimitriPapadopoulos committed Oct 31, 2024
1 parent f11fe2e commit c3b3130
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/matlab-runtime-9.7/README.md
Original file line number Diff line number Diff line change
@@ -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.
25 changes: 25 additions & 0 deletions recipes/matlab-runtime-9.7/recipe.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c3b3130

Please sign in to comment.