diff -ruN wordgrinder.orig/Makefile wordgrinder/Makefile
--- wordgrinder.orig/Makefile	2015-01-20 14:34:51.000000000 +0200
+++ wordgrinder/Makefile	2015-01-21 12:00:09.000000000 +0200
@@ -2,7 +2,7 @@
 # $FreeBSD: head/editors/wordgrinder/Makefile 375031 2014-12-20 18:12:05Z bapt $
 
 PORTNAME=	wordgrinder
-PORTVERSION=	0.5.1
+PORTVERSION=	0.5.2
 CATEGORIES=	editors
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
 
@@ -23,10 +23,10 @@
 	${REINPLACE_CMD} \
 		-e '/hide = /s/@//' \
 		-e '/cc := gcc/s|gcc|${CC}|' \
-		-e '/INCLUDES := /s|= .*|= -I${LUA_INCDIR}|' \
+		-e '/LUA_INCLUDE := /s|= .*|= ${LUA_INCDIR}|' \
 		-e '/ldflags := /s|=|= -L${LUA_LIBDIR}|' \
 		-e 's|-llua5.2|-llua-${LUA_VER}|' \
-		-e 's|@lua|${LUA_CMD}|' \
+		-e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \
 		-e '/PREFIX = /d' \
 		-e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \
 		-e '/install /s|-D||' \
diff -ruN wordgrinder.orig/distinfo wordgrinder/distinfo
--- wordgrinder.orig/distinfo	2015-01-20 14:34:51.000000000 +0200
+++ wordgrinder/distinfo	2015-01-21 11:41:00.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (wordgrinder-0.5.1.tar.bz2) = 387cf4e8fc5f188c821cd77c782e1256ddb7c27987a682e1526143dc582d3677
-SIZE (wordgrinder-0.5.1.tar.bz2) = 652378
+SHA256 (wordgrinder-0.5.2.tar.bz2) = b8da422ebeb31ebace5d174fed1d959f942af0c2704e6f064c8f31b3bd7e7774
+SIZE (wordgrinder-0.5.2.tar.bz2) = 644852