# This file created by conda-build 3.24.0
# meta.yaml template originally from:
# /feedstock/recipe, last modified Thu May 25 22:00:55 2023
# ------------------------------------------------

package:
  name: libevent
  version: 2.1.12
source:
  fn: libevent-2.1.12.tar.gz
  patches:
    - 0001-Fix-destination-for-DLLs-lib-bin.patch
    - patches/0002-openssl3.patch
  sha256: 7180a979aaa7000e1264da484f712d403fcf7679b1e9212c4e3d09f5c93efc24
  url: https://github.com/libevent/libevent/archive/release-2.1.12-stable.tar.gz
build:
  number: '1'
  run_exports:
    - libevent >=2.1.12,<2.1.13.0a0
  string: hdbd6064_1
requirements:
  build:
    - _libgcc_mutex 0.1 main
    - _openmp_mutex 5.1 1_gnu
    - _sysroot_linux-64_curr_repodata_hack 3 haa98f57_10
    - autoconf 2.71 pl5340h5eee18b_0
    - automake 1.16.5 pl5340h06a4308_1
    - binutils_impl_linux-64 2.38 h2a08ee3_1
    - binutils_linux-64 2.38.0 hc2dff05_0
    - bzip2 1.0.8 h7b6447c_0
    - c-ares 1.19.0 h5eee18b_0
    - ca-certificates 2023.01.10 h06a4308_0
    - cmake 3.22.1 h1fce559_0
    - expat 2.4.9 h6a678d5_0
    - gcc_impl_linux-64 11.2.0 h1234567_1
    - gcc_linux-64 11.2.0 h5c386dc_0
    - gdbm 1.18 hd4cb3f1_4
    - kernel-headers_linux-64 3.10.0 h57e8cba_10
    - krb5 1.19.4 h568e23c_0
    - ld_impl_linux-64 2.38 h1181459_1
    - libcurl 7.88.1 h91b91d3_0
    - libedit 3.1.20221030 h5eee18b_0
    - libev 4.33 h7f8727e_1
    - libgcc-devel_linux-64 11.2.0 h1234567_1
    - libgcc-ng 11.2.0 h1234567_1
    - libgomp 11.2.0 h1234567_1
    - libnghttp2 1.46.0 hce63b2e_0
    - libssh2 1.10.0 h8f2d780_0
    - libstdcxx-ng 11.2.0 h1234567_1
    - libtool 2.4.6 h6a678d5_1009
    - libuv 1.44.2 h5eee18b_0
    - lz4-c 1.9.4 h6a678d5_0
    - m4 1.4.18 h4e445db_0
    - make 4.2.1 h1bed415_1
    - ncurses 6.4 h6a678d5_0
    - openssl 1.1.1t h7f8727e_0
    - patch 2.7.6 h7b6447c_1001
    - perl 5.34.0 h5eee18b_2
    - pkg-config 0.29.2 h1bed415_8
    - readline 8.2 h5eee18b_0
    - rhash 1.4.1 h3c74f83_1
    - sysroot_linux-64 2.17 h57e8cba_10
    - xz 5.4.2 h5eee18b_0
    - zlib 1.2.13 h5eee18b_0
    - zstd 1.5.5 hc292b87_0
  host:
    - _libgcc_mutex 0.1 main
    - _openmp_mutex 5.1 1_gnu
    - ca-certificates 2023.01.10 h06a4308_0
    - libgcc-ng 11.2.0 h1234567_1
    - libgomp 11.2.0 h1234567_1
    - openssl 3.0.8 h7f8727e_0
  run:
    - libgcc-ng >=11.2.0
    - openssl 3.*
    - openssl >=3.0.8,<4.0a0
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 3.8.*
  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-2.1/doxygen/html/
  home: https://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
  flow_run_id: 5cb5617b-2934-4cf9-b888-fcaece4076bf
  recipe-maintainers:
    - jakirkham
  remote_url: git@github.com:AnacondaRecipes/libevent-feedstock.git
  sha: 99bfe6b9cc2608815d7a08bcae3accc305e61745
  skip-lints:
    - http_url
