This helps me on (too) small WRKOBJDIR, reduces grep noise and verifies that disabled tests are actually left alone, given what a huge behemoth clang-tools-extra already is.
Builds and package fine. (PLIST is already out of sync without this, that's another story around ALL_TARGET and cmake.port.mk which I'm already on to.) This is the neat but hackish way, EXTRACT_CASES would be proper, I guess, but that's lots of needlessly duplicate code. The expression catches the test/ subdir in all three tarballs. It could exclude even more like docs/ or unittests/, but that's peanuts. Thoughts? Index: Makefile =================================================================== RCS file: /cvs/ports/devel/clang-tools-extra/Makefile,v retrieving revision 1.27 diff -u -p -r1.27 Makefile --- Makefile 13 Nov 2022 15:27:45 -0000 1.27 +++ Makefile 18 Feb 2023 20:45:00 -0000 @@ -98,3 +98,7 @@ post-install: ${PREFIX}/share/clang .include <bsd.port.mk> + +# XXX TAR is supposed to hold the binary alone, isn't it? +# exclude test/ from all three tarballs to reduce 851M WRKDIR by 601M +TAR += -s ',^[a-z-]*-${LLVM_V}.src/test/.*$$,,'