{% set version = "2.18.1" %}

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

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

source:
  fn: gmodels_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/gmodels_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/gmodels/gmodels_{{ version }}.tar.gz
  sha256: 626140a34eb8c53dd0a06511a76c71bc61c48777fa76fcc5e6934c9c276a1369

build:
  number: 1
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-mass
    - r-gdata

  run:
    - r-base
    - r-mass
    - r-gdata

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

about:
  home: http://www.sf.net/projects/r-gregmisc
  license: GPL-2
  summary: Various R programming tools for model fitting.
  license_family: GPL2

extra:
  recipe-maintainers:
    - dpryan79
    - johanneskoester
    - bgruening
    - daler
