git: e8d4ab71ea07 - main - lang/ruby32: 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:54 UTC
The branch main has been updated by yasu:

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

commit e8d4ab71ea07e6d3c3a5bcf7a3003bd9a9ce6c23
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-11-25 01:49:35 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2022-12-09 04:35:01 +0000

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

diff --git a/lang/ruby32/Makefile b/lang/ruby32/Makefile
index 83e67d185456..0ac382a86ee1 100644
--- a/lang/ruby32/Makefile
+++ b/lang/ruby32/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		\