Skip to content

Commit

Permalink
Add r-quickjsr.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrueffer committed Dec 30, 2023
1 parent 347b51e commit 817359a
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/r-quickjsr/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%R%" CMD INSTALL --build . %R_ARGS%
IF %ERRORLEVEL% NEQ 0 exit /B 1
3 changes: 3 additions & 0 deletions recipes/r-quickjsr/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
export DISABLE_AUTOBREW=1
${R} CMD INSTALL --build . ${R_ARGS}
64 changes: 64 additions & 0 deletions recipes/r-quickjsr/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{% set version = '1.0.7' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
name: r-quickjsr
version: {{ version|replace("-", "_") }}

source:
url:
- {{ cran_mirror }}/src/contrib/QuickJSR_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/QuickJSR/QuickJSR_{{ version }}.tar.gz
sha256: 3161c243fed64ea215084b44141bea9ee416fa1ef3910aeb78abe55f3d3e9893

build:
merge_build_host: True # [win]
number: 0
rpaths:
- lib/R/lib/
- lib/

requirements:
build:
- {{ compiler('c') }} # [not win]
- {{ compiler('m2w64_c') }} # [win]
- {{ compiler('cxx') }} # [not win]
- {{ compiler('m2w64_cxx') }} # [win]
- {{ posix }}filesystem # [win]
- {{ posix }}make
- {{ posix }}sed # [win]
- {{ posix }}coreutils # [win]
- {{ posix }}zip # [win]
- cross-r-base {{ r_base }} # [build_platform != target_platform]
host:
- r-base
- r-r6
- r-rcpp
- r-jsonlite
run:
- r-base
- {{ native }}gcc-libs # [win]
- r-r6
- r-rcpp
- r-jsonlite

test:
commands:
- $R -e "library('QuickJSR')" # [not win]
- "\"%R%\" -e \"library('QuickJSR')\"" # [win]

about:
home: https://github.com/andrjohns/QuickJSR https://bellard.org/quickjs/ (upstream)
license: MIT
summary: An 'R' interface to the 'QuickJS' portable 'JavaScript' engine. The engine is bundled
entirely within the package, requiring no external system dependencies beyond a
'C' compiler.
license_family: MIT
license_file:
- {{ environ["PREFIX"] }}/lib/R/share/licenses/MIT
- LICENSE

extra:
recipe-maintainers:
- conda-forge/r

0 comments on commit 817359a

Please sign in to comment.