svn commit: r401004 - head/editors/wordgrinder

Alexey Dokuchaev danfe at FreeBSD.org
Mon Nov 9 03:47:52 UTC 2015


On Sat, Nov 07, 2015 at 04:19:05PM +0000, Pawel Pekala wrote:
> New Revision: 401004
> URL: https://svnweb.freebsd.org/changeset/ports/401004
> 
> +X11_DESC=	Support running in an X window in addition to console

IMHO default X11_DESC reads better and more concise, thus overriding it is
a pessimisation.

> +X11_PLIST_FILES=bin/xwordgrinder
> +X11_USE=	xorg=x11,xft
> +X11_USES=	pkgconfig
> +X11_ALL_TARGET_OFF=unix
> +
> +.include <bsd.port.options.mk>

This line would not be needed if [see below].

> -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}

You should've used option helpers here (pre-install-X11-OFF) as pre-install
can be "smart" together with other _OPTIONS_TARGETS.

> +	# This is not strictly speaking required, but it cuts
> +	# down on some unnecessary work and error messages.

Comments are badly indented (they will be interpreted as part of the recipe
and executed by make(1)).

> +	${REINPLACE_CMD} \
> +		-e '/$$(eval $$(build-wordgrinder-x11))/d' \
> +		${WRKSRC}/Makefile
> +.endif
>  
>  post-install:
>  	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder
> +.if ${PORT_OPTIONS:MX11}

Ditto.  There'be been a lot of conversions to option-targets recently, did
you see them?

> +	${INSTALL_PROGRAM} ${WRKSRC}/bin/xwordgrinder ${STAGEDIR}${PREFIX}/bin
> +.endif

./danfe


More information about the svn-ports-all mailing list