Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions ports/e-dant-watcher/fix-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b9872dc..86cb5fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,10 +109,11 @@ if(ANDROID)
# Android's stdlib ("bionic") doesn't need to be linked with (p)threads.
set(LINK_LIBRARIES "${LINK_LIBRARIES}")
else()
+ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package(Threads REQUIRED)
set(LINK_LIBRARIES
"${LINK_LIBRARIES}"
- "Threads::Threads"
+ "${CMAKE_THREAD_LIBS_INIT}"
)
if(APPLE)
list(APPEND LINK_LIBRARIES
@@ -409,7 +410,7 @@ wtr_add_hdr_target(
"wtr.hdr_watcher"
"include/wtr/watcher.hpp"
)
-
+if(0)
wtr_add_hdr_target(
"watcher-c-hdr"
"watcher-c/include/wtr/watcher-c.h"
@@ -468,17 +469,17 @@ wtr_add_bin_target(
""
""
)
-
+endif()
set(PC_WATCHER_LIBS_PRIVATE "${LINK_LIBRARIES}")
set(PC_WATCHER_LIBDIR "${CMAKE_INSTALL_LIBDIR}")
-set(PC_WATCHER_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/wtr")
+set(PC_WATCHER_INCLUDEDIR "${CMAKE_INSTALL_PREFIX}/include/wtr")
wtr_add_pkg_config_target("watcher.pc" "watcher.pc.in")
-
+if(0)
set(PC_LIBWATCHER_C_LIBS_PRIVATE "${LINK_LIBRARIES}")
set(PC_LIBWATCHER_C_LIBDIR "${CMAKE_INSTALL_LIBDIR}")
set(PC_LIBWATCHER_C_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/wtr")
wtr_add_pkg_config_target("watcher-c.pc" "watcher-c/watcher-c.pc.in")
-
+endif()
if(BUILD_TESTING)
message(STATUS "wtr.test_tool_test_all: Added (BUILD_TESTING=${BUILD_TESTING})")
add_test(
26 changes: 26 additions & 0 deletions ports/e-dant-watcher/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
set(VCPKG_BUILD_TYPE release) # header-only

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO e-dant/watcher
REF "${VERSION}"
SHA512 94f4a7074598ca490db4e2171eafa4cfc7a1d9a6107c3e24780a4716c84af3e3466030fb21c9b2a56c34ee18d5ec6842f741bcb92e252a45702a2e64945f3450
HEAD_REF release
PATCHES
fix-install.patch
)

vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_LIB=OFF
-DBUILD_BIN=OFF
-DBUILD_TESTING=OFF
)

vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()

# remove empty lib and debug/lib directories (and duplicate files from debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license")
17 changes: 17 additions & 0 deletions ports/e-dant-watcher/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "e-dant-watcher",
"version": "0.14.3",
"description": "Filesystem watcher. Works anywhere. Simple, efficient and friendly.",
"homepage": "https://github.com/e-dant/watcher",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2636,6 +2636,10 @@
"baseline": "2019-11-13",
"port-version": 0
},
"e-dant-watcher": {
"baseline": "0.14.3",
"port-version": 0
},
"eabase": {
"baseline": "2025-08-01",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/e-/e-dant-watcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "991f44857b733c9c4a764adc108f0c9346f1fd4a",
"version": "0.14.3",
"port-version": 0
}
]
}
Loading