Skip to content

Commit

Permalink
Merge pull request conda-forge#5907 from leylabmpi/master
Browse files Browse the repository at this point in the history
Add r-caper recipe
  • Loading branch information
mariusvniekerk authored May 20, 2018
2 parents 99ac626 + d5f3908 commit 8a0793e
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/r-caper/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%R%" CMD INSTALL --build .
IF %ERRORLEVEL% NEQ 0 exit 1
8 changes: 8 additions & 0 deletions recipes/r-caper/build.sh
Original file line number Diff line number Diff line change
@@ -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/caper
mv * $PREFIX/lib/R/library/caper
fi
57 changes: 57 additions & 0 deletions recipes/r-caper/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{% set version = '1.0.1' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}
{% set cran_mirror = 'https://cran.r-project.org' %}

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

source:
fn: caper_{{ version }}.tar.gz
url:
- {{ cran_mirror }}/src/contrib/caper_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/caper/caper_{{ version }}.tar.gz
sha256: 44047c53883e7c4c579878d0a4ef9855478cd3f7bebad348135bf3239fd5a055

build:
number: 0
skip: true # [win32]
rpaths:
- lib/R/lib/
- lib/

requirements:
build:
host:
- r-base
- r-mass
- r-ape >=3.0_6
- r-mvtnorm
run:
- r-base
- r-mass
- r-ape >=3.0_6
- r-mvtnorm

test:
commands:
- $R -e "library('caper')" # [not win]
- "\"%R%\" -e \"library('caper')\"" # [win]

about:
home: https://CRAN.R-project.org/package=caper
license: GPL (>= 2)
summary: Functions for performing phylogenetic comparative analyses.
license_family: GPL3
license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3' # [unix]
license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3' # [win]

extra:
recipe-maintainers:
- nick-youngblut
- johanneskoester
- bgruening
- daler
- jdblischak
- cbrueffer
2 changes: 2 additions & 0 deletions recipes/r-picante/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%R%" CMD INSTALL --build .
IF %ERRORLEVEL% NEQ 0 exit 1
8 changes: 8 additions & 0 deletions recipes/r-picante/build.sh
Original file line number Diff line number Diff line change
@@ -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/picante
mv * $PREFIX/lib/R/library/picante
fi
67 changes: 67 additions & 0 deletions recipes/r-picante/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{% set version = '1.7' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}
{% set cran_mirror = 'https://cran.r-project.org' %}

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

source:
fn: picante_{{ version }}.tar.gz
url:
- {{ cran_mirror }}/src/contrib/picante_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/picante/picante_{{ version }}.tar.gz
sha256: 75e4d73080db67e776562a1d58685438461cbde39af46900c7838da56aef0a62

build:
number: 0
skip: true # [win]
rpaths:
- lib/R/lib/
- lib/

requirements:
build:
- {{ compiler('c') }} # [not win]
- {{native}}toolchain # [win]
- {{posix}}filesystem # [win]
- {{posix}}make
host:
- r-base
- r-ape
- r-nlme
- r-vegan
run:
- r-base
- {{native}}gcc-libs # [win]
- r-ape
- r-nlme
- r-vegan

test:
commands:
- $R -e "library('picante')" # [not win]
- "\"%R%\" -e \"library('picante')\"" # [win]

about:
home: https://CRAN.R-project.org/package=picante
license: GPL-2
summary: Functions for phylocom integration, community analyses, null-models, traits and evolution.
Implements numerous ecophylogenetic approaches including measures of community phylogenetic
and trait diversity, phylogenetic signal, estimation of trait values for unobserved
taxa, null models for community and phylogeny randomizations, and utility functions
for data input/output and phylogeny plotting. A full description of package functionality
and methods are provided by Kembel et al. (2010) <doi:10.1093/bioinformatics/btq166>.
license_family: GPL2
license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2' # [unix]
license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-2' # [win]

extra:
recipe-maintainers:
- nick-youngblut
- johanneskoester
- bgruening
- daler
- jdblischak
- cbrueffer

0 comments on commit 8a0793e

Please sign in to comment.