git: e09de8e0440d - main - lang/ruby31: 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:53 UTC
The branch main has been updated by yasu:

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

commit e09de8e0440d26dbe40e4200c647d7aebef02cc6
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-11-25 01:47:17 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2022-12-09 04:34:59 +0000

    lang/ruby31: 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:          6021649ff0ce lang/ruby31: Simplify CAPIDOCS handling
---
 lang/ruby31/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/ruby31/Makefile b/lang/ruby31/Makefile
index 295f3bd3a650..fa350ff2e52a 100644
--- a/lang/ruby31/Makefile
+++ b/lang/ruby31/Makefile
@@ -201,7 +201,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		\