{% set version = '0.9.5' %}

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

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

source:
  fn: qlcMatrix_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/qlcMatrix_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/qlcMatrix/qlcMatrix_{{ version }}.tar.gz
  sha256: 4e13c2413dc28ecda0eff05ae6d6a0e4ed4597c368ce9a2031e2cad57c4ca43a

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-matrix >=1.1_0
    - r-slam >=0.1_32
  run:
    - r-base
    - r-matrix >=1.1_0
    - r-slam >=0.1_32

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

about:
  home: https://CRAN.R-project.org/package=qlcMatrix
  license: GPL-3
  summary: Extension of the functionality of the Matrix package for using sparse matrices. Some
    of the functions are very general, while other are highly specific for special data
    format as used for quantitative language comparison (QLC).
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
