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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/blaster_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/blaster/blaster_{{ version }}.tar.gz
  sha256: 59c257c8303da8e505b05ba0b840d56020549c2fbef3e3367eb6075ff56c5b78

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.5
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp >=1.0.5

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

about:
  home: https://github.com/manutamminen/blaster
  license: BSD-3-Clause
  summary: Implementation of an efficient BLAST-like sequence comparison algorithm, written in
    C++11 and using native R datatypes. Blaster is based on 'nsearch' - Schmid et al
    2018; <doi:10.1101/399782>.
  license_family: BSD
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/BSD_3_clause'
    - LICENSE

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

# Package: blaster
# Type: Package
# Title: Native R Implementation of an Efficient BLAST-Like Algorithm
# Version: 1.0.4
# Date: 2021-10-26
# Authors@R: c(person("Manu", "Tamminen", email = "mavatam@utu.fi", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-5891-7653")), person("Timothy", "Julian", email = "tim.julian@eawag.ch", role = c("aut"), comment = c(ORCID = "0000-0003-1000-0306")), person("Aditya", "Jeevennavar", email="aditya.a.jeevannavar@utu.fi", role = c("aut"), comment = c(ORCID = "0000-0002-0737-7316")), person("Steven", "Schmid", email="stevschmid@gmail.com", role = c("aut")))
# Maintainer: Manu Tamminen <mavatam@utu.fi>
# Description: Implementation of an efficient BLAST-like sequence comparison algorithm, written in C++11 and using native R datatypes. Blaster is based on 'nsearch' - Schmid et al 2018; <doi:10.1101/399782>.
# License: BSD_3_clause + file LICENSE
# Imports: Rcpp (>= 1.0.5)
# LinkingTo: Rcpp
# SystemRequirements: C++14
# RoxygenNote: 7.1.1
# URL: https://github.com/manutamminen/blaster
# Suggests: covr
# NeedsCompilation: yes
# Packaged: 2021-10-26 19:08:56 UTC; mavatam
# Author: Manu Tamminen [aut, cre] (<https://orcid.org/0000-0001-5891-7653>), Timothy Julian [aut] (<https://orcid.org/0000-0003-1000-0306>), Aditya Jeevennavar [aut] (<https://orcid.org/0000-0002-0737-7316>), Steven Schmid [aut]
# Repository: CRAN
# Date/Publication: 2021-10-27 14:50:12 UTC
