git: 8407a1296e8e - main - textproc/elasticsearch8: Remove unneeded directory

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Tue, 13 Dec 2022 22:14:37 UTC
The branch main has been updated by otis:

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

commit 8407a1296e8eabb33e216d28bcb91e10eb2b8fcf
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2022-12-13 22:13:41 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2022-12-13 22:13:41 +0000

    textproc/elasticsearch8: Remove unneeded directory
    
    Remove jdk.app directory that contains Darwin-native JDK, that
    is not needed here.
---
 textproc/elasticsearch8/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/textproc/elasticsearch8/Makefile b/textproc/elasticsearch8/Makefile
index 98fdd7addfcb..facd985eeecc 100644
--- a/textproc/elasticsearch8/Makefile
+++ b/textproc/elasticsearch8/Makefile
@@ -72,6 +72,9 @@ SUB_LIST=	ETCDIR=${ETCDIR} \
 		JAVA_HOME=${JAVA_HOME} \
 		BINDIR=${PREFIX}/bin
 
+post-extract:
+	${RM} -rf ${WRKSRC}/jdk.app
+
 post-patch:
 	${RM} ${WRKSRC}/lib/jna-*.jar
 # ML plugin not supported on FreeBSD