<commit_before>{% set name = "openmotif" %}
{% set version = "2.3.6" %}
{% set sha256 = "fa810e6bedeca0f5a2eb8216f42129bcf6bd23919068d433e386b7bfc05d58cf" %}

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

source:
  fn: {{ name }}-{{ version }}.tar.gz
  url: https://downloads.sourceforge.net/project/motif/Motif%20{{ version }}%20Source%20Code/motif-{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    # "Only weak aliases are supported on darwin"
    # From https://raw.githubusercontent.com/Homebrew/formula-patches/b10858b/openmotif/patch-lib-XmP.h.diff
    - patch-lib-XmP.h.diff
    # "fatal error: 'malloc.h' file not found"
    # From  "https://raw.githubusercontent.com/Homebrew/formula-patches/b10858b/openmotif/patch-demos-xrmLib.c.diff"
    - patch-demos-xrmLib.c.diff

build:
  number: 0
  skip: True  # [win]
#  script: python setup.py install --single-version-externally-managed --record record.txt

requirements:
  build:
    - toolchain
    - pkg-config
    - freetype
    - libpng
    - fontconfig
    - xz
    - xorg-libxt
    - xorg-libxext
    - jpeg


  run:
    - python # FIXME

test:
  commands:
    - 'test "`uil 2>&1| tr -d ''\n''`" = "Severe: no source file specified"'

about:
  home: http://motif.ics.com
  license: LGPL-2.1
  license_family: LGPL
  license_file: COPYING
  summary: 'Motif user interface component toolkit.'

extra:
  recipe-maintainers:
    - epruesse<commit_msg>Add xorg-xft dependency, linkage tests and run deps<commit_after>{% set name = "openmotif" %}
{% set version = "2.3.6" %}
{% set sha256 = "fa810e6bedeca0f5a2eb8216f42129bcf6bd23919068d433e386b7bfc05d58cf" %}

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

source:
  fn: {{ name }}-{{ version }}.tar.gz
  url: https://downloads.sourceforge.net/project/motif/Motif%20{{ version }}%20Source%20Code/motif-{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    # "Only weak aliases are supported on darwin"
    # From https://raw.githubusercontent.com/Homebrew/formula-patches/b10858b/openmotif/patch-lib-XmP.h.diff
    - patch-lib-XmP.h.diff
    # "fatal error: 'malloc.h' file not found"
    # From  "https://raw.githubusercontent.com/Homebrew/formula-patches/b10858b/openmotif/patch-demos-xrmLib.c.diff"
    - patch-demos-xrmLib.c.diff

build:
  number: 0
  skip: True  # [win]
#  script: python setup.py install --single-version-externally-managed --record record.txt

requirements:
  build:
    - toolchain
    - pkg-config
    - freetype
    - fontconfig
    - xz
    - libpng
    - jpeg
    - xorg-libxt
    - xorg-libxext
    - xorg-libxft

  run:
    - freetype
    - fontconfig
    - xz
    - libpng
    - jpeg
    - xorg-libxt
    - xorg-libxext
    - xorg-libxft

test:
  commands:
    - 'test "`uil 2>&1| tr -d ''\n''`" = "Severe: no source file specified"'
    - conda inspect linkages -p $PREFIX $PKG_NAME  # [not win]
    - conda inspect objects -p $PREFIX $PKG_NAME  # [osx]

about:
  home: http://motif.ics.com
  license: LGPL-2.1
  license_family: LGPL
  license_file: COPYING
  summary: 'Motif user interface component toolkit.'

extra:
  recipe-maintainers:
    - epruesse
{'fraction_non_alphanumeric': 0.14317602040816327, 'fraction_numerical': 0.04400510204081633, 'mean_word_length': 2.926157697121402, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5689435', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1208, 'n_words': 240}