{% set version = '1.0.3' %}

package:
  name: r-eml
  version: {{ version }}

source:
  fn: EML_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/EML_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/EML/EML_{{ version }}.tar.gz
  sha256: f183b853dd98ce52fdb337ee8ca9167e1a42b1941895612e4dbe2a8079261f13

build:
  number: 0
  skip: True  # [win32]
  script: R CMD INSTALL --build .
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-uuid
    - r-xml2 >=1.1.1
  run:
    - r-base
    - r-uuid
    - r-xml2 >=1.1.1

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

about:
  home: https://github.com/ropensci/EML
  license: FreeBSD
  # license_file: LICENSE
  summary: Parse and serialize Ecological Metadata Language

extra:
  recipe-maintainers:
    - ocefpaf
