cmake: fix building with libuv-1.22.0.
resolves void-linux/void-packages#889
This commit is contained in:
parent
e7930661d0
commit
9fdec77b6b
2 changed files with 13 additions and 1 deletions
12
srcpkgs/cmake/patches/fix-libuv.patch
Normal file
12
srcpkgs/cmake/patches/fix-libuv.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- Source/Modules/FindLibUV.cmake
|
||||
+++ Source/Modules/FindLibUV.cmake
|
||||
@@ -63,6 +63,8 @@ mark_as_advanced(LibUV_INCLUDE_DIR)
|
||||
set(_LibUV_H_REGEX "#[ \t]*define[ \t]+UV_VERSION_(MAJOR|MINOR|PATCH)[ \t]+[0-9]+")
|
||||
if(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv-version.h")
|
||||
file(STRINGS "${LibUV_INCLUDE_DIR}/uv-version.h" _LibUV_H REGEX "${_LibUV_H_REGEX}")
|
||||
+elseif(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv/version.h")
|
||||
+ file(STRINGS "${LibUV_INCLUDE_DIR}/uv/version.h" _LibUV_H REGEX "${_LibUV_H_REGEX}")
|
||||
elseif(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv.h")
|
||||
file(STRINGS "${LibUV_INCLUDE_DIR}/uv.h" _LibUV_H REGEX "${_LibUV_H_REGEX}")
|
||||
else()
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'cmake'
|
||||
pkgname=cmake
|
||||
version=3.11.4
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=configure
|
||||
makedepends="expat-devel libarchive-devel libcurl-devel libuv-devel
|
||||
ncurses-devel rhash-devel"
|
||||
|
|
Loading…
Reference in a new issue