{% set version = '1.2-1' %}

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

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

source:
  fn: geepack_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/geepack_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/geepack/geepack_{{ version }}.tar.gz
  sha256: 7effe67381129a48154c445704490ea3b5f2e1adedb66cb65f61369dd1f8d38d

build:
  merge_build_host: True  # [win]
  number: 2
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - posix                # [win]
    - {{ compiler('c') }}        # [unix]
    - {{ compiler('m2w64_c') }}  # [win]
    - {{ compiler('cxx') }}        # [unix]
    - {{ compiler('m2w64_cxx') }}  # [win]
  host:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=geepack
  license: GPL (>= 3)
  summary: Generalized estimating equations solver for parameters in mean, scale, and correlation
    structures, through mean link, scale link, and correlation link. Can also handle
    clustered categorical responses.
  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:
    - dpryan79
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
