{% set version = '0.0-54' %}

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

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

source:
  fn: gWidgets_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/gWidgets_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/gWidgets/gWidgets_{{ version }}.tar.gz

  sha256: 82a10a13115c76dd19f3664dd50508db537c0406dfea47672a65ed59ed5a8b8e

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://cran.r-project.org/web/packages/gWidgets/index.html
  license: GPL (>= 2)
  summary: gWidgets provides a toolkit-independent API for building interactive GUIs. At least
    one of the 'gWidgetsXXX packages', such as gWidgetstcltk, needs to be installed.
    Some icons are on loan from the scigraphica project http
  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:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
