aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-06-09 21:41:03 +0800
committermarino <marino@FreeBSD.org>2016-06-09 21:41:03 +0800
commit6410db5e8611b2fc88cbc8f157d2bc6d94429952 (patch)
tree9948c6b25bbf9a7007af28db83b36f15d1a67a30 /editors
parent19ccde4c90428a93e4bd26c25d2f00332bff2bb0 (diff)
downloadfreebsd-ports-gnome-6410db5e8611b2fc88cbc8f157d2bc6d94429952.tar.gz
freebsd-ports-gnome-6410db5e8611b2fc88cbc8f157d2bc6d94429952.tar.zst
freebsd-ports-gnome-6410db5e8611b2fc88cbc8f157d2bc6d94429952.zip
editors/neovim: Unbreak using dports patches
One of the 3 patches is for DF, the other two are commonly needed.
Diffstat (limited to 'editors')
-rw-r--r--editors/neovim/Makefile4
-rw-r--r--editors/neovim/files/patch-config_CMakeLists.txt11
-rw-r--r--editors/neovim/files/patch-src_nvim_event_pty__process.c11
-rw-r--r--editors/neovim/files/patch-src_nvim_shada.c10
4 files changed, 33 insertions, 3 deletions
diff --git a/editors/neovim/Makefile b/editors/neovim/Makefile
index 98ef2fc5818e..a1ecf72b5b64 100644
--- a/editors/neovim/Makefile
+++ b/editors/neovim/Makefile
@@ -3,7 +3,7 @@
PORTNAME= neovim
PORTVERSION= 0.1.4
-PORTREVISION= 1
+PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= editors
@@ -12,8 +12,6 @@ COMMENT= Next generation Vim
LICENSE= APACHE20
-BROKEN= fails to build
-
BUILD_DEPENDS= ${LUA_MODLIBDIR}/bit.so:devel/lua-bitop \
${LUA_MODLIBDIR}/lpeg.so:devel/lua-lpeg
LIB_DEPENDS= libunibilium.so:devel/unibilium \
diff --git a/editors/neovim/files/patch-config_CMakeLists.txt b/editors/neovim/files/patch-config_CMakeLists.txt
new file mode 100644
index 000000000000..1b7ff6f9a2a0
--- /dev/null
+++ b/editors/neovim/files/patch-config_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- config/CMakeLists.txt.orig 2016-06-09 12:33:52 UTC
++++ config/CMakeLists.txt
+@@ -74,7 +74,7 @@ check_c_source_compiles("
+ #define _BSD_SOURCE 1
+ #define _DEFAULT_SOURCE 1
+ ${SI}
+- #include <endian.h>
++ #include <sys/endian.h>
+ #ifndef be64toh
+ # error No be64toh macros
+ #endif
diff --git a/editors/neovim/files/patch-src_nvim_event_pty__process.c b/editors/neovim/files/patch-src_nvim_event_pty__process.c
new file mode 100644
index 000000000000..651aa713ae3b
--- /dev/null
+++ b/editors/neovim/files/patch-src_nvim_event_pty__process.c
@@ -0,0 +1,11 @@
+--- src/nvim/event/pty_process.c.orig 2016-04-25 01:46:34 UTC
++++ src/nvim/event/pty_process.c
+@@ -10,7 +10,7 @@
+ #include <sys/ioctl.h>
+
+ // forkpty is not in POSIX, so headers are platform-specific
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined __DragonFly__
+ # include <libutil.h>
+ #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+ # include <util.h>
diff --git a/editors/neovim/files/patch-src_nvim_shada.c b/editors/neovim/files/patch-src_nvim_shada.c
new file mode 100644
index 000000000000..83a6966af367
--- /dev/null
+++ b/editors/neovim/files/patch-src_nvim_shada.c
@@ -0,0 +1,10 @@
+--- src/nvim/shada.c.orig 2016-04-25 01:46:34 UTC
++++ src/nvim/shada.c
+@@ -46,7 +46,6 @@
+ #ifdef HAVE_BE64TOH
+ # define _BSD_SOURCE 1
+ # define _DEFAULT_SOURCE 1
+-# include <endian.h>
+ #endif
+
+ // Note: when using bufset hash pointers are intentionally casted to uintptr_t