git: bca8d7334e2d - main - lang/ruby27: Fix plist error when both CAPIDOCS and DOCS options are on.

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Fri, 09 Dec 2022 04:37:50 UTC
The branch main has been updated by yasu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bca8d7334e2d24d2be79498c5e561af8919c17f9

commit bca8d7334e2d24d2be79498c5e561af8919c17f9
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-11-25 01:44:04 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2022-12-09 04:34:56 +0000

    lang/ruby27: Fix plist error when both CAPIDOCS and DOCS options are on.
    
    When the both options are on, post-install-DOCS-on target is called
    after post-install-CAPIDOCS-on has completed. And in the former files
    under ${WRKSRC}/doc/ are copied to ${STAGEDIR}${RUBY_DOCDIR}. This
    means files under ${WRKSRC}/doc/capi are copied to
    ${STAGEDIR}${RUBY_DOCDIR}/capi again. And of course
    ${WRKSRC}/doc/capi/.timestamp is included in them. As a result, even
    though ${STAGEDIR}${RUBY_DOCDIR}/capi/.timestamp is removed in
    post-install-CAPIDOCS-on target, it is detected as orphaned file at
    check-plist phase. So fix it by adding 3rd argument to
    ${COPYTREE_SHARE} command so .timestamp is excluded from files to be
    copied.
    
    PR:             267775
    Approved by:    meta (ruby@)
    Fixes:          bdbe2a2f4098 lang/ruby27: Simplify CAPIDOCS handling
---
 lang/ruby27/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/ruby27/Makefile b/lang/ruby27/Makefile
index f72e3b688d92..cb6e5734c7a6 100644
--- a/lang/ruby27/Makefile
+++ b/lang/ruby27/Makefile
@@ -207,7 +207,7 @@ post-install-DOCS-on:
 	${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \
 		${STAGEDIR}${RUBY_DOCDIR}/${FILE:C|^([^/]+)/.*|\1|}/
 .endfor
-	@(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_DOCDIR}/)
+	@(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_DOCDIR}/ "! -name .timestamp")
 	${INSTALL_DATA} ${WRKSRC}/COPYING*	\
 			${WRKSRC}/ChangeLog	\
 			${WRKSRC}/LEGAL		\