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

package:
  name: r-matrix
  # Note that conda versions cannot contain -, so any -'s in the version have
  # been replaced with _'s.
  version: "1.2_7.1"

source:
  fn: Matrix_1.2-7.1.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/Matrix_1.2-7.1.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/Matrix/Matrix_1.2-7.1.tar.gz


  # You can add a hash for the file here, like md5 or sha1
  # md5: 49448ba4863157652311cc5ea4fea3ea
  # sha1: 3bcfbee008276084cbb37a2b453963c61176a322
  # patches:
   # List any patch files here
   # - fix.patch

build:
  # If this is a new build for the same version, increment the build
  # number. If you do not include this key, it defaults to 0.
  # number: 1

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: expm, MASS
requirements:
  build:
    - r-base
    - r-lattice
    - posix               # [win]
    - {{native}}toolchain # [win]
    - gcc                 # [not win]

  run:
    - r-base
    - r-lattice

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('Matrix')" # [not win]
    - "\"%R%\" -e \"library('Matrix')\"" # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: http://Matrix.R-forge.R-project.org/
  license: GPL (>= 2) | file LICENCE
  summary: Classes and methods for dense and sparse matrices and operations on them using 'LAPACK'
    and 'SuiteSparse'.
  license_family: GPL3

# The original CRAN metadata for this package was:

# Package: Matrix
# Version: 1.2-7.1
# Date: 2016-08-29
# Priority: recommended
# Title: Sparse and Dense Matrix Classes and Methods
# Author: Douglas Bates <bates@stat.wisc.edu> and Martin Maechler
# Maintainer: Martin Maechler <mmaechler+Matrix@gmail.com>
# Contact: Doug and Martin <Matrix-authors@R-project.org>
# Description: Classes and methods for dense and sparse matrices and operations on them using 'LAPACK' and 'SuiteSparse'.
# Depends: R (>= 3.0.1)
# Imports: methods, graphics, grid, stats, utils, lattice
# Suggests: expm, MASS
# Enhances: MatrixModels, graph, SparseM, sfsmisc
# Encoding: UTF-8
# LazyData: no
# LazyDataNote: not possible, since we use data/*.R *and* our classes
# BuildResaveData: no
# License: GPL (>= 2) | file LICENCE
# URL: http://Matrix.R-forge.R-project.org/
# NeedsCompilation: yes
# Packaged: 2016-08-30 11:21:22 UTC; maechler
# Repository: CRAN
# Date/Publication: 2016-09-01 12:23:14

# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
