Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 08:29:49 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        TAKATSU Tomonari <tota@FreeBSD.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r338361 - in head/devel/silentbob: . files
Message-ID:  <20140113082949.GB8735@FreeBSD.org>
In-Reply-To: <201401010649.s016nJ4w004860@svn.freebsd.org>
References:  <201401010649.s016nJ4w004860@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 01, 2014 at 06:49:19AM +0000, TAKATSU Tomonari wrote:
> New Revision: 338361
> URL: http://svnweb.freebsd.org/changeset/ports/338361
> 
> +PORTDOCS=	README
[...]
> +.if ${PORT_OPTIONS:MDOCS}
>  post-install:
> -.if !defined(NOPORTDOCS)
> -	@${MKDIR} ${DOCSDIR}
> -	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
> -	@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
> +	@${MKDIR} ${STAGEDIR}${DOCSDIR}
> +	@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

For a simple cases like this one (when docs are not being built and are just
a lonely README file), once staged, .if ${PORT_OPTIONS:MDOCS} is no longer
necessary (and would allow you to remove .include <bsd.port.options.mk>).

Please note that INSTALL_* commands should not be muted (muting MKDIR is
fine), thank you.

./danfe



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