{% set version = '0.99.3' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/RevEcoR_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/RevEcoR/RevEcoR_{{ version }}.tar.gz
  sha256: 12bbe558708629d2a4ed636a80e9a550d71467b5b28cdd67c9b149eb8711d5db

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: knitr
requirements:
  build:
    - {{posix}}zip               # [win]

  host:
    - r-base
    - r-matrix
    - r-xml
    - r-gtools
    - r-igraph
    - r-magrittr
    - r-plyr
    - r-purrr
    - r-stringr

  run:
    - r-base
    - r-matrix
    - r-xml
    - r-gtools
    - r-igraph
    - r-magrittr
    - r-plyr
    - r-purrr
    - r-stringr

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('RevEcoR')"           # [not win]
    - "\"%R%\" -e \"library('RevEcoR')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://CRAN.R-project.org/package=RevEcoR
  license: GPL-2
  summary: An implementation of the reverse ecology framework. Reverse ecology refers to the
    use of genomics to study ecology with no a priori assumptions about the organism(s)
    under consideration, linking organisms to their environment. It allows researchers
    to reconstruct the metabolic networks and study the ecology of poorly characterized
    microbial species from their genomic information, and has substantial potentials
    for microbial community ecological analysis.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: RevEcoR
# Type: Package
# Title: Reverse Ecology Analysis on Microbiome
# Version: 0.99.3
# Date: 2016-3-28
# Author: Yang Cao, Fei Li
# Maintainer: Yang Cao <yiluheihei@gmail.com>
# Description: An implementation of the reverse ecology framework. Reverse ecology refers to the use of genomics to study ecology with no a priori assumptions about the organism(s) under consideration, linking organisms to their environment. It allows researchers to reconstruct the metabolic networks and study the ecology of poorly characterized microbial species from their genomic information, and has substantial potentials for microbial community ecological analysis.
# Depends: R (>= 2.14)
# Imports: Matrix, igraph, XML, stringr, magrittr, gtools, plyr, purrr, methods
# Suggests: knitr
# VignetteBuilder: knitr
# License: GPL (>= 2)
# LazyData: yes
# RoxygenNote: 5.0.1
# NeedsCompilation: no
# Packaged: 2016-04-03 08:42:54 UTC; caoyang
# Repository: CRAN
# Date/Publication: 2016-04-03 17:14:01

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
