# This file created by conda-build 3.24.0
# meta.yaml template originally from:
# /home/conda/recipe_root, last modified Fri Jun  2 17:08:46 2023
# ------------------------------------------------

package:
  name: libevent
  version: 2.1.12
source:
  patches:
    - patches/0001-Fix-destination-for-DLLs-lib-bin.patch
  sha256: 7180a979aaa7000e1264da484f712d403fcf7679b1e9212c4e3d09f5c93efc24
  url: https://github.com/libevent/libevent/archive/refs/tags/release-2.1.12-stable.tar.gz
build:
  number: '1'
  run_exports:
    - libevent >=2.1.12,<2.1.13.0a0
  string: hf998b51_1
requirements:
  build:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - binutils_impl_linux-64 2.39 he00db2b_1
    - binutils_linux-64 2.39 h5fc0e48_13
    - bzip2 1.0.8 h7f98852_4
    - c-ares 1.19.1 hd590300_0
    - ca-certificates 2023.5.7 hbcca054_0
    - cmake 3.26.4 hcfe8598_0
    - expat 2.5.0 hcb278e6_1
    - gcc_impl_linux-64 11.3.0 hab1b70f_19
    - gcc_linux-64 11.3.0 he6f903b_13
    - kernel-headers_linux-64 2.6.32 he073ed8_15
    - keyutils 1.6.1 h166bdaf_0
    - krb5 1.20.1 h81ceb04_0
    - ld_impl_linux-64 2.39 hcc3a1bd_1
    - libcurl 8.1.2 h409715c_0
    - libedit 3.1.20191231 he28a2e2_2
    - libev 4.33 h516909a_1
    - libexpat 2.5.0 hcb278e6_1
    - libgcc-devel_linux-64 11.3.0 h210ce93_19
    - libgcc-ng 12.2.0 h65d4601_19
    - libgomp 12.2.0 h65d4601_19
    - libnghttp2 1.52.0 h61bc06f_0
    - libsanitizer 11.3.0 h239ccf8_19
    - libssh2 1.10.0 hf14f497_3
    - libstdcxx-ng 12.2.0 h46fd767_19
    - libuv 1.44.2 h166bdaf_0
    - libzlib 1.2.13 h166bdaf_4
    - ncurses 6.3 h27087fc_1
    - ninja 1.11.1 h924138e_0
    - openssl 3.1.1 hd590300_1
    - rhash 1.4.3 h166bdaf_0
    - sysroot_linux-64 2.12 he073ed8_15
    - xz 5.2.6 h166bdaf_0
    - zlib 1.2.13 h166bdaf_4
    - zstd 1.5.2 h3eb15da_6
  host:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - ca-certificates 2023.5.7 hbcca054_0
    - libgcc-ng 12.2.0 h65d4601_19
    - libgomp 12.2.0 h65d4601_19
    - openssl 3.1.1 hd590300_1
  run:
    - libgcc-ng >=12
    - openssl >=3.1.1,<4.0a0
test:
  commands:
    - test -d "${PREFIX}/include/event2"
    - test -f "${PREFIX}/lib/libevent.so"
    - test ! -f "${PREFIX}/lib/libevent.a"
    - pkg-config --print-errors --exact-version "2.1.12" libevent
    - test -f "${PREFIX}/lib/libevent_core.so"
    - test ! -f "${PREFIX}/lib/libevent_core.a"
    - pkg-config --print-errors --exact-version "2.1.12" libevent_core
    - test -f "${PREFIX}/lib/libevent_extra.so"
    - test ! -f "${PREFIX}/lib/libevent_extra.a"
    - pkg-config --print-errors --exact-version "2.1.12" libevent_extra
    - test -f "${PREFIX}/lib/libevent_openssl.so"
    - test ! -f "${PREFIX}/lib/libevent_openssl.a"
    - pkg-config --print-errors --exact-version "2.1.12" libevent_openssl
    - test -f "${PREFIX}/lib/libevent_pthreads.so"
    - test ! -f "${PREFIX}/lib/libevent_pthreads.a"
    - pkg-config --print-errors --exact-version "2.1.12" libevent_pthreads
    - python event_rpcgen.py test/regress.rpc test/regress.gen.h test/regress.gen.c
    - cd cmake_test
    - cmake -GNinja $CMAKE_ARGS .
  files:
    - cmake_test/
  requires:
    - cmake
    - gxx_linux-64
    - ninja
    - pkg-config
    - 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:
    - h-vetinari
    - jakirkham
    - xhochy
