From 2fe17da211b1ccaf2d8130c861f35162efeaced6 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 15 Jul 2020 09:44:37 -0700 Subject: libevent: upgrade 2.1.11 -> 2.1.12 (From OE-Core rev: cb965ea3f191672c347e91e2ffb2586f119c77db) Signed-off-by: Richard Purdie --- meta/recipes-support/libevent/libevent_2.1.12.bb | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 meta/recipes-support/libevent/libevent_2.1.12.bb (limited to 'meta/recipes-support/libevent/libevent_2.1.12.bb') diff --git a/meta/recipes-support/libevent/libevent_2.1.12.bb b/meta/recipes-support/libevent/libevent_2.1.12.bb new file mode 100644 index 0000000000..29e87081d3 --- /dev/null +++ b/meta/recipes-support/libevent/libevent_2.1.12.bb @@ -0,0 +1,56 @@ +SUMMARY = "An asynchronous event notification library" +HOMEPAGE = "http://libevent.org/" +BUGTRACKER = "https://github.com/libevent/libevent/issues" +SECTION = "libs" + +LICENSE = "BSD & MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=17f20574c0b154d12236d5fbe964f549" + +SRC_URI = "https://github.com/libevent/libevent/releases/download/release-${PV}-stable/${BP}-stable.tar.gz \ + file://Makefile-missing-test-dir.patch \ + file://run-ptest \ + file://0001-test-regress_dns.c-patch-out-tests-that-require-a-wo.patch \ + " + +SRC_URI[sha256sum] = "92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb" + +UPSTREAM_CHECK_URI = "http://libevent.org/" + +S = "${WORKDIR}/${BPN}-${PV}-stable" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" + +inherit autotools + +# Needed for Debian packaging +LEAD_SONAME = "libevent-2.1.so" + +inherit ptest multilib_header + +DEPENDS = "zlib" + +PACKAGES_DYNAMIC = "^${PN}-.*$" +python split_libevent_libs () { + do_split_packages(d, '${libdir}', r'^libevent_([a-z]*)-.*\.so\..*', '${PN}-%s', '${SUMMARY} (%s)', prepend=True, allow_links=True) +} +PACKAGESPLITFUNCS_prepend = "split_libevent_libs " + +BBCLASSEXTEND = "native nativesdk" + +do_install_append() { + rm ${D}${bindir}/event_rpcgen.py + rmdir ${D}${bindir} + oe_multilib_header event2/event-config.h +} + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + for file in ${B}/test/.libs/regress ${B}/test/.libs/test* + do + install -m 0755 $file ${D}${PTEST_PATH}/test + done + + # handle multilib + sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest +} -- cgit v1.2.3-54-g00ecf