git: 22bf11bc9c8d - main - devel/cmake-core: Fixup 76b8901dae25efc80678bb950

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Wed, 13 Nov 2024 08:49:45 UTC
The branch main has been updated by jhale:

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

commit 22bf11bc9c8d83deb30f7084d31b9f7a5ad261d1
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-11-13 06:40:41 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-11-13 08:49:40 +0000

    devel/cmake-core: Fixup 76b8901dae25efc80678bb950
    
    Despite switching to an out-of-source build, .bak and .orig files were
    still being pattern matched and installed into STAGEDIR. These were never
    packaged nor installed on the system, however, so this is a no-op to the
    end-user.
    
    MFH:            2024Q4
---
 devel/cmake-core/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devel/cmake-core/Makefile b/devel/cmake-core/Makefile
index 2048f1a6092d..632bdc648a07 100644
--- a/devel/cmake-core/Makefile
+++ b/devel/cmake-core/Makefile
@@ -93,6 +93,7 @@ pre-configure:
 # or similar options: it expects them to be set in CMake-style
 # syntax in the initial cache.
 	@${CP} ${WRKDIR}/InitialCache.cmake ${BUILD_WRKSRC}
+	@${FIND} ${WRKSRC} -name "*.bak" -delete -o -name "*.orig" -delete
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/Auxiliary/cmake-mode.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp