aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-08-02 05:47:41 +0800
committerantoine <antoine@FreeBSD.org>2014-08-02 05:47:41 +0800
commitdf37603707c851c565206a52d7ea19c230b1e7c3 (patch)
tree4d4837bb4cbfc676c7fed60fa082e4ad95cfb236 /editors
parente97a2ce965c0359ec347775a8c37af13e80c426f (diff)
downloadfreebsd-ports-gnome-df37603707c851c565206a52d7ea19c230b1e7c3.tar.gz
freebsd-ports-gnome-df37603707c851c565206a52d7ea19c230b1e7c3.tar.zst
freebsd-ports-gnome-df37603707c851c565206a52d7ea19c230b1e7c3.zip
- Update to 0.5.1
- Stage support PR: ports/190514 Submitted by: maintainer
Diffstat (limited to 'editors')
-rw-r--r--editors/wordgrinder/Makefile52
-rw-r--r--editors/wordgrinder/distinfo4
2 files changed, 26 insertions, 30 deletions
diff --git a/editors/wordgrinder/Makefile b/editors/wordgrinder/Makefile
index 7255ceeac6b8..bd2b4ceed6a7 100644
--- a/editors/wordgrinder/Makefile
+++ b/editors/wordgrinder/Makefile
@@ -2,9 +2,9 @@
# $FreeBSD$
PORTNAME= wordgrinder
-PORTVERSION= 0.3.3
+PORTVERSION= 0.5.1
CATEGORIES= editors
-MASTER_SITES= SF
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
MAINTAINER= vmagerya@gmail.com
COMMENT= Simple Unicode-aware console-based word processor
@@ -13,35 +13,31 @@ LICENSE= MIT
RUN_DEPENDS= ${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem
-USES= lua:51 tar:bzip2
-
-MAN1= wordgrinder.1
+USES= lua:52 tar:bzip2 gmake
PLIST_DIRS= share/doc/wordgrinder
-PLIST_FILES= bin/wordgrinder share/doc/wordgrinder/README.wg
+PLIST_FILES= bin/wordgrinder \
+ share/doc/wordgrinder/README.wg \
+ man/man1/wordgrinder.1.gz
-NO_STAGE= yes
post-patch:
- ${REINPLACE_CMD} -e 's,^PREFIX =.*$$,PREFIX = "${PREFIX}",' \
- -e 's,/usr/include/lua5.1,${LUA_INCDIR},' \
- -e 's,command = "lua ,command = "${LUA_CMD} ,' \
- -e '/curses_exe =/s,$$,\
- CLINKFLAGS = {PARENT\, "-L${LUA_LIBDIR}"}\,,' \
- -e 's,lua5.1,lua,' \
- -e 's,install -D,install,' \
- ${WRKSRC}/pmfile
- ${REINPLACE_CMD} 's,^LUACOMPILER =.*$$,LUACOMPILER = "${LUAC_CMD}",' \
- ${WRKSRC}/tools/lua.pm
- ${REINPLACE_CMD} "/CCOMPILER = /s,gcc,cc ," ${WRKSRC}/tools/c.pm
- ${REINPLACE_CMD} "/CC=/s,gcc,cc ," ${WRKSRC}/pm
-
-do-build:
- (cd ${WRKSRC}; ./pm)
-
-do-install:
- ${MKDIR} ${PREFIX}/bin ${PREFIX}/man/man1
- ${MKDIR} ${PREFIX}/share/doc/wordgrinder
- (cd ${WRKSRC}; ./pm install)
- ${STRIP_CMD} ${PREFIX}/bin/wordgrinder
+ ${REINPLACE_CMD} \
+ -e '/hide = /s/@//' \
+ -e '/cc := gcc/s|gcc|${CC}|' \
+ -e '/INCLUDES := /s|= .*|= -I${LUA_INCDIR}|' \
+ -e '/ldflags := /s|=|= -L${LUA_LIBDIR}|' \
+ -e 's|-llua5.2|-llua-${LUA_VER}|' \
+ -e 's|@lua|${LUA_CMD}|' \
+ -e '/PREFIX = /d' \
+ -e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \
+ -e '/install /s|-D||' \
+ -e '/install /s|share/man/man1|man/man1|' \
+ ${WRKSRC}/Makefile
+
+pre-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/wordgrinder
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder
.include <bsd.port.mk>
diff --git a/editors/wordgrinder/distinfo b/editors/wordgrinder/distinfo
index 39bd8ffc804a..f98b89539d39 100644
--- a/editors/wordgrinder/distinfo
+++ b/editors/wordgrinder/distinfo
@@ -1,2 +1,2 @@
-SHA256 (wordgrinder-0.3.3.tar.bz2) = 999781e169eda05d64b5df6034e0ab1d98f768a936218979754f754ca6eeb339
-SIZE (wordgrinder-0.3.3.tar.bz2) = 680918
+SHA256 (wordgrinder-0.5.1.tar.bz2) = 387cf4e8fc5f188c821cd77c782e1256ddb7c27987a682e1526143dc582d3677
+SIZE (wordgrinder-0.5.1.tar.bz2) = 652378