Skip to content

Commit d3c7b6b

Browse files
committed
Fix recipe
1 parent 71b9491 commit d3c7b6b

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

recipe/recipe.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ source:
1212

1313
build:
1414
number: 0
15-
rpaths:
16-
- lib/R/lib/
17-
- lib/
18-
missing_dso_whitelist:
19-
- '*/R.dll' # [win]
15+
dynamic_linking:
16+
rpaths:
17+
- lib/R/lib/
18+
- lib/
19+
missing_dso_allowlist:
20+
- '*/R.dll' # [win]
2021

2122
requirements:
2223
build:
@@ -63,22 +64,22 @@ requirements:
6364
- r-rlang
6465

6566
tests:
66-
commands:
67-
- test -f ${PREFIX}/bin/xr # [unix]
68-
- test -f ${PREFIX}/share/jupyter/kernels/xr/kernel.json # [unix]
69-
- test -d ${PREFIX}/include/xeus-r # [unix]
70-
- test -f ${PREFIX}/include/xeus-r/xinterpreter.hpp # [unix]
71-
- test -f ${PREFIX}/lib/cmake/xeus-r/xeus-rConfig.cmake # [unix]
72-
- test -f ${PREFIX}/lib/cmake/xeus-r/xeus-rConfigVersion.cmake # [unix]
73-
- test -f ${PREFIX}/lib/R/library/hera/R/hera.rdb # [unix]
67+
- package_contents:
68+
files:
69+
- bin/xr # [unix]
70+
- share/jupyter/kernels/xr/kernel.json # [unix]
71+
- include/xeus-r/xinterpreter.hpp # [unix]
72+
- lib/cmake/xeus-r/xeus-rConfig.cmake # [unix]
73+
- lib/cmake/xeus-r/xeus-rConfigVersion.cmake # [unix]
74+
- lib/R/library/hera/R/hera.rdb # [unix]
7475

76+
- script:
7577
- if not exist %LIBRARY_BIN%\\xr.exe (exit 1) # [win]
7678
- if not exist %LIBRARY_PREFIX%\\share\\jupyter\\kernels\\xr\\kernel.json (exit 1) # [win]
7779
- if not exist %LIBRARY_LIB%\\cmake\\xeus-r\\xeus-rConfig.cmake (exit 1) # [win]
7880
- if not exist %LIBRARY_LIB%\\cmake\\xeus-r\\xeus-rConfigVersion.cmake (exit 1) # [win]
7981
# The kernel spec in installed in the general PREFIX
8082
- if not exist %PREFIX%\\share\\jupyter\\kernels\\xr\\kernel.json (exit 1) # [win]
81-
8283
- $R -e "library('hera')" # [not win]
8384
- "\"%R%\" -e \"library('hera')\"" # [win]
8485

0 commit comments

Comments
 (0)