git: 5c4690ed8e2e - main - science/py-hoomd-blue: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 05 Aug 2023 20:10:18 UTC
The branch main has been updated by bofh:

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

commit 5c4690ed8e2edfac10b5d59b1fa2e628797cebc0
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-05 20:03:14 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 20:03:14 +0000

    science/py-hoomd-blue: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 science/py-hoomd-blue/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/science/py-hoomd-blue/Makefile b/science/py-hoomd-blue/Makefile
index f63f63be2e9f..c391fd84371b 100644
--- a/science/py-hoomd-blue/Makefile
+++ b/science/py-hoomd-blue/Makefile
@@ -57,4 +57,12 @@ TBB_LIB_DEPENDS=	libtbb.so:devel/onetbb
 
 # the test mpi-test_communication requires excessive resources, see https://github.com/glotzerlab/hoomd-blue/issues/1396
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+	@${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
+		${WRKSRC}/hoomd/ParticleData.cc
+.endif
+
+.include <bsd.port.post.mk>