Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 2015 03:47:52 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Pawel Pekala <pawel@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r401004 - head/editors/wordgrinder
Message-ID:  <20151109034752.GA64153@FreeBSD.org>
In-Reply-To: <201511071619.tA7GJ5V4097100@repo.freebsd.org>
References:  <201511071619.tA7GJ5V4097100@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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