On 2017/02/13 16:20, Theo Buehler wrote:
> > Might be better to change the if(..) to exclude OpenBSD, rather than change 
> > the list..
> 
> Alright. I don't know CMake at all, so I wouldn't be surprised if this
> can be improved:

That looks fine to me :)  MATCHES seems slightly more common than STREQUAL
but either should be fine.


> diff -pu -rN neovim/Makefile /usr/ports/editors/neovim/Makefile
> --- neovim/Makefile   Sat Feb 11 18:21:09 2017
> +++ /usr/ports/editors/neovim/Makefile        Sun Feb 12 03:29:33 2017
> @@ -18,13 +18,14 @@ MAINTAINER =      Edd Barrett <[email protected]>
>  # Apache 2.0 + Vim License
>  PERMIT_PACKAGE_CDROM =       Yes
>  
> -WANTLIB += c kvm m msgpackc pthread termkey unibilium util uv vterm
> +WANTLIB += c m msgpackc pthread termkey unibilium util uv vterm
>  
>  MODULES =            devel/cmake \
>                       devel/gettext \
>                       lang/lua \
>                       textproc/intltool
>  BUILD_DEPENDS =              ${RUN_DEPENDS} \
> +                     devel/gperf \
>                       devel/lpeg \
>                       devel/lua-bitop
>  
> diff -pu -rN neovim/patches/patch-cmake_FindLibUV_cmake 
> /usr/ports/editors/neovim/patches/patch-cmake_FindLibUV_cmake
> --- neovim/patches/patch-cmake_FindLibUV_cmake        Thu Jan  1 01:00:00 1970
> +++ /usr/ports/editors/neovim/patches/patch-cmake_FindLibUV_cmake     Mon Feb 
> 13 16:07:26 2017
> @@ -0,0 +1,12 @@
> +$OpenBSD$
> +--- cmake/FindLibUV.cmake.orig       Mon Feb 13 16:06:55 2017
> ++++ cmake/FindLibUV.cmake    Mon Feb 13 16:06:57 2017
> +@@ -65,7 +65,7 @@ if(HAVE_LIBKSTAT)
> + endif()
> + 
> + check_library_exists(kvm kvm_open "kvm.h" HAVE_LIBKVM)
> +-if(HAVE_LIBKVM)
> ++if(HAVE_LIBKVM AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
> +   list(APPEND LIBUV_LIBRARIES kvm)
> + endif()
> + 
> 

Reply via email to