{% set name = "convert3d" %}
{% set version = "1.2.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  git_url: https://github.com/pyushkevich/c3d.git
  git_rev: 83d83faed3c24cfd0eb603a4e5be15e089da2942
  git_depth: 1

build:
  number: 0

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake
    - ninja
  host:
    - fftw
    - libitk-devel
  run:
    - fftw
    - libitk

test:
  commands:
    - c3d -version

about:
  home: https://www.itksnap.org/c3d
  license: GPL-3.0-or-later
  license_file: COPYING.txt
  summary: 'ITK-based image manipulation tool'
  description: |
    Convert3d is a command-line tool for converting 3D (or 4D) images between
    common file formats. The tool also includes a growing list of commands for
    image manipulation, such as thresholding and resampling. The tool can also
    be used to obtain information about image files.
  doc_url: https://sourceforge.net/p/c3d/git/ci/master/tree/doc/c3d.md
  dev_url: https://github.com/pyushkevich/c3d

extra:
  recipe-maintainers:
    - ghisvail

{% set name = "convert3d" %}
{% set version = "1.2.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  git_url: https://github.com/pyushkevich/c3d.git
  git_rev: 83d83faed3c24cfd0eb603a4e5be15e089da2942
  git_depth: 1

build:
  number: 0

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake
    - ninja
  host:
    - fftw
    - libitk-devel
  run:
    - fftw
    - libitk

test:
  commands:
    - c3d -version  # [not win]

about:
  home: https://www.itksnap.org/c3d
  license: GPL-3.0-or-later
  license_file: COPYING.txt
  summary: 'ITK-based image manipulation tool'
  description: |
    Convert3d is a command-line tool for converting 3D (or 4D) images between
    common file formats. The tool also includes a growing list of commands for
    image manipulation, such as thresholding and resampling. The tool can also
    be used to obtain information about image files.
  doc_url: https://sourceforge.net/p/c3d/git/ci/master/tree/doc/c3d.md
  dev_url: https://github.com/pyushkevich/c3d

extra:
  recipe-maintainers:
    - ghisvail

Disable test command on Windows
Disable test command on Windows