summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-21 13:29:54 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-21 13:32:59 +0200
commitf53f2544f9a924ab3e7cd1eb38e662875e795e01 (patch)
treea7900c3a29935e3f9736564c5e5c20f25b7da5eb /dev-libs/libevent
parentsec-keys/openpgp-keys-libevent: Add a PGP key for libevent (diff)
downloadgentoo-f53f2544f9a924ab3e7cd1eb38e662875e795e01.tar.gz
gentoo-f53f2544f9a924ab3e7cd1eb38e662875e795e01.tar.bz2
gentoo-f53f2544f9a924ab3e7cd1eb38e662875e795e01.zip
dev-libs/libevent: Enable verify-sig
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs/libevent')
-rw-r--r--dev-libs/libevent/Manifest3
-rw-r--r--dev-libs/libevent/libevent-2.1.12-r1.ebuild21
2 files changed, 18 insertions, 6 deletions
diff --git a/dev-libs/libevent/Manifest b/dev-libs/libevent/Manifest
index 204afbbb1bb2..2aaf3cb60e24 100644
--- a/dev-libs/libevent/Manifest
+++ b/dev-libs/libevent/Manifest
@@ -1 +1,2 @@
-DIST libevent-2.1.12.tar.gz 1100847 BLAKE2B bc1ace15f639ecef2e6b3f95976b8830c1d86f1d06606dd949e2978611fdf9859ed4eb9292d13e6e90e3835063edb94aae64a15c518d5dabe680f37d5a7f5290 SHA512 88d8944cd75cbe78bc4e56a6741ca67c017a3686d5349100f1c74f8a68ac0b6410ce64dff160be4a4ba0696ee29540dfed59aaf3c9a02f0c164b00307fcfe84f
+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
diff --git a/dev-libs/libevent/libevent-2.1.12-r1.ebuild b/dev-libs/libevent/libevent-2.1.12-r1.ebuild
index 52b0dc8fd562..4171ba58ee19 100644
--- a/dev-libs/libevent/libevent-2.1.12-r1.ebuild
+++ b/dev-libs/libevent/libevent-2.1.12-r1.ebuild
@@ -3,18 +3,24 @@
EAPI=7
-inherit libtool multilib-minimal
+inherit libtool multilib-minimal verify-sig
+MY_P="${P}-stable"
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-${MY_P#*-}"
SRC_URI="
- https://github.com/${PN}/${PN}/releases/download/release-${PV/_/-}-stable/${P/_/-}-stable.tar.gz -> ${P}.tar.gz
+ ${BASE_URI}/${MY_P}.tar.gz
+ verify-sig? (
+ ${BASE_URI}/${MY_P}.tar.gz.asc
+ )
"
-LICENSE="BSD"
+S=${WORKDIR}/${MY_P}
+LICENSE="BSD"
SLOT="0/2.1-7"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="
@@ -32,15 +38,20 @@ RDEPEND="
${DEPEND}
!<=dev-libs/9libs-1.0
"
+BDEPEND="
+ verify-sig? (
+ sec-keys/openpgp-keys-libevent
+ )
+"
+
MULTILIB_WRAPPED_HEADERS=(
/usr/include/event2/event-config.h
)
-S=${WORKDIR}/${P/_/-}-stable
-
PATCHES=(
"${FILESDIR}"/${P}-clang16.patch #880381
"${FILESDIR}"/${P}-libressl.patch #903001
)
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/libevent.asc
src_prepare() {
default