diff --git a/recipes/r-coenocliner/build.sh b/recipes/r-coenocliner/build.sh new file mode 100644 index 0000000000000..06cff3b76e604 --- /dev/null +++ b/recipes/r-coenocliner/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then + export DISABLE_AUTOBREW=1 + $R CMD INSTALL --build . +else + mkdir -p $PREFIX/lib/R/library/coenocliner + mv * $PREFIX/lib/R/library/coenocliner +fi diff --git a/recipes/r-coenocliner/meta.yaml b/recipes/r-coenocliner/meta.yaml new file mode 100644 index 0000000000000..bfe7c5914dd2b --- /dev/null +++ b/recipes/r-coenocliner/meta.yaml @@ -0,0 +1,39 @@ +{% set version = '0.2-2' %} +{% set posix = '' %} +{% set native = '' %} + +package: + name: r-coenocliner + version: {{ version|replace("-", "_") }} + +source: + url: {{ cran_mirror }}/src/contrib/coenocliner_{{ version }}.tar.gz + sha256: ae558be071d6362e48e942658bff35c21c80ac5c4af12b6b67a189ad46069064 + +build: + number: 0 + rpaths: + - lib/R/lib/ + - lib/ + +requirements: + build: + host: + - r-base + run: + - r-base + +test: + commands: + - $R -e "library('coenocliner')" + +about: + home: https://github.com/gavinsimpson/coenocliner/ + license: GPL-2 + summary: Simulate species occurrence and abundances (counts) along gradients. + license_family: GPL2 + license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2' + +extra: + recipe-maintainers: + - nick-youngblut