Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2014 21:47:41 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r363765 - head/editors/wordgrinder
Message-ID:  <201408012147.s71LlfcH029339@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Fri Aug  1 21:47:41 2014
New Revision: 363765
URL: http://svnweb.freebsd.org/changeset/ports/363765
QAT: https://qat.redports.org/buildarchive/r363765/

Log:
  - Update to 0.5.1
  - Stage support
  
  PR:		ports/190514
  Submitted by:	maintainer

Modified:
  head/editors/wordgrinder/Makefile
  head/editors/wordgrinder/distinfo

Modified: head/editors/wordgrinder/Makefile
==============================================================================
--- head/editors/wordgrinder/Makefile	Fri Aug  1 21:09:00 2014	(r363764)
+++ head/editors/wordgrinder/Makefile	Fri Aug  1 21:47:41 2014	(r363765)
@@ -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>

Modified: head/editors/wordgrinder/distinfo
==============================================================================
--- head/editors/wordgrinder/distinfo	Fri Aug  1 21:09:00 2014	(r363764)
+++ head/editors/wordgrinder/distinfo	Fri Aug  1 21:47:41 2014	(r363765)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408012147.s71LlfcH029339>