{% set version = '0.6-2' %}  # [linux or win32]
{% set version = '0.6-2' %}  # [win64]
{% set version = '0.6-2' %}  # [osx]

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

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

source:
  url:  # [linux or win32]
    - {{ cran_mirror }}/src/contrib/lavaan_{{ version }}.tar.gz  # [linux or win32]
    - {{ cran_mirror }}/src/contrib/Archive/lavaan/lavaan_{{ version }}.tar.gz  # [linux or win32]
  sha256: 91d5aea1468394f9e2bda773ab51f8a16a198bfc1d8474c1c48bcaba87f9c0be  # [linux or win32]

  url: https://cran.microsoft.com/snapshot/2018-08-01/bin/windows/contrib/3.5/lavaan_0.6-2.zip  # [win64]
  sha256: a11bb363b89fb509269f9f0d1a75501ab338955e28955bc82ac865963ebe9771  # [win64]

  url: https://cran.microsoft.com/snapshot/2018-08-01/bin/macosx/el-capitan/contrib/3.5/lavaan_0.6-2.tgz  # [osx]
  sha256: e0cf7538ace9acb3fb0fa8e06786ce4b8b29310efa942dab775dd2b1ffb4320d  # [osx]

build:
  merge_build_host: True  # [win32]
  # If this is a new build for the same version, increment the build number.
  number: 0

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

# Suggests: testthat
requirements:
  build:
    - rtools                     # [win32]
    - {{posix}}zip               # [win32]

  host:
    - mro-base
    - r-mass
    - r-mnormt
    - r-numderiv
    - r-pbivnorm

  run:
    - mro-base
    - r-mass
    - r-mnormt
    - r-numderiv
    - r-pbivnorm

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('lavaan')"           # [not win]
    - "\"%R%\" -e \"library('lavaan')\""  # [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://lavaan.org
  license: GPL (>= 2)
  summary: Fit a variety of latent variable models, including confirmatory factor analysis, structural
    equation modeling and latent growth curve models.
  license_family: GPL3

extra:
  recipe-maintainers:
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: lavaan
# Title: Latent Variable Analysis
# Version: 0.6-2
# Authors@R: c(person(given   = "Yves", family = "Rosseel", role    = c("aut", "cre"), email   = "Yves.Rosseel@UGent.be", comment = c(ORCID = "0000-0002-4129-4477")), person(given = "Daniel", family = "Oberski", role = "ctb", email = "daniel.oberski@gmail.com"), person(given = "Jarrett", family = "Byrnes",  role = "ctb", email = "byrnes@nceas.ucsb.edu"), person(given = "Leonard", family = "Vanbrabant", role = "ctb", email = "Leonard.Vanbrabant@ugent.be"), person(given = "Victoria", family = "Savalei", role = "ctb", email = "vsavalei@ubc.ca"), person(given = "Ed", family = "Merkle", role = "ctb", email = "merklee@missouri.edu"), person(given = "Michael", family = "Hallquist", role = "ctb", email = "michael.hallquist at gmail.com"), person(given = "Mijke", family = "Rhemtulla", role = "ctb", email = "mijke@ku.edu"), person(given = "Myrsini", family = "Katsikatsou", role = "ctb", email = "mirtok2@gmail.com"), person(given = "Mariska", family = "Barendse", role = "ctb", email = "m.t.barendse@rug.nl"), person(given = "Michael", family = "Chow", role = "ctb", email = "machow@princeton.edu"), person(given = c("Terrence","D."), family = "Jorgensen", role = "ctb") )
# Description: Fit a variety of latent variable models, including confirmatory factor analysis, structural equation modeling and latent growth curve models.
# Depends: R(>= 3.4)
# Imports: methods, stats4, stats, utils, graphics, MASS, mnormt, pbivnorm, numDeriv
# Suggests: testthat
# License: GPL (>= 2)
# LazyData: yes
# ByteCompile: true
# URL: http://lavaan.org
# NeedsCompilation: no
# Packaged: 2018-07-16 12:46:15 UTC; yves
# Author: Yves Rosseel [aut, cre] (<https://orcid.org/0000-0002-4129-4477>), Daniel Oberski [ctb], Jarrett Byrnes [ctb], Leonard Vanbrabant [ctb], Victoria Savalei [ctb], Ed Merkle [ctb], Michael Hallquist [ctb], Mijke Rhemtulla [ctb], Myrsini Katsikatsou [ctb], Mariska Barendse [ctb], Michael Chow [ctb], Terrence D. Jorgensen [ctb]
# Maintainer: Yves Rosseel <Yves.Rosseel@UGent.be>
# Repository: CRAN
# Date/Publication: 2018-07-16 15:30:09 UTC

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