diff options
Diffstat (limited to 'vcpkg/ports/epoll-shim')
| -rw-r--r-- | vcpkg/ports/epoll-shim/000-install-pkg-config-into-standard-location.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/epoll-shim/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/epoll-shim/vcpkg.json | 18 |
3 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/epoll-shim/000-install-pkg-config-into-standard-location.patch b/vcpkg/ports/epoll-shim/000-install-pkg-config-into-standard-location.patch new file mode 100644 index 0000000..52a1213 --- /dev/null +++ b/vcpkg/ports/epoll-shim/000-install-pkg-config-into-standard-location.patch @@ -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") diff --git a/vcpkg/ports/epoll-shim/portfile.cmake b/vcpkg/ports/epoll-shim/portfile.cmake new file mode 100644 index 0000000..690492d --- /dev/null +++ b/vcpkg/ports/epoll-shim/portfile.cmake @@ -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") diff --git a/vcpkg/ports/epoll-shim/vcpkg.json b/vcpkg/ports/epoll-shim/vcpkg.json new file mode 100644 index 0000000..97aaae1 --- /dev/null +++ b/vcpkg/ports/epoll-shim/vcpkg.json @@ -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 + } + ] +} |