# This file created by conda-build 3.21.4
# meta.yaml template originally from:
# /home/conda/recipe_root, last modified Wed Oct  6 02:57:50 2021
# ------------------------------------------------

package:
  name: libevent
  version: 2.1.10
source:
  fn: libevent-2.1.10.tar.gz
  patches:
    - 0001-Fix-destination-for-DLLs-lib-bin.patch
    - 0374b55942e533a3c3997439481a8d05d6c8f729.patch
  sha256: 52c9db0bc5b148f146192aa517db0762b2a5b3060ccc63b2c470982ec72b9a79
  url: https://github.com/libevent/libevent/archive/release-2.1.10-stable.tar.gz
build:
  number: '4'
  run_exports:
    - libevent >=2.1.10,<2.1.11.0a0
  string: h9b69904_4
requirements:
  build:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 1_gnu
    - autoconf 2.69 pl5320h36c2ea0_10
    - automake 1.16.2 pl5320ha770c72_3
    - binutils_impl_linux-64 2.36.1 h193b22a_2
    - binutils_linux-64 2.36 hf3e587d_1
    - ca-certificates 2021.5.30 ha878542_0
    - gcc_impl_linux-64 9.4.0 h03d3576_9
    - gcc_linux-64 9.4.0 h391b98a_1
    - kernel-headers_linux-64 2.6.32 he073ed8_14
    - ld_impl_linux-64 2.36.1 hea4e1c9_2
    - libgcc-devel_linux-64 9.4.0 hd854feb_9
    - libgcc-ng 11.2.0 h1d223b6_9
    - libgomp 11.2.0 h1d223b6_9
    - libsanitizer 9.4.0 h79bfe98_9
    - libstdcxx-ng 11.2.0 he4da1e4_9
    - libtool 2.4.6 h9c3ff4c_1008
    - m4 1.4.18 h516909a_1001
    - make 4.3 hd18ef5c_1
    - openssl 1.1.1l h7f98852_0
    - perl 5.32.1 0_h7f98852_perl5
    - pkg-config 0.29.2 h36c2ea0_1008
    - sysroot_linux-64 2.12 he073ed8_14
  host:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 1_gnu
    - ca-certificates 2021.5.30 ha878542_0
    - libgcc-ng 11.2.0 h1d223b6_9
    - libgomp 11.2.0 h1d223b6_9
    - openssl 1.1.1l h7f98852_0
  run:
    - libgcc-ng >=9.4.0
    - openssl >=1.1.1l,<1.1.2a
test:
  commands:
    - test -d "${PREFIX}/include/event2"
    - test ! -f "${PREFIX}/lib/libevent.a"
    - test -f "${PREFIX}/lib/libevent.so"
    - test ! -f "${PREFIX}/lib/libevent_core.a"
    - test -f "${PREFIX}/lib/libevent_core.so"
    - test ! -f "${PREFIX}/lib/libevent_extra.a"
    - test -f "${PREFIX}/lib/libevent_extra.so"
    - test ! -f "${PREFIX}/lib/libevent_openssl.a"
    - test -f "${PREFIX}/lib/libevent_openssl.so"
    - test ! -f "${PREFIX}/lib/libevent_pthreads.a"
    - test -f "${PREFIX}/lib/libevent_pthreads.so"
    - test -f "${PREFIX}/lib/pkgconfig/libevent.pc"
    - test -f "${PREFIX}/lib/pkgconfig/libevent_openssl.pc"
    - test -f "${PREFIX}/lib/pkgconfig/libevent_pthreads.pc"
    - python event_rpcgen.py test/regress.rpc test/regress.gen.h test/regress.gen.c
  requires:
    - python *
  source_files:
    - event_rpcgen.py
    - test/
about:
  description: 'The libevent API provides a mechanism to execute a callback function
    when

    a specific event occurs on a file descriptor or after a timeout has been

    reached. Furthermore, libevent also supports callbacks due to signals or

    regular timeouts.

    '
  dev_url: https://github.com/libevent/libevent
  doc_url: http://www.wangafu.net/~nickm/libevent-1.4/doxygen/html/
  home: http://libevent.org/
  license: BSD-3-Clause
  license_family: BSD
  license_file: LICENSE
  summary: An event notification library.
extra:
  copy_test_source_files: true
  final: true
  recipe-maintainers:
    - jakirkham
