[epoll-shim] Add new port (#47557)

This commit is contained in:
CQ_Undefine 2025-10-06 19:35:13 +02:00 committed by GitHub
parent 02e2bdc089
commit 3d9cc9a555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 744c9e8..02ef4aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,7 +62,7 @@ add_library(${_namespace}::epoll-shim-interpose ALIAS epoll-shim-interpose)\n")
configure_file("${PROJECT_SOURCE_DIR}/${_pc_filename}.pc.cmakein"
"${PROJECT_BINARY_DIR}/${_pc_filename}.pc" @ONLY)
install(FILES "${PROJECT_BINARY_DIR}/${_pc_filename}.pc"
- DESTINATION "${CMAKE_INSTALL_PKGCONFIGDIR}")
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endforeach()
set(CMAKE_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/libepoll-shim")

View File

@ -0,0 +1,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jiixyj/epoll-shim
REF v${VERSION}
SHA512 03f2cf64854dcb7c065284bbe765e6b52a9504969a733b450746226334fb9852e210b3db0d8ae40733abf62d75d35cc539140e9b5fb3507de9e47ebbc15f2ae3
HEAD_REF master
PATCHES
000-install-pkg-config-into-standard-location.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/epoll-shim)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -0,0 +1,18 @@
{
"name": "epoll-shim",
"version": "0.0.20240608",
"description": "Small epoll implementation using kqueue",
"homepage": "https://github.com/jiixyj/epoll-shim",
"license": "MIT",
"supports": "osx | freebsd | openbsd",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2732,6 +2732,10 @@
"baseline": "3.15.0",
"port-version": 0
},
"epoll-shim": {
"baseline": "0.0.20240608",
"port-version": 0
},
"eraser": {
"baseline": "2.2.1",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "07865cb81a0586ba5dbd0b09441a88ebce34e19d",
"version": "0.0.20240608",
"port-version": 0
}
]
}