View | Details | Raw Unified | Return to bug 203984
Collapse All | Expand All

(-)wordgrinder/Makefile (-10 / +35 lines)
Lines 2-24 Link Here
2
# $FreeBSD: head/editors/wordgrinder/Makefile 377876 2015-01-25 09:47:55Z riggs $
2
# $FreeBSD: head/editors/wordgrinder/Makefile 377876 2015-01-25 09:47:55Z riggs $
3
3
4
PORTNAME=	wordgrinder
4
PORTNAME=	wordgrinder
5
PORTVERSION=	0.5.2
5
PORTVERSION=	0.6
6
CATEGORIES=	editors
6
CATEGORIES=	editors
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
8
7
9
MAINTAINER=	vmagerya@gmail.com
8
MAINTAINER=	vmagerya@gmail.com
10
COMMENT=	Simple Unicode-aware console-based word processor
9
COMMENT=	Simple Unicode-aware console- and X11-based word processor
11
12
LICENSE=	MIT
13
10
14
RUN_DEPENDS=	${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem
11
RUN_DEPENDS=	${LUA_MODLIBDIR}/lfs.so:${PORTSDIR}/devel/luafilesystem
15
12
16
USES=		lua:52 tar:bzip2 gmake
13
USE_GITHUB=	yes
14
GH_ACCOUNT=	davidgiven
15
16
OPTIONS_DEFINE=	X11
17
X11_DESC=	Support running in an X window in addition to console
18
19
OPTIONS_DEFAULT=X11
20
21
USES=		gmake lua:52
17
22
18
PLIST_FILES=	bin/wordgrinder \
23
PLIST_FILES=	bin/wordgrinder \
19
		share/doc/wordgrinder/README.wg \
24
		share/doc/wordgrinder/README.wg \
20
		man/man1/wordgrinder.1.gz
25
		man/man1/wordgrinder.1.gz
21
26
27
X11_PLIST_FILES=bin/xwordgrinder
28
X11_USE=	pkgconfig xorg=x11,xft
29
30
X11_ALL_TARGET_OFF=unix
31
32
.include <bsd.port.options.mk>
33
22
post-patch:
34
post-patch:
23
	${REINPLACE_CMD} \
35
	${REINPLACE_CMD} \
24
		-e '/hide = /s/@//' \
36
		-e '/hide = /s/@//' \
Lines 29-42 Link Here
29
		-e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \
41
		-e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \
30
		-e '/PREFIX = /d' \
42
		-e '/PREFIX = /d' \
31
		-e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \
43
		-e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \
32
		-e '/install /s|-D||' \
33
		-e '/install /s|share/man/man1|man/man1|' \
44
		-e '/install /s|share/man/man1|man/man1|' \
45
		-e '/NCURSES_CFLAGS :=/s|=.*|=|' \
46
		-e '/NCURSES_LIB :=/s|=.*|= -lncursesw|' \
47
		-e '/X11_CFLAGS :=/s|=.*|= $$(shell pkg-config --cflags x11 xft)|' \
48
		-e '/X11_LIB :=/s|=.*|= $$(shell pkg-config --libs x11 xft)|' \
34
		${WRKSRC}/Makefile
49
		${WRKSRC}/Makefile
35
50
	${REINPLACE_CMD} \
36
pre-install:
51
		-e '/#include <Xft/s|<|<X11/|' \
37
	${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/wordgrinder
52
		${WRKSRC}/src/c/arch/unix/x11/x11.h
53
.if ! ${PORT_OPTIONS:MX11}
54
	# This is not strictly speaking required, but it cuts
55
	# down on some unnecessary work and error messages.
56
	${REINPLACE_CMD} \
57
		-e '/$$(eval $$(build-wordgrinder-x11))/d' \
58
		${WRKSRC}/Makefile
59
.endif
38
60
39
post-install:
61
post-install:
40
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder
62
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder
63
.if ${PORT_OPTIONS:MX11}
64
	${INSTALL_PROGRAM} ${WRKSRC}/bin/xwordgrinder ${STAGEDIR}${PREFIX}/bin/
65
.endif
41
66
42
.include <bsd.port.mk>
67
.include <bsd.port.mk>
(-)wordgrinder/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (wordgrinder-0.5.2.tar.bz2) = b8da422ebeb31ebace5d174fed1d959f942af0c2704e6f064c8f31b3bd7e7774
1
SHA256 (davidgiven-wordgrinder-0.6_GH0.tar.gz) = 3459cab32ca89d8585aa96ef0b9db2ac3802773223786991e48b3c62e2ee7eed
2
SIZE (wordgrinder-0.5.2.tar.bz2) = 644852
2
SIZE (davidgiven-wordgrinder-0.6_GH0.tar.gz) = 1628087
(-)wordgrinder/pkg-descr (-9 / +7 lines)
Lines 1-11 Link Here
1
WordGrinder is a simple, Unicode-aware word processor that runs on the
1
WordGrinder is an ultra-clean and uncluttered word processor
2
console. It's designed to get the hell out of your way and let you write;
2
that runs in a terminal or an X11 window.
3
it does very little, but what it does it does well.
4
3
5
It supports basic paragraph styles, basic character styles, basic screen
4
The author made WordGrinder to have something to write novels
6
markup, a menu interface that means you don't have to remember complex
5
on. It supports just enough character and paragraph style support
7
key sequences, HTML import and export, and some other useful features.
6
to let you get the job done, while not enough to let you waste
7
time configuring them.
8
8
9
WordGrinder does not require X. It runs in a terminal. 
9
WWW: http://cowlark.com/wordgrinder/
10
11
WWW: http://wordgrinder.sf.net

Return to bug 203984