Skip to content

Commit

Permalink
Add r-isoband (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsabelParedes authored Sep 11, 2024
1 parent 884eb46 commit 4c49088
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipes/recipes_emscripten/r-isoband/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
46 changes: 46 additions & 0 deletions recipes/recipes_emscripten/r-isoband/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
context:
name: r-isoband
version: 0.2.7
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: 7693223343b45b86de2b5b638ff148f0dafa6d7b1237e822c5272902f79cdf61

build:
number: 0

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

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

about:
homepage: https://isoband.r-lib.org/
repository: https://github.com/r-lib/isoband/
license: MIT
license_family: MIT
license_file: LICENSE
summary: |
A fast C++ implementation to generate contour lines (isolines) and contour
polygons (isobands) from regularly spaced grids containing elevation data.
extra:
recipe-maintainers:
- IsabelParedes

0 comments on commit 4c49088

Please sign in to comment.