diff --git a/build-fail-blacklist b/build-fail-blacklist index 74e9f7fb8c06e..696effb15a700 100644 --- a/build-fail-blacklist +++ b/build-fail-blacklist @@ -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 diff --git a/recipes/r-nodiv/build.sh b/recipes/r-nodiv/build.sh index 32bc29aa16362..2c2d35b07c819 100644 --- a/recipes/r-nodiv/build.sh +++ b/recipes/r-nodiv/build.sh @@ -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 diff --git a/recipes/r-nodiv/meta.yaml b/recipes/r-nodiv/meta.yaml index a79ac103ec31e..f85b294a112ae 100644 --- a/recipes/r-nodiv/meta.yaml +++ b/recipes/r-nodiv/meta.yaml @@ -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: @@ -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 @@ -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. . + distributions. Methods in Ecology and Evolution 5(11): 1225-1235. + . 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