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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/valr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/valr/valr_{{ version }}.tar.gz
  sha256: 2379e896c1d052fc5e62dae1def9eddffcd0338ac4f12f7df5d9005e01a7edd3

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]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-rcpp >=1.0.0
    - r-broom
    - r-dplyr >=0.8.0
    - r-ggplot2
    - r-readr
    - r-rlang
    - r-stringr
    - r-tibble >=1.4.2
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=1.0.0
    - r-broom
    - r-dplyr >=0.8.0
    - r-ggplot2
    - r-readr
    - r-rlang
    - r-stringr
    - r-tibble >=1.4.2

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

about:
  home: https://github.com/rnabioco/valr/, https://rnabioco.github.io/valr/
  license: MIT
  summary: Read and manipulate genome intervals and signals. Provides functionality similar to
    command-line tool suites within R, enabling interactive analysis and visualization
    of genome-scale data. Riemondy et al. (2017) <doi:10.12688/f1000research.11997.1>.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: valr
# Type: Package
# Title: Genome Interval Arithmetic
# Version: 0.6.3
# Authors@R: c( person('Jay', 'Hesselberth', role = c('aut', 'cre'), email = 'jay.hesselberth@gmail.com', comment = c(ORCID = '0000-0002-6299-179X')), person('Kent', 'Riemondy', role = c('aut'), email = 'kent.riemondy@ucdenver.edu', comment = c(ORCID = '0000-0003-0750-1273')), person("RNA Bioscience Initiative", role = c("fnd")) )
# Description: Read and manipulate genome intervals and signals. Provides functionality similar to command-line tool suites within R, enabling interactive analysis and visualization of genome-scale data. Riemondy et al. (2017) <doi:10.12688/f1000research.11997.1>.
# License: MIT + file LICENSE
# Depends: R (>= 3.1.2)
# Imports: dplyr (>= 0.8.0), rlang, readr, Rcpp (>= 1.0.0), stringr, tibble (>= 1.4.2), broom, ggplot2
# SystemRequirements: C++11
# LinkingTo: Rcpp (>= 1.0.0),
# Suggests: knitr, rmarkdown, testthat, bench, covr, curl, purrr, tidyr, devtools, DT, cowplot, dbplyr, GenomicRanges, IRanges, S4Vectors, DBI, RMariaDB
# VignetteBuilder: knitr
# RoxygenNote: 7.1.1
# URL: https://github.com/rnabioco/valr/, https://rnabioco.github.io/valr/
# BugReports: https://github.com/rnabioco/valr/issues
# Encoding: UTF-8
# NeedsCompilation: yes
# Packaged: 2021-05-15 01:09:43 UTC; jayhesselberth
# Author: Jay Hesselberth [aut, cre] (<https://orcid.org/0000-0002-6299-179X>), Kent Riemondy [aut] (<https://orcid.org/0000-0003-0750-1273>), RNA Bioscience Initiative [fnd]
# Maintainer: Jay Hesselberth <jay.hesselberth@gmail.com>
# Repository: CRAN
# Date/Publication: 2021-05-15 05:30:03 UTC
