{% set version = '3.1-163' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/nlme_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/nlme/nlme_{{ version }}.tar.gz
  sha256: 7d46ff4c4fb7fda8df6129b28cd2aa7d32e814eac87dae8ea9fa7560593c128a

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

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

# Suggests: Hmisc, MASS, SASmixed
requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-lattice

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-lattice

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('nlme')"           # [not win]
    - "\"%R%\" -e \"library('nlme')\""  # [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: https://svn.r-project.org/R-packages/trunk/nlme/
  license: GPL-2
  summary: Fit and compare Gaussian linear and nonlinear mixed-effects models.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: nlme
# Version: 3.1-163
# Date: 2023-07-31
# Priority: recommended
# Title: Linear and Nonlinear Mixed Effects Models
# Authors@R: c(person("Jose", "Pinheiro", role = "aut", comment = "S version"), person("Douglas", "Bates", role = "aut", comment = "up to 2007"), person("Saikat", "DebRoy", role = "ctb", comment = "up to 2002"), person("Deepayan", "Sarkar", role = "ctb", comment = "up to 2005"), person("EISPACK authors", role = "ctb", comment = "src/rs.f"), person("Siem", "Heisterkamp", role = "ctb", comment = "Author fixed sigma"), person("Bert", "Van Willigen",role = "ctb", comment = "Programmer fixed sigma"), person("Johannes", "Ranke", role = "ctb", comment = "varConstProp()"), person("R Core Team", email = "R-core@R-project.org", role = c("aut", "cre")))
# Contact: see 'MailingList'
# Description: Fit and compare Gaussian linear and nonlinear mixed-effects models.
# Depends: R (>= 3.5.0)
# Imports: graphics, stats, utils, lattice
# Suggests: Hmisc, MASS, SASmixed
# LazyData: yes
# Encoding: UTF-8
# License: GPL (>= 2)
# BugReports: https://bugs.r-project.org
# MailingList: R-help@r-project.org
# URL: https://svn.r-project.org/R-packages/trunk/nlme/
# NeedsCompilation: yes
# Packaged: 2023-08-02 07:04:32 UTC; maechler
# Author: Jose Pinheiro [aut] (S version), Douglas Bates [aut] (up to 2007), Saikat DebRoy [ctb] (up to 2002), Deepayan Sarkar [ctb] (up to 2005), EISPACK authors [ctb] (src/rs.f), Siem Heisterkamp [ctb] (Author fixed sigma), Bert Van Willigen [ctb] (Programmer fixed sigma), Johannes Ranke [ctb] (varConstProp()), R Core Team [aut, cre]
# Maintainer: R Core Team <R-core@R-project.org>
# Repository: CRAN
# Date/Publication: 2023-08-09 11:20:02 UTC

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