Skip to content

Commit

Permalink
Add r-nlme
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 committed Sep 27, 2024
1 parent 14282d9 commit a02049e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipes/recipes_emscripten/r-nlme/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
45 changes: 45 additions & 0 deletions recipes/recipes_emscripten/r-nlme/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
context:
name: r-nlme
version: 3.1-166
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: 237a14ee8d78755b11a7efe234b95be40b46fbdd1b4aaf463f6d532be1909762

build:
number: 0

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

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

about:
homepage: https://svn.r-project.org/R-packages/trunk/nlme
license: GPL-2.0-or-later
license_family: GPL3
summary: A fast JSON parser and generator optimized for statistical data and the web.

extra:
recipe-maintainers:
- IsabelParedes
- anutosh491

0 comments on commit a02049e

Please sign in to comment.