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 r-crayon #1344

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
9 changes: 9 additions & 0 deletions recipes/recipes_emscripten/r-crayon/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
42 changes: 42 additions & 0 deletions recipes/recipes_emscripten/r-crayon/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
context:
name: r-crayon
version: 1.5.3
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: 3e74a0685541efb5ea763b92cfd5c859df71c46b0605967a0b5dbb7326e9da69

build:
number: 0

requirements:
build:
- r-base == ${{ r_base_version }}
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://github.com/r-lib/crayon#readme
license: MIT
license_family: MIT
license_file: LICENSE
summary: Colored terminal output on terminals that support 'ANSI' color and highlight codes. It also works in 'Emacs' 'ESS'. 'ANSI' color support is automatically detected. Colors and highlighting can be combined and nested. New styles can also be created easily. This package was inspired by the 'chalk' 'JavaScript' project.

extra:
recipe-maintainers:
- IsabelParedes
- anutosh491
Loading