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

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

source:
  fn: statnet_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/statnet_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/statnet/statnet_{{ version }}.tar.gz
  sha256: daf8e18918d08caaed07ac63ebf0afd0d42164629906558d597a30b5b93abfc8

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

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

requirements:
  build:

  host:
    - r-base
    - r-ergm >=3.6
    - r-ergm.count >=3.2.2
    - r-network >=1.13
    - r-networkdynamic >=0.9
    - r-sna >=2.4
    - r-statnet.common >=3.3
    - r-tergm >=3.4

  run:
    - r-base
    - r-ergm >=3.6
    - r-ergm.count >=3.2.2
    - r-network >=1.13
    - r-networkdynamic >=0.9
    - r-sna >=2.4
    - r-statnet.common >=3.3
    - r-tergm >=3.4

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

about:
  home: http://statnet.org
  license: GPL-3
  summary: An integrated set of tools for the representation, visualization, analysis, and simulation
    of network data. For an introduction, type help(package='statnet').
  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:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - stevierene82
