git: 422f868dd716 - main - devel/qt5-buildtools: Don't run qt-post-install

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Sat, 15 Mar 2025 16:59:53 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=422f868dd716c2ba989a059739f5541db7288e65

commit 422f868dd716c2ba989a059739f5541db7288e65
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-03-15 16:49:55 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-03-15 16:59:41 +0000

    devel/qt5-buildtools: Don't run qt-post-install
    
    The qt-post-install target is meant to adjust the qconfig-modules.h
    header initially installed by devel/qt5-core, but this is not needed for
    qt5-buildtools and causes POST-INSTALL script failure since this file
    is not installed yet.
    
    PR:             285427
    Reported by:    antoine
---
 Mk/Uses/qt-dist.mk            | 6 +++---
 devel/qt5-buildtools/Makefile | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Mk/Uses/qt-dist.mk b/Mk/Uses/qt-dist.mk
index d34a3ba00658..ea6be7f3c2b8 100644
--- a/Mk/Uses/qt-dist.mk
+++ b/Mk/Uses/qt-dist.mk
@@ -482,10 +482,10 @@ _sub_need_clean=
 _sub_need_clean=	\#\#
 .    endif
 # The Qt modules have an install- and deinstall-step for wrangling
-# the qconfig-modules.h header, but qmake does not.
-.    if ${PORTNAME} != "qmake"
+# the qconfig-modules.h header, but buildtools and qmake do not.
+.    if ${PORTNAME} != "buildtools" && ${PORTNAME} != "qmake"
 post-install: qt-post-install
-.    endif # PORTNAME != qmake
+.    endif # PORTNAME != buildtools && PORTNAME != qmake
 qt-post-install:
 # We can't use SUB_FILES with the shared pkg-change.in.
 # We need it to be a script instead of a group of @unexecs.
diff --git a/devel/qt5-buildtools/Makefile b/devel/qt5-buildtools/Makefile
index e9264a322ef4..eb3b7049076b 100644
--- a/devel/qt5-buildtools/Makefile
+++ b/devel/qt5-buildtools/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	buildtools
 PORTVERSION=	${QT5_VERSION}${QT5_KDE_PATCH}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt5-