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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/rbibutils_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rbibutils/rbibutils_{{ version }}.tar.gz
  sha256: ac235c60bf191ad1830b93045af1b2fe50a6978f6f63cecc4c514a8ba339efc2

build:
  merge_build_host: true  # [win]
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-xml2
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-xml2

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

about:
  home: https://geobosh.github.io/rbibutils/
  dev_url: https://github.com/GeoBosh/rbibutils
  license: GPL-2.0-only
  summary: Converts between a number of bibliography formats, including 'BibTeX', 'BibLaTeX' and 'Bibentry'.  Includes a port of the 'bibutils' utilities by Chris Putnam <https://sourceforge.net/projects/bibutils/>. Supports all bibliography formats and character encodings implemented in 'bibutils'.
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: rbibutils
# Type: Package
# Title: Convert Between Bibliography Formats
# Version: 1.3
# Date: 2020-10-02
# Authors@R: c( person(given = c("Georgi", "N."), family = "Boshnakov", role = c("aut", "cre"), email = "georgi.boshnakov@manchester.ac.uk", comment = "R port, modifications to bibutils' C code" ), person(given = "Chris", family = "Putman", role = "aut", comment = "src/*, author of the bibutils libraries, https://sourceforge.net/projects/bibutils/"), person(given = "Richard", family = "Mathar", role = "ctb", comment = "src/addsout.c"), person(given = "Johannes", family = "Wilm", role = "ctb", comment = "src/biblatexin.c, src/bltypes.c") )
# Description: Converts between a number of bibliography formats, including 'BibTeX', 'BibLaTeX' and 'Bibentry'.  Includes a port of the 'bibutils' utilities by Chris Putnam <https://sourceforge.net/projects/bibutils/>. Supports all bibliography formats and character encodings implemented in 'bibutils'.
# License: GPL-2
# URL: https://geobosh.github.io/rbibutils/ (website), https://github.com/GeoBosh/rbibutils (devel)
# BugReports: https://github.com/GeoBosh/rbibutils/issues
# Depends: R (>= 2.10)
# Imports: utils, tools, xml2
# Encoding: UTF-8
# LazyData: true
# NeedsCompilation: yes
# Suggests: testthat
# Packaged: 2020-10-02 08:55:20 UTC; georgi
# Author: Georgi N. Boshnakov [aut, cre] (R port, modifications to bibutils' C code), Chris Putman [aut] (src/*, author of the bibutils libraries, https://sourceforge.net/projects/bibutils/), Richard Mathar [ctb] (src/addsout.c), Johannes Wilm [ctb] (src/biblatexin.c, src/bltypes.c)
# Maintainer: Georgi N. Boshnakov <georgi.boshnakov@manchester.ac.uk>
# Repository: CRAN
# Date/Publication: 2020-10-05 08:40:02 UTC
