Skip to content

Commit

Permalink
Add r-matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 committed Oct 2, 2024
1 parent f700c86 commit ec3210b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipes/recipes_emscripten/r-matrix/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

echo "R_HOME=\$(PREFIX)/lib/R" > $BUILD_PREFIX/lib/R/etc/Makeconf
cat $PREFIX/lib/R/etc/Makeconf >> $BUILD_PREFIX/lib/R/etc/Makeconf

$BUILD_PREFIX/bin/R CMD INSTALL . \
--no-test-load --no-byte-compile --library=$PREFIX/lib/R/library
48 changes: 48 additions & 0 deletions recipes/recipes_emscripten/r-matrix/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
context:
name: r-matrix
version: 1.7-0
r_base_version: 4.4.1

package:
name: ${{ name }}
version: ${{ version }}

source:
url:
- https://cran.r-project.org/src/contrib/${{ name[2:] }}_${{ version }}.tar.gz
- https://cloud.r-project.org/src/contrib/${{ name[2:] }}_${{ version }}.tar.gz
sha256: fb97bba0df370222eb4f7e2da2e94dd01053b5e054b1c51829ff9a6efc08ad37

build:
number: 0

requirements:
build:
- r-base == ${{ r_base_version }}
- r-lattice
- ${{ compiler('c') }}
host:
- r-base == ${{ r_base_version }}
- r-lattice
- libblas
- liblapack
run:
- r-base == ${{ r_base_version }}
- r-lattice

tests:
- package_contents:
lib:
- R/library/${{ name[2:] }}/libs/${{ name[2:] }}.so

about:
homepage: http://Matrix.R-forge.R-project.org/
license: GPL-2.0-or-later
license_family: GPL3
license_file: LICENSE
summary: A rich hierarchy of sparse and dense matrix classes, including general, symmetric, triangular, and diagonal matrices with numeric, logical, or pattern entries. Efficient methods for operating on such matrices, often wrapping the 'BLAS', 'LAPACK', and 'SuiteSparse' libraries.

extra:
recipe-maintainers:
- IsabelParedes
- anutosh491

0 comments on commit ec3210b

Please sign in to comment.