{% set version = '1.0.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/multbxxc_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/multbxxc/multbxxc_{{ version }}.tar.gz
  sha256: f5911f334d3390cbb7747fa6db95a7c792e74117c493acadf15752c12457e5c6

build:
  merge_build_host: True  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]

  host:
    - r-base
    - r-rcpp >=1.0.0
    - r-rcpparmadillo
    - r-rmumps >=5.2.1_6
    - libblas
    - liblapack

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-rcpp >=1.0.0
    - r-rcpparmadillo
    - r-rmumps >=5.2.1_6
    - libblas
    - liblapack

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

about:
  home: https://metasys.insa-toulouse.fr/software/influx/
  license: GPL (>= 2)
  summary: 'Contains auxiliary routines for influx software. This packages is not intended to
    be used directly. Influx was published here: Sokol et al. (2012) <doi:10.1093/bioinformatics/btr716>.'
  license_family: GPL
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'
extra:
  recipe-maintainers:
     - conda-forge/r
     - sgsokol

# The original CRAN metadata for this package was:

# Package: multbxxc
# Type: Package
# Title: Auxiliary Routines for Influx Software
# Version: 1.0.1
# Date: 2019-11-12
# Author: Serguei Sokol
# Maintainer: Serguei Sokol <sokol@insa-toulouse.fr>
# Description: Contains auxiliary routines for influx software. This packages is not intended to be used directly. Influx was published here: Sokol et al. (2012) <doi:10.1093/bioinformatics/btr716>.
# License: GPL (>= 2)
# Imports: Rcpp (>= 1.0.0)
# LinkingTo: Rcpp, RcppArmadillo, rmumps
# Depends: R (>= 3.4), rmumps (>= 5.2.1-6)
# URL: https://metasys.insa-toulouse.fr/software/influx/
# RoxygenNote: 6.1.1
# Encoding: UTF-8
# Suggests: testthat
# NeedsCompilation: yes
# Packaged: 2019-11-09 16:51:24 UTC; sokol
# Repository: CRAN
# Date/Publication: 2019-11-15 13:10:02 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
