commit: 45f9395aae78d763c43dad5ab0f7f8432fd8df44
parent fda530904678b0dcadad7e28b603ecb01bfc231d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 27 May 2023 08:16:17 +0200
dev-libs/libkqueue: new package from ::floppym, add 2.5.0
Diffstat:
3 files changed, 53 insertions(+), 0 deletions(-)
diff --git a/dev-libs/libkqueue/Manifest b/dev-libs/libkqueue/Manifest
@@ -0,0 +1 @@
+DIST libkqueue-2.5.0.tar.gz 178456 BLAKE2B 1cc390b74d525b24deb574cc5dea42fa0d302f195057e3c8fa4ba9565df10ac6d1f8864696803134823902181ca15064d99c2946004d0fa7b872eb3052fe8d8b SHA512 c041618833cc29a0ec14b15e55f0926c14e559d559b7f59f4225dfe4b300851bc2d8d2f24c9bda6f1d3859368837d738d78ef15edd85daf317ad65565aafc9b8
diff --git a/dev-libs/libkqueue/files/libkqueue-2.5.0-soversion.patch b/dev-libs/libkqueue/files/libkqueue-2.5.0-soversion.patch
@@ -0,0 +1,25 @@
+From 742f1c3e763e291df70c4c551c4bdbc303394138 Mon Sep 17 00:00:00 2001
+From: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
+Date: Thu, 21 Oct 2021 21:32:20 -0400
+Subject: [PATCH] Set SOVERSION to 0 Closes #100
+
+---
+ CMakeLists.txt | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cbb76267..1b6e5d1d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -212,7 +212,10 @@ else()
+ endif()
+
+ add_library(kqueue ${LIBRARY_TYPE} ${LIBKQUEUE_SOURCES} ${LIBKQUEUE_HEADERS})
+-set_target_properties(kqueue PROPERTIES SOVERSION ${PROJECT_VERSION})
++
++# We should have absolute ABI compatibility between versions as none
++# of the public function signatures of variables will change.
++set_target_properties(kqueue PROPERTIES SOVERSION 0)
+
+ if(WIN32)
+ target_compile_definitions(kqueue PRIVATE _USRDLL;_WINDLL)
diff --git a/dev-libs/libkqueue/libkqueue-2.5.0.ebuild b/dev-libs/libkqueue/libkqueue-2.5.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="kqueue(2) compatibility library"
+HOMEPAGE="https://github.com/mheily/libkqueue"
+SRC_URI="https://github.com/mheily/libkqueue/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC BSD-2"
+SLOT="0/0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+ "${FILESDIR}/libkqueue-2.5.0-soversion.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_TESTING=$(usex test ON OFF)
+ )
+ cmake_src_configure
+}