Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe for xeus-r #1451

Merged
merged 7 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions recipes/recipes_emscripten/xeus-r/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

set -eux

# Create build directory
mkdir -p build
cd build

# Set up the environment variables for cross-compiling to WASM
export CMAKE_PREFIX_PATH=$PREFIX
export CMAKE_SYSTEM_PREFIX_PATH=$PREFIX

# Configure step with Emscripten's emcmake
emcmake cmake ${CMAKE_ARGS} -S .. -B . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DXEUS_R_EMSCRIPTEN_WASM_BUILD=ON \
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON

# Build step with emmake
emmake make -j1

# Install step
emmake make install
62 changes: 62 additions & 0 deletions recipes/recipes_emscripten/xeus-r/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
context:
version: 0.3.0
name: xeus-r
r_base_version: 4.4.1

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

source:
url: https://github.com/jupyter-xeus/xeus-r/archive/refs/tags/${{ version }}.tar.gz
sha256: f0b4308b5a9ec1e3acf8f31fb20897f3814cfea2403be5ad79fe2617652a963c

build:
number: 0

requirements:
build:
- ${{ compiler("cxx") }}
- cmake
- make # [unix]
host:
- nlohmann_json
- xeus-lite >=3.0.0,<4.0
- xeus >=5.0.0,<6.0
- pcre2>=10.43
- zlib>=1.2.13
- libflang # for FortranRuntime
- xz # for lzma
- bzip2
- libiconv
- r-base >= ${{ r_base_version }}
run:
- r-base >= ${{ r_base_version }}
- r-rlang
- r-evaluate
- r-jsonlite
- r-glue
- r-cli >=3.6.3
- r-repr
- r-IRdisplay
- r-ggplot2
- r-htmltools
- r-munsell >=0.5.1
- r-colorspace

tests:
- script:
- test -f $PREFIX/bin/xr.wasm
- test -f $PREFIX/bin/xr.js

about:
license: GPL-3.0-only
license_family: GPL
license_file: LICENSE
summary: Jupyter kernel for the R programming language
homepage: https://github.com/jupyter-xeus/xeus-r

extra:
recipe-maintainers:
- IsabelParedes
- anutosh491
Loading