summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-21 15:08:32 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-21 15:58:28 +0200
commitc9e1db72a74c68b216c04bc5bb3e2596bab2488f (patch)
tree050519c0911375d0653001ebb6340aff9c6b6f71 /dev-libs
parentdev-libs/botan: Stabilize 3.0.0-r2 x86, #906856 (diff)
downloadgentoo-c9e1db72a74c68b216c04bc5bb3e2596bab2488f.tar.gz
gentoo-c9e1db72a74c68b216c04bc5bb3e2596bab2488f.tar.bz2
gentoo-c9e1db72a74c68b216c04bc5bb3e2596bab2488f.zip
dev-libs/libevent: Add unkeyworded 2.2.1 for testing
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libevent/Manifest2
-rw-r--r--dev-libs/libevent/libevent-2.2.1.ebuild74
-rw-r--r--dev-libs/libevent/metadata.xml1
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-libs/libevent/Manifest b/dev-libs/libevent/Manifest
index 2aaf3cb60e24..cfc3c56e4cb7 100644
--- a/dev-libs/libevent/Manifest
+++ b/dev-libs/libevent/Manifest
@@ -1,2 +1,4 @@
DIST libevent-2.1.12-stable.tar.gz 1100847 BLAKE2B bc1ace15f639ecef2e6b3f95976b8830c1d86f1d06606dd949e2978611fdf9859ed4eb9292d13e6e90e3835063edb94aae64a15c518d5dabe680f37d5a7f5290 SHA512 88d8944cd75cbe78bc4e56a6741ca67c017a3686d5349100f1c74f8a68ac0b6410ce64dff160be4a4ba0696ee29540dfed59aaf3c9a02f0c164b00307fcfe84f
DIST libevent-2.1.12-stable.tar.gz.asc 488 BLAKE2B 629109913fe57110d0d78f5a7f18f36a7556b6b438ca65d9ce7c8f1d46e04cb9af4df8d7504d31165b510869154ea3a546e55a83bd7b1247bcfdf7c7d9509312 SHA512 841b57a0f6ba645b1871f257b9929093b11b7d6fd03332e6339adceddda233e78f6190faa2339e2b67b26dc2a56ddd7ce622792820b582168b31a2d1d1854f1f
+DIST libevent-2.2.1-alpha-dev.tar.gz 1166550 BLAKE2B 4ab460a521aab90852ade14c937c06a21f8e5649a1a1dc4114f978a99272deb77b4e05923861e979f4ee5f50e04149d7b8f8e38294279757f27779597f407d79 SHA512 3e0ef283979a30cce11065c3b9a1078f3f006dbab86e8b49f75dc3aac2384085cb74477d95e5bc4e88c0d81ee2359fcd1cf292107d4791de87191019f2fcdfa5
+DIST libevent-2.2.1-alpha-dev.tar.gz.asc 488 BLAKE2B d3e2b2782edd3bcabe42183b5b6647b6e55cd52292813901015a96c6eeec40e1ce57e9be731b2bd027c787f22b8ac5a587b7bed1dff95993bedde8b88fc1e89c SHA512 af720bce0829e806fb8bbb043eaf973fa6765ee17f059367b72344ce111a68f878b7a2fe361e4a3db61c7b4724c7dff19f960636b98e4208e7e27a2a077b8848
diff --git a/dev-libs/libevent/libevent-2.2.1.ebuild b/dev-libs/libevent/libevent-2.2.1.ebuild
new file mode 100644
index 000000000000..d1512562af55
--- /dev/null
+++ b/dev-libs/libevent/libevent-2.2.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal verify-sig
+
+MY_P="${P}-alpha-dev"
+DESCRIPTION="Library to execute a function when a specific event occurs on a file descriptor"
+HOMEPAGE="
+ https://libevent.org/
+ https://github.com/libevent/libevent/
+"
+BASE_URI="https://github.com/libevent/libevent/releases/download/release-${PV}-alpha"
+SRC_URI="
+ ${BASE_URI}/${MY_P}.tar.gz
+ verify-sig? (
+ ${BASE_URI}/${MY_P}.tar.gz.asc
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0/2.2"
+KEYWORDS=""
+IUSE="
+ +clock-gettime debug malloc-replacement mbedtls +openssl static-libs
+ test verbose-debug
+"
+# TODO: hangs
+RESTRICT="test"
+
+DEPEND="
+ mbedtls? ( net-libs/mbedtls:=[${MULTILIB_USEDEP}] )
+ openssl? ( >=dev-libs/openssl-1.0.1h-r2:=[${MULTILIB_USEDEP}] )
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ verify-sig? (
+ sec-keys/openpgp-keys-libevent
+ )
+"
+
+DOCS=( README.md ChangeLog{,-1.4,-2.0} whatsnew-2.{0,1}.txt )
+MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/event2/event-config.h
+)
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libevent.asc
+
+multilib_src_configure() {
+ # fix out-of-source builds
+ mkdir -p test || die
+
+ local ECONF_SOURCE="${S}"
+ local myconf=(
+ $(use_enable clock-gettime)
+ $(use_enable debug debug-mode)
+ $(use_enable malloc-replacement malloc-replacement)
+ $(use_enable mbedtls)
+ $(use_enable openssl)
+ $(use_enable static-libs static)
+ $(use_enable test libevent-regress)
+ $(use_enable verbose-debug)
+ --disable-samples
+ )
+ econf "${myconf[@]}"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/dev-libs/libevent/metadata.xml b/dev-libs/libevent/metadata.xml
index 382b01135b4f..4d52f7a73849 100644
--- a/dev-libs/libevent/metadata.xml
+++ b/dev-libs/libevent/metadata.xml
@@ -15,6 +15,7 @@
<flag name="debug">Support for running in debug mode</flag>
<flag name="malloc-replacement">Support for replacing the memory management functions</flag>
<flag name="mbedtls">Support for <pkg>net-libs/mbedtls</pkg> encryption</flag>
+ <flag name="openssl">Support for <pkg>dev-libs/openssl</pkg> encryption</flag>
<flag name="ssl">Support for <pkg>dev-libs/openssl</pkg> encryption</flag>
<flag name="verbose-debug">Support for verbose debug logging</flag>
</use>