{% set major = "1.42" %}
{% set patch = "2" %}
{% set version = major + "." + patch %}

package:
  name: pango
  version: {{ version }}

source:
  url: http://ftp.gnome.org/pub/GNOME/sources/pango/{{ major }}/pango-{{ version }}.tar.xz
  sha256: b1e416b4d40416ef6c8224cf146492b86848703264ba88f792290992cf3ca1e2

build:
  number: 0
  skip: true  # [win]
  run_exports:
    # excellent: https://abi-laboratory.pro/tracker/timeline/pango/
    - {{ pin_subpackage('pango') }}

requirements:
  build:
    - {{ compiler('c') }}
    - {{ cdt('libxau-devel') }}           # [linux]
    - {{ cdt('libxext-devel') }}          # [linux]
    - {{ cdt('libx11-devel') }}           # [linux]
    - {{ cdt('libxrender-devel') }}       # [linux]
    - make                                # [unix]
  host:
    - cairo
    - fontconfig
    - freetype
    - fribidi
    - glib
    - gobject-introspection               # [not win]
    - graphite2                           # [linux]
    - harfbuzz
    - icu                                 # [linux]
    - libffi                              # [linux]
    - libpng
    - libuuid                             # [linux]
    - libxml2                             # [linux]
    - pcre                                # [linux]
    - perl 5.*
    - pixman                              # [linux]
    - pkg-config
    - xz                                  # [linux]
    - zlib                                # [linux]

test:
  commands:
    - pango-view --help

about:
  home: http://www.pango.org/
  license: LGPL-2.1
  license_file: COPYING
  summary: 'Text layout and rendering engine.'
  description: |
    Pango is a library for laying out and rendering of text, with an emphasis
    on internationalization. Pango can be used anywhere that text layout is
    needed, though most of the work on Pango so far has been done in the
    context of the GTK+ widget toolkit. Pango forms the core of text and font
    handling for GTK+-2.x.
  doc_url: http://www.pango.org/
  dev_url: https://github.com/phuang/pango

extra:
  recipe-maintainers:
    - ocefpaf
    - ccordoba12
    - jakirkham
    - pkgw
