{% set version = '0.2.0' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/mRpostman_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/mRpostman/mRpostman_{{ version }}.tar.gz
  sha256: 890d1f70c8eb1bf188953de08c83d96404cc2d21878afacad14ad2a2c328869a

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

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

# Suggests: knitr, rmarkdown
requirements:
  build:
    - {{posix}}zip               # [win]

  host:
    - r-base
    - r-assertthat
    - r-base64enc
    - r-curl
    - r-magrittr
    - r-stringr

  run:
    - r-base
    - r-assertthat
    - r-base64enc
    - r-curl
    - r-magrittr
    - r-stringr

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('mRpostman')"           # [not win]
    - "\"%R%\" -e \"library('mRpostman')\""  # [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://CRAN.R-project.org/package=mRpostman
  license: GPL-3
  summary: Multiple IMAP (Internet Message Access Protocol) commands  based on the RFC 3501 manual
    (Crispin, 2003, <doi:10.17487/RFC3501>),  its updates, and other related documents.
    Besides other features, 'mRpostman' provides functions for listing, selecting and
    renaming mailboxes,  as well as moving, fetching, and searching for messages using
    several  criteria.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: mRpostman
# Type: Package
# Title: IMAP Tools in a Tidy Way
# Version: 0.2.0
# Date: 2019-08-18
# Authors@R: c( person(given="Allan", family="Quadros", email = "allanvcq@gmail.com", role = c("aut", "cre")))
# Description: Multiple IMAP (Internet Message Access Protocol) commands  based on the RFC 3501 manual (Crispin, 2003, <doi:10.17487/RFC3501>),  its updates, and other related documents. Besides other features, 'mRpostman' provides functions for listing, selecting and renaming mailboxes,  as well as moving, fetching, and searching for messages using several  criteria.
# License: GPL-3
# Encoding: UTF-8
# LazyData: true
# Imports: curl, stringr, magrittr, assertthat, base64enc
# Depends: R (>= 3.1.0)
# BugReports: https://github.com/allanvc/mRpostman/issues
# SystemRequirements: libcurl: libcurl-devel (rpm) or libcurl4-openssl-dev (deb)
# Suggests: knitr, rmarkdown
# VignetteBuilder: knitr
# RoxygenNote: 6.1.1
# NeedsCompilation: no
# Packaged: 2019-08-20 19:12:26 UTC; allan
# Author: Allan Quadros [aut, cre]
# Maintainer: Allan Quadros <allanvcq@gmail.com>
# Repository: CRAN
# Date/Publication: 2019-08-22 07:30:02 UTC

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