git: 2eb4487adec4 - main - lang/ghc: Fix Hadrian build with BOOT option enabled

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Mon, 01 Apr 2024 15:12:07 UTC
The branch main has been updated by arrowd:

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

commit 2eb4487adec45a064417db7a28d670411d6f3a65
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-04-01 15:10:04 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-04-01 15:10:42 +0000

    lang/ghc: Fix Hadrian build with BOOT option enabled
    
    Reported by:    rene
---
 lang/ghc/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index 3d64f3d7b49b..0387e4214005 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -174,11 +174,12 @@ BUILD_DEPENDS+=	${LOCALBASE}/lib/compat/libncursesw.so.8:misc/compat12x
 
 .if empty(PORT_OPTIONS:MBOOT)
 DISTFILES+=		ghc-${BOOT_GHC_VERSION}-boot-${ARCH}-freebsd${EXTRACT_SUFX}:boot
-.   if !defined(IGNORE_MISSING_HADRIAN) && defined(USE_HADRIAN)
-DISTFILES+=		hadrian-${GHC_VERSION}-boot.tar.gz:boot
-.   endif
 .endif # MBOOT
 
+.if !defined(IGNORE_MISSING_HADRIAN) && defined(USE_HADRIAN)
+DISTFILES+=		hadrian-${GHC_VERSION}-boot.tar.gz:boot
+.endif
+
 .if ${ARCH} == aarch64 || ${ARCH:Marmv*}
 # ghc-8.10.x on arm requires devel/llvm10
 # CONFIGURE_TARGET must to be the same as the llvm triple