From 045066528d96fc4a2593c616b929296fc6f45b95 Mon Sep 17 00:00:00 2001 From: Nick Youngblut Date: Sun, 29 Jul 2018 08:41:33 +0200 Subject: [PATCH] R coenocliner (#10127) * Add r-coenocliner * modified maintainers --- recipes/r-coenocliner/build.sh | 8 +++++++ recipes/r-coenocliner/meta.yaml | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 recipes/r-coenocliner/build.sh create mode 100644 recipes/r-coenocliner/meta.yaml 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