Index: editors/neovim/Makefile =================================================================== --- editors/neovim/Makefile +++ editors/neovim/Makefile @@ -3,8 +3,8 @@ PORTNAME= neovim PORTVERSION= 0.1.4 -PORTREVISION= 2 DISTVERSIONPREFIX= v +PORTREVISION= 2 CATEGORIES= editors MAINTAINER= ports@FreeBSD.org Index: editors/neovim/files/patch-config_CMakeLists.txt =================================================================== --- editors/neovim/files/patch-config_CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 -+ #include - #ifndef be64toh - # error No be64toh macros - #endif Index: editors/neovim/files/patch-config__CMakeLists.txt =================================================================== --- /dev/null +++ editors/neovim/files/patch-config__CMakeLists.txt @@ -0,0 +1,26 @@ +--- config/CMakeLists.txt.orig 2016-06-05 14:13:28 UTC ++++ config/CMakeLists.txt +@@ -67,6 +67,14 @@ if(HAVE_LANGINFO_H) + check_symbol_exists(CODESET "langinfo.h" HAVE_NL_LANGINFO_CODESET) + endif() + ++check_include_files("endian.h" HAVE_ENDIAN_H) ++check_include_files("sys/endian.h" HAVE_SYS_ENDIAN_H) ++ ++set(ENDIAN_INCLUDE_FILE "endian.h") ++if(HAVE_SYS_ENDIAN_H AND NOT HAVE_ENDIAN_H) ++ set(ENDIAN_INCLUDE_FILE "sys/endian.h") ++endif() ++ + set(SI "#include \n") + set(MS "int main(int argc,char**argv)\n{\n uint64_t i=0x0102030405060708ULL;") + set(ME "}") +@@ -74,7 +82,7 @@ check_c_source_compiles(" + #define _BSD_SOURCE 1 + #define _DEFAULT_SOURCE 1 + ${SI} +- #include ++ #include <${ENDIAN_INCLUDE_FILE}> + #ifndef be64toh + # error No be64toh macros + #endif Index: editors/neovim/files/patch-config__config.h.in =================================================================== --- /dev/null +++ editors/neovim/files/patch-config__config.h.in @@ -0,0 +1,9 @@ +--- config/config.h.in.orig 2016-06-05 14:13:28 UTC ++++ config/config.h.in +@@ -57,5 +57,6 @@ + + #cmakedefine HAVE_BE64TOH + #cmakedefine ORDER_BIG_ENDIAN ++#define ENDIAN_INCLUDE_FILE <@ENDIAN_INCLUDE_FILE@> + + #endif // AUTO_CONFIG_H Index: editors/neovim/files/patch-src__nvim__shada.c =================================================================== --- /dev/null +++ editors/neovim/files/patch-src__nvim__shada.c @@ -0,0 +1,11 @@ +--- src/nvim/shada.c.orig 2016-06-05 14:13:28 UTC ++++ src/nvim/shada.c +@@ -46,7 +46,7 @@ + #ifdef HAVE_BE64TOH + # define _BSD_SOURCE 1 + # define _DEFAULT_SOURCE 1 +-# include ++# include ENDIAN_INCLUDE_FILE + #endif + + // Note: when using bufset hash pointers are intentionally casted to uintptr_t Index: editors/neovim/files/patch-src_nvim_event_pty__process.c =================================================================== --- editors/neovim/files/patch-src_nvim_event_pty__process.c +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 - - // forkpty is not in POSIX, so headers are platform-specific --#if defined(__FreeBSD__) -+#if defined(__FreeBSD__) || defined __DragonFly__ - # include - #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) - # include Index: editors/neovim/files/patch-src_nvim_shada.c =================================================================== --- editors/neovim/files/patch-src_nvim_shada.c +++ /dev/null @@ -1,10 +0,0 @@ ---- 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 - #endif - - // Note: when using bufset hash pointers are intentionally casted to uintptr_t Index: misc/unclutter-xfixes/Makefile =================================================================== --- /dev/null +++ misc/unclutter-xfixes/Makefile @@ -0,0 +1,32 @@ +# Created by: Oleg Gushchenkov +# $FreeBSD$ + +PORTNAME= unclutter-xfixes +PORTVERSION= 1.1 +DISTVERSIONPREFIX= v +CATEGORIES= misc + +MAINTAINER= gor@clogic.com.ua +COMMENT= Rewrite of unclutter using the x11-xfixes extension + +LICENSE= MIT + +LIB_DEPENDS= libev.so:devel/libev + +CONFLICTS_INSTALL= unclutter-8* + +CFLAGS+= -I${LOCALBASE}/include + +USE_GITHUB= yes +GH_ACCOUNT= Airblader + +USE_XORG= x11 xi xfixes + +USES= gmake pkgconfig + +PLIST_FILES= bin/unclutter \ + man/man1/unclutter.1.gz + +MAKE_ENV+= UNCLUTTER_VERSION=1.1 + +.include Index: misc/unclutter-xfixes/distinfo =================================================================== --- /dev/null +++ misc/unclutter-xfixes/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1465305813 +SHA256 (Airblader-unclutter-xfixes-v1.1_GH0.tar.gz) = 91635c64a2075cb4e8926d84c09931c957e5f1d824a249cddb7ec109378090ad +SIZE (Airblader-unclutter-xfixes-v1.1_GH0.tar.gz) = 5812 Index: misc/unclutter-xfixes/files/patch-Makefile =================================================================== --- /dev/null +++ misc/unclutter-xfixes/files/patch-Makefile @@ -0,0 +1,35 @@ +Index: Makefile +=================================================================== +--- Makefile.orig 2016-05-16 09:27:55 UTC ++++ Makefile +@@ -4,11 +4,11 @@ IDIR = include + ODIR = obj + + INSTALL = install +-PREFIX = /usr/bin + +-MANDIR = /usr/share/man/man1 ++BINDIR = /bin ++MANDIR = /man/man1 + +-CC = gcc ++CC = cc + CFLAGS += -I$(IDIR) + CFLAGS += -std=gnu99 + CFLAGS += -Wall -Wundef -Wshadow -Wformat-security +@@ -32,12 +32,12 @@ $(TARGET): $(OBJS) + $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS) + + $(ODIR)/%.o: $(SDIR)/%.c $(INCS) +- $(CC) -D'__VERSION="$(shell git describe --all --long --always)"' $(CFLAGS) -o $@ -c $< ++ $(CC) -D'__VERSION="$(UNCLUTTER_VERSION)"' $(CFLAGS) -o $@ -c $< + + .PHONY: install + install: $(TARGET) +- $(INSTALL) -Dm 0755 $(TARGET) $(DESTDIR)$(PREFIX)/$(TARGET) +- $(INSTALL) -Dm 0644 man/unclutter-xfixes.1 $(DESTDIR)$(MANDIR)/unclutter.1 ++ $(INSTALL) -s -m 0755 $(TARGET) $(DESTDIR)$(PREFIX)$(BINDIR)/$(TARGET) ++ $(INSTALL) -c -m 0644 man/unclutter-xfixes.1 $(DESTDIR)$(PREFIX)$(MANDIR)/$(TARGET).1 + + .PHONY: uninstall + uninstall: Index: misc/unclutter-xfixes/pkg-descr =================================================================== --- /dev/null +++ misc/unclutter-xfixes/pkg-descr @@ -0,0 +1,6 @@ +This is a rewrite of the popular tool unclutter, but using the x11-xfixes +extension. This means that this rewrite doesn't use fake windows or +pointer grabbing and hence causes less problems with window managers +and/or applications. + +WWW: https://github.com/Airblader/unclutter-xfixes