{% set version = "1.7047" %}
{% set sha256 = "963e63c6e1a8725ff2f624e9086396ae150db51dd0a337c3781d09a994af05a5" %}

package:
  name: perl-app-cpanminus
  version: {{ version }}

source:
  url: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 0
  noarch: generic
  script:
    - perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
    - make
    - make test
    - make install VERBINST=1

requirements:
  build:
    - make
  host:
    - perl
  run:
    - perl

test:
  commands:
    - cpanm --help < /dev/null | grep -qF 'Usage'
    - cpanm --version < /dev/null | grep -qF '{{ version }}'

about:
  home: https://metacpan.org/pod/App::cpanminus
  license: GPL-1.0-or-later OR Artistic-1.0-Perl
  license_file: LICENSE
  summary: get, unpack build and install modules from CPAN

  description: |
    cpanminus is a script to get, unpack, build and install modules from CPAN
    and does nothing else.

    It's dependency free (can bootstrap itself), requires zero configuration,
    and stands alone. When running, it requires only 10MB of RAM.
  doc_url: https://metacpan.org/release/MIYAGAWA/App-cpanminus-1.7043
  dev_url: https://github.com/miyagawa/cpanminus.git

extra:
  recipe-maintainers:
    - jerowe
    - tdegeus
