svn commit: r390343 - head/devel/cdk

Jan Beich jbeich at FreeBSD.org
Tue Jun 23 03:31:09 UTC 2015


Baptiste Daroussin <bapt at FreeBSD.org> writes:

> Author: bapt
> Date: Mon Jun 22 23:25:50 2015
> New Revision: 390343
> URL: https://svnweb.freebsd.org/changeset/ports/390343
>
> Log:
>   Simplify example installation
>   Use pax(1) which is less noisy then cpio(1)
[...]
> @@ -35,15 +35,9 @@ post-patch:
>  
>  post-install:
>  .if ${PORT_OPTIONS:MEXAMPLES}
> -	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/cli
> -	cd ${WRKSRC}/cli; \
> -	${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${STAGEDIR}${EXAMPLESDIR}/cli
> -	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/demos
> -	cd ${WRKSRC}/demos; \
> -	${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${STAGEDIR}${EXAMPLESDIR}/demos
> -	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/examples
> -	cd ${WRKSRC}/examples; \
> -	${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${STAGEDIR}${EXAMPLESDIR}/examples
> +	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
> +	cd ${WRKSRC}; \
> +		${FIND} cli demos examples | ${PAX} -rw ${STAGEDIR}${EXAMPLESDIR}
>  .endif
>  
>  .include <bsd.port.mk>

Please, use the style described in Porter's Handbook.
https://www.freebsd.org/doc/en/books/porters-handbook/install.html#install-copytree

Index: devel/cdk/Makefile
===================================================================
--- devel/cdk/Makefile	(revision 390346)
+++ devel/cdk/Makefile	(working copy)
@@ -35,10 +35,8 @@ post-patch:
 
 post-install:
 .if ${PORT_OPTIONS:MEXAMPLES}
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	cd ${WRKSRC}; \
-		${FIND} cli demos examples ! -type d \
-			| ${PAX} -rw ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "cli demos examples" \
+		${STAGEDIR}${EXAMPLESDIR} "! -type d")
 .endif
 
 .include <bsd.port.mk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 602 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20150623/6347aa7d/attachment.sig>


More information about the svn-ports-all mailing list