Skip to content

Commit

Permalink
updated r-nodiv recipe; unblacklisted (#10132)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-youngblut authored Jul 29, 2018
1 parent 44ea979 commit 2a5d596
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
1 change: 0 additions & 1 deletion build-fail-blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ recipes/r-ngsplot
recipes/r-ngsplot-hg19
recipes/r-ngsplot-hg38
recipes/r-ngsplot-mm10
recipes/r-nodiv
recipes/r-oai
recipes/r-pamr
recipes/r-patpro
Expand Down
12 changes: 7 additions & 5 deletions recipes/r-nodiv/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

mv DESCRIPTION DESCRIPTION.old
grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION

$R CMD INSTALL --build .
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/nodiv
mv * $PREFIX/lib/R/library/nodiv
fi
21 changes: 12 additions & 9 deletions recipes/r-nodiv/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{% set name = 'nodiv' %}
{% set version = '1.2.0' %}
{% set posix = '' %}
{% set native = '' %}

package:
name: r-{{ name|lower }}
name: r-nodiv
version: {{ version|replace("-", "_") }}

source:
fn: {{ name }}_{{ version }}.tar.gz
url:
- https://cran.r-project.org/src/contrib/{{ name }}_{{ version }}.tar.gz
- https://cran.r-project.org/src/contrib/Archive/{{ name }}/{{ name }}_{{ version }}.tar.gz
url: {{ cran_mirror }}/src/contrib/nodiv_{{ version }}.tar.gz
sha256: cb5517dcf6fd1b614891ddef0c555dabc0df07419fcc68f982c984660ba6b02d

build:
Expand All @@ -20,13 +18,13 @@ build:

requirements:
build:
host:
- r-base
- r-ape
- r-picante
- r-raster
- r-sp
- r-vegan

run:
- r-base
- r-ape
Expand All @@ -41,13 +39,18 @@ test:

about:
home: https://CRAN.R-project.org/package=nodiv
license: MIT + file LICENSE
license: MIT
summary: 'An implementation of the nodiv algorithm, see Borregaard, M.K., Rahbek, C., Fjeldsaa,
J., Parra, J.L., Whittaker, R.J. & Graham, C.H. 2014. Node-based analysis of species
distributions. Methods in Ecology and Evolution 5(11): 1225-1235. <DOI:10.1111/2041-210X.12283>.
distributions. Methods in Ecology and Evolution 5(11): 1225-1235.
<DOI:10.1111/2041-210X.12283>.
Package for phylogenetic analysis of species distributions. The main function goes
through each node in the phylogeny, compares the distributions of the two descendant
nodes, and compares the result to a null model. This highlights nodes where major
distributional divergence have occurred. The distributional divergence for these
nodes is mapped using the SOS statistic.'
license_family: MIT

extra:
recipe-maintainers:
- nick-youngblut

0 comments on commit 2a5d596

Please sign in to comment.