Skip to content

Commit

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

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/pkgconfig
license: MIT
license_family: MIT
license_file: LICENSE
summary: Set configuration options on a per-package basis. Options set by a given package only
apply to that package, other packages are unaffected.

extra:
recipe-maintainers:
- IsabelParedes
- anutosh491

0 comments on commit e8386a5

Please sign in to comment.