{% set version = '1.5.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/igraph_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/igraph/igraph_{{ version }}.tar.gz
  sha256: add90a1e77ad4a5d95641f0556553e3f1d1c4443cb2d5afb70171efd278ab14a

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: ape (>= 5.7-0.1), callr, decor, digest, graph, igraphdata, knitr, rgl, rmarkdown, scales, stats4, tcltk, testthat, vdiffr, withr
requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}sed               # [win]
    - {{ posix }}grep              # [win]
    - {{ posix }}autoconf
    - {{ posix }}automake          # [not win]
    - {{ posix }}automake-wrapper  # [win]
    - {{ posix }}pkg-config
    - {{ posix }}make
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-matrix
    - r-cli
    - r-cpp11 >=0.2.0
    - r-lifecycle
    - r-magrittr
    - r-pkgconfig >=2.0.0
    - r-rlang

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-matrix
    - r-cli
    - r-cpp11 >=0.2.0
    - r-lifecycle
    - r-magrittr
    - r-pkgconfig >=2.0.0
    - r-rlang

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('igraph')"           # [not win]
    - "\"%R%\" -e \"library('igraph')\""  # [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://r.igraph.org/, https://igraph.org/, https://igraph.discourse.group/
  license: GPL-2
  summary: Routines for simple graphs and network analysis. It can handle large graphs very well
    and provides functions for generating random and regular graphs, graph visualization,
    centrality methods and much more.
  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: igraph
# Version: 1.5.1
# Title: Network Analysis and Visualization
# Authors@R: c( person("Gabor", "Csardi", , "csardi.gabor@gmail.com", role = "aut", comment = c(ORCID = "0000-0001-7098-9676")), person("Tamas", "Nepusz", , "ntamas@gmail.com", role = "aut", comment = c(ORCID = "0000-0002-1451-338X")), person("Vincent", "Traag", role = "aut", comment = c(ORCID = "0000-0003-3170-3879")), person("Szabolcs", "Horvat", , "szhorvat@gmail.com", role = "aut", comment = c(ORCID = "0000-0002-3100-523X")), person("Fabio", "Zanini", , "fabio.zanini@unsw.edu.au", role = "aut", comment = c(ORCID = "0000-0001-7097-8539")), person("Daniel", "Noom", role = "aut"), person("Kirill", "Muller", , "kirill@cynkra.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-1416-3412")), person("Maelle", "Salmon", role = "ctb"), person("Chan Zuckerberg Initiative", role = "fnd") )
# Description: Routines for simple graphs and network analysis. It can handle large graphs very well and provides functions for generating random and regular graphs, graph visualization, centrality methods and much more.
# License: GPL (>= 2)
# URL: https://r.igraph.org/, https://igraph.org/, https://igraph.discourse.group/
# BugReports: https://github.com/igraph/rigraph/issues
# Depends: methods, R (>= 3.5.0)
# Imports: cli, graphics, grDevices, lifecycle, magrittr, Matrix, pkgconfig (>= 2.0.0), rlang, stats, utils
# Suggests: ape (>= 5.7-0.1), callr, decor, digest, graph, igraphdata, knitr, rgl, rmarkdown, scales, stats4, tcltk, testthat, vdiffr, withr
# LinkingTo: cpp11 (>= 0.2.0)
# VignetteBuilder: knitr
# Config/Needs/build: roxygen2, devtools, irlba, pkgconfig
# Config/Needs/coverage: covr
# Config/testthat/edition: 3
# Config/testthat/parallel: true
# Config/testthat/start-first: vs-es, scan, vs-operators, weakref, watts.strogatz.game
# Encoding: UTF-8
# RoxygenNote: 7.2.3
# SystemRequirements: gmp (optional), libxml2 (optional), glpk (>= 4.57, optional)
# NeedsCompilation: yes
# Packaged: 2023-08-09 04:30:08 UTC; kirill
# Author: Gabor Csardi [aut] (<https://orcid.org/0000-0001-7098-9676>), Tamas Nepusz [aut] (<https://orcid.org/0000-0002-1451-338X>), Vincent Traag [aut] (<https://orcid.org/0000-0003-3170-3879>), Szabolcs Horvat [aut] (<https://orcid.org/0000-0002-3100-523X>), Fabio Zanini [aut] (<https://orcid.org/0000-0001-7097-8539>), Daniel Noom [aut], Kirill Muller [aut, cre] (<https://orcid.org/0000-0002-1416-3412>), Maelle Salmon [ctb], Chan Zuckerberg Initiative [fnd]
# Maintainer: Kirill Muller <kirill@cynkra.com>
# Repository: CRAN
# Date/Publication: 2023-08-10 09:00:05 UTC

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