package:
  name: openbabel
  version: 2.3.90dev7d621d9

source:
  url: https://github.com/openbabel/openbabel/archive/7d621d9c9f2f07a1f105896a765bf2afa22e6028.zip
  fn: 7d621d9c9f2f07a1f105896a765bf2afa22e6028.zip

  patches:
    - include-dirs.patch
    - fix_library_path_search.diff
    - fix_data_path.diff

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

requirements:
  build:
    - gcc     # [linux]
    - llvm    # [osx]
    - cmake
    - zlib
    - swig
    - eigen
    - bzip2
    - python
    - zlib
    - libxml2
  run:
    - python
    - libgcc  # [linux]
    - zlib
    - libxml2

test:
  imports:
    - openbabel
    - pybel
  commands:
    - cd $SRC_DIR/test ; python test_pybel.py
    - cd $SRC_DIR/test ; python testbindings.py
    - cd $SRC_DIR/test ; python testexample.py

about:
    home: http://www.openbabel.org/
    license: GPLv2
    summary: "A chemical toolbox designed to speak the many languages of chemical data"

package:
  name: openbabel
  version: 2.3.90dev7d621d9

source:
  url: https://github.com/openbabel/openbabel/archive/7d621d9c9f2f07a1f105896a765bf2afa22e6028.zip
  fn: 7d621d9c9f2f07a1f105896a765bf2afa22e6028.zip

  patches:
    - include-dirs.patch
    - fix_library_path_search.diff
    - fix_data_path.diff

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

requirements:
  build:
    - gcc     # [linux]
    - llvm    # [osx]
    - cmake
    - zlib
    - swig
    - eigen
    - bzip2
    - python
    - zlib
    - libxml2
  run:
    - python
    - libgcc  # [linux]
    - zlib
    - libxml2

test:
  imports:
    - openbabel
    - pybel
  commands:
    - obabel --help

about:
    home: http://www.openbabel.org/
    license: GPLv2
    summary: "A chemical toolbox designed to speak the many languages of chemical data"

Fix openbabel test that was assuming presence of the source directory.
Fix openbabel test that was assuming presence of the source directory.
