diff -ruN wordgrinder.orig/Makefile wordgrinder/Makefile --- wordgrinder.orig/Makefile 2015-01-25 11:47:55.000000000 +0200 +++ wordgrinder/Makefile 2015-10-23 17:04:38.186785000 +0300 @@ -2,23 +2,35 @@ # $FreeBSD: head/editors/wordgrinder/Makefile 377876 2015-01-25 09:47:55Z riggs $ PORTNAME= wordgrinder -PORTVERSION= 0.5.2 +PORTVERSION= 0.6 CATEGORIES= editors -MASTER_SITES= SF/${PORTNAME}/${PORTNAME} MAINTAINER= vmagerya@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 + +OPTIONS_DEFINE= X11 +X11_DESC= Support running in an X window in addition to console + +OPTIONS_DEFAULT=X11 + +USES= gmake lua:52 PLIST_FILES= bin/wordgrinder \ share/doc/wordgrinder/README.wg \ man/man1/wordgrinder.1.gz +X11_PLIST_FILES=bin/xwordgrinder +X11_USE= pkgconfig xorg=x11,xft + +X11_ALL_TARGET_OFF=unix + +.include + post-patch: ${REINPLACE_CMD} \ -e '/hide = /s/@//' \ @@ -29,14 +41,27 @@ -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 diff -ruN wordgrinder.orig/distinfo wordgrinder/distinfo --- wordgrinder.orig/distinfo 2015-01-25 11:47:55.000000000 +0200 +++ wordgrinder/distinfo 2015-10-23 14:29:49.699837000 +0300 @@ -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 diff -ruN wordgrinder.orig/pkg-descr wordgrinder/pkg-descr --- wordgrinder.orig/pkg-descr 2014-01-22 17:44:51.000000000 +0200 +++ wordgrinder/pkg-descr 2015-10-23 14:40:53.408384000 +0300 @@ -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/