split version
{% set name = "spidermonkey" %}
{% set version = "91.8.0" %}
+{% set majorversion = version.split('.')[0] %}
package:
name: {{ name|lower }}
@@ -36,11 +37,11 @@ requirements:
test:
commands:
- - js{{ version[0] }} -e "console.log('hello')"
- - js{{ version[0] }}-config --version
- - test -f $PREFIX/lib/libmozjs-{{ version[0] }}${SHLIB_EXT} # [unix]
- - test -f $PREFIX/include/mozjs-{{ version[0] }}/js-config.h # [unix]
- - test -f $PREFIX/include/mozjs-{{ version[0] }}/jsapi.h # [unix]
+ - js{{ majorversion }} -e "console.log('hello')"
+ - js{{ majorversion }}-config --version
+ - test -f $PREFIX/lib/libmozjs-{{ majorversion }}${SHLIB_EXT} # [unix]
+ - test -f $PREFIX/include/mozjs-{{ majorversion }}/js-config.h # [unix]
+ - test -f $PREFIX/include/mozjs-{{ majorversion }}/jsapi.h # [unix]
about:
home: https://spidermonkey.dev/
