{% set version = "5.9" %}

package:
  name: ncurses
  version: {{ version }}

source:
  fn: ncurses-{{ version }}.tar.gz
  url: http://ftp.gnu.org/pub/gnu/ncurses/ncurses-{{ version }}.tar.gz
  md5: 8cb9c412e5f2d96bc6f459aa8c6282a1
  patches:
    # http://lists.gnu.org/archive/html/bug-ncurses/2011-04/txtkWQqiQvcZe.txt
    - fix.patch

build:
  skip: true  # [win]
  number: 0
  detect_binary_files_with_prefix: true

test:
  files:
    - run_test.sh         # [osx]
    - run_test.py         # [osx]
  commands:
    - bash run_test.sh    # [osx]
    - python run_test.py  # [osx]

about:
  home: http://www.gnu.org/software/ncurses/
  license: Free software (MIT-like License)
  summary: Library for text-based user interfaces

extra:
  recipe-maintainers:
    - jakirkham

{% set version = "5.9" %}

package:
  name: ncurses
  version: {{ version }}

source:
  fn: ncurses-{{ version }}.tar.gz
  url: http://ftp.gnu.org/pub/gnu/ncurses/ncurses-{{ version }}.tar.gz
  md5: 8cb9c412e5f2d96bc6f459aa8c6282a1
  patches:
    # http://lists.gnu.org/archive/html/bug-ncurses/2011-04/txtkWQqiQvcZe.txt
    - fix.patch

build:
  skip: true  # [win]
  number: 0
  detect_binary_files_with_prefix: true

test:
  files:
    - run_test.sh         # [osx]
    - run_test.py         # [osx]
  commands:
    - exit $(test -f ${PREFIX}/lib/libncurses.a)
    - exit $(test -f ${PREFIX}/lib/libtinfo.a)
    - exit $(test -f ${PREFIX}/lib/libform.a)
    - exit $(test -f ${PREFIX}/lib/libmenu.a)
    - exit $(test -f ${PREFIX}/lib/libpanel.a)

    - bash run_test.sh    # [osx]
    - python run_test.py  # [osx]

about:
  home: http://www.gnu.org/software/ncurses/
  license: Free software (MIT-like License)
  summary: Library for text-based user interfaces

extra:
  recipe-maintainers:
    - jakirkham

Add more tests. [skip appveyor]
ncurses: Add more tests. [skip appveyor]
