svn commit: r401004 - head/editors/wordgrinder

Pawel Pekala pawel at FreeBSD.org
Sat Nov 7 16:19:06 UTC 2015


Author: pawel
Date: Sat Nov  7 16:19:04 2015
New Revision: 401004
URL: https://svnweb.freebsd.org/changeset/ports/401004

Log:
  - Update to version 0.6, now hosted on GitHub
  - Add X11 option, on by default
  - Refresh pkg-descr, new project homepage
  
  Changelog: https://github.com/davidgiven/wordgrinder/releases/tag/0.6
  
  PR:		203984
  Submitted by:	VItaly Magerya (maintainer)

Modified:
  head/editors/wordgrinder/Makefile
  head/editors/wordgrinder/distinfo
  head/editors/wordgrinder/pkg-descr

Modified: head/editors/wordgrinder/Makefile
==============================================================================
--- head/editors/wordgrinder/Makefile	Sat Nov  7 16:05:51 2015	(r401003)
+++ head/editors/wordgrinder/Makefile	Sat Nov  7 16:19:04 2015	(r401004)
@@ -2,23 +2,34 @@
 # $FreeBSD$
 
 PORTNAME=	wordgrinder
-PORTVERSION=	0.5.2
+PORTVERSION=	0.6
 CATEGORIES=	editors
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
 
 MAINTAINER=	vmagerya at gmail.com
-COMMENT=	Simple Unicode-aware console-based word processor
-
-LICENSE=	MIT
+COMMENT=	Simple Unicode-aware console and X11-based word processor
 
 RUN_DEPENDS=	${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem
 
-USES=		lua:52 tar:bzip2 gmake
+USE_GITHUB=	yes
+GH_ACCOUNT=	davidgiven
+
+USES=		gmake lua:52
 
 PLIST_FILES=	bin/wordgrinder \
 		share/doc/wordgrinder/README.wg \
 		man/man1/wordgrinder.1.gz
 
+OPTIONS_DEFINE=	X11
+OPTIONS_DEFAULT=X11
+
+X11_DESC=	Support running in an X window in addition to console
+X11_PLIST_FILES=bin/xwordgrinder
+X11_USE=	xorg=x11,xft
+X11_USES=	pkgconfig
+X11_ALL_TARGET_OFF=unix
+
+.include <bsd.port.options.mk>
+
 post-patch:
 	${REINPLACE_CMD} \
 		-e '/hide = /s/@//' \
@@ -29,14 +40,27 @@ post-patch:
 		-e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \
 		-e '/PREFIX = /d' \
 		-e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \
-		-e '/install /s|-D||' \
 		-e '/install /s|share/man/man1|man/man1|' \
+		-e '/NCURSES_CFLAGS :=/s|=.*|=|' \
+		-e '/NCURSES_LIB :=/s|=.*|= -lncursesw|' \
+		-e '/X11_CFLAGS :=/s|=.*|= $$(shell pkg-config --cflags x11 xft)|' \
+		-e '/X11_LIB :=/s|=.*|= $$(shell pkg-config --libs x11 xft)|' \
 		${WRKSRC}/Makefile
-
-pre-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/wordgrinder
+	${REINPLACE_CMD} \
+		-e '/#include <Xft/s|<|<X11/|' \
+		${WRKSRC}/src/c/arch/unix/x11/x11.h
+.if ! ${PORT_OPTIONS:MX11}
+	# This is not strictly speaking required, but it cuts
+	# down on some unnecessary work and error messages.
+	${REINPLACE_CMD} \
+		-e '/$$(eval $$(build-wordgrinder-x11))/d' \
+		${WRKSRC}/Makefile
+.endif
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder
+.if ${PORT_OPTIONS:MX11}
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/xwordgrinder ${STAGEDIR}${PREFIX}/bin
+.endif
 
 .include <bsd.port.mk>

Modified: head/editors/wordgrinder/distinfo
==============================================================================
--- head/editors/wordgrinder/distinfo	Sat Nov  7 16:05:51 2015	(r401003)
+++ head/editors/wordgrinder/distinfo	Sat Nov  7 16:19:04 2015	(r401004)
@@ -1,2 +1,2 @@
-SHA256 (wordgrinder-0.5.2.tar.bz2) = b8da422ebeb31ebace5d174fed1d959f942af0c2704e6f064c8f31b3bd7e7774
-SIZE (wordgrinder-0.5.2.tar.bz2) = 644852
+SHA256 (davidgiven-wordgrinder-0.6_GH0.tar.gz) = 3459cab32ca89d8585aa96ef0b9db2ac3802773223786991e48b3c62e2ee7eed
+SIZE (davidgiven-wordgrinder-0.6_GH0.tar.gz) = 1628087

Modified: head/editors/wordgrinder/pkg-descr
==============================================================================
--- head/editors/wordgrinder/pkg-descr	Sat Nov  7 16:05:51 2015	(r401003)
+++ head/editors/wordgrinder/pkg-descr	Sat Nov  7 16:19:04 2015	(r401004)
@@ -1,11 +1,9 @@
-WordGrinder is a simple, Unicode-aware word processor that runs on the
-console. It's designed to get the hell out of your way and let you write;
-it does very little, but what it does it does well.
+WordGrinder is an ultra-clean and uncluttered word processor
+that runs in a terminal or an X11 window.
 
-It supports basic paragraph styles, basic character styles, basic screen
-markup, a menu interface that means you don't have to remember complex
-key sequences, HTML import and export, and some other useful features.
+The author made WordGrinder to have something to write novels
+on. It supports just enough character and paragraph style support
+to let you get the job done, while not enough to let you waste
+time configuring them.
 
-WordGrinder does not require X. It runs in a terminal. 
-
-WWW: http://wordgrinder.sf.net
+WWW: http://cowlark.com/wordgrinder/


More information about the svn-ports-all mailing list